diff options
Diffstat (limited to 'platform-logic')
6 files changed, 2571 insertions, 1197 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json new file mode 100644 index 00000000..dbd501eb --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json @@ -0,0 +1,1125 @@ +[ + { + "id":"2a040436.290c8c", + "type":"dgstart", + "name":"DGSTART", + "outputs":1, + "x":153.515625, + "y":124.515625, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "8161f964.80e1c8" + ] + ] + }, + { + "id":"8161f964.80e1c8", + "type":"service-logic", + "name":"GENERIC-RESOURCE-API ${project.version}", + "module":"GENERIC-RESOURCE-API", + "version":"${project.version}", + "comments":"", + "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}'>", + "outputs":1, + "x":370.015625, + "y":187.015625, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "30fee650.ed9d0a" + ] + ] + }, + { + "id":"30fee650.ed9d0a", + "type":"method", + "name":"method network-topology-operation-activate", + "xml":"<method rpc='network-topology-operation-activate' mode='sync'>\n", + "comments":"", + "outputs":1, + "x":278.0156555175781, + "y":282.01560974121094, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "20d450e0.f9c5c" + ] + ] + }, + { + "id":"20d450e0.f9c5c", + "type":"block", + "name":"block : atomic", + "xml":"<block atomic=\"true\">", + "atomic":"true", + "outputs":1, + "x":575.8489685058594, + "y":289.8489532470703, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "2a5bea3e.9ac986", + "69c54932.e08388", + "35413b11.2f5d34" + ] + ] + }, + { + "id":"69c54932.e08388", + "type":"call", + "name":"call GENERIC-RESOURCE-API:validate-network-input-parameters", + "xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n", + "comments":"", + "outputs":1, + "x":965.8489685058594, + "y":154.8489532470703, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"896ee5a6.83b038", + "type":"for", + "name":"for each network-input-parameters", + "xml":"<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n\n", + "comments":"", + "outputs":1, + "x":1483.8492584228516, + "y":427.849014043808, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "af2f5aa0.9db4d8" + ] + ] + }, + { + "id":"af2f5aa0.9db4d8", + "type":"block", + "name":"block", + "xml":"<block>\n", + "atomic":"false", + "comments":"", + "outputs":1, + "x":1730.8491668701172, + "y":425.84898352622986, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "c1ee07c8.a78ae8", + "a6b6dbe6.38ccc8", + "9e54353d.d1bfc8", + "66bffa85.510244", + "4785e157.899f7", + "663f250e.61399c", + "fab15712.1348c8", + "586d46f5.85b668", + "ec24e74c.17dbe8" + ] + ] + }, + { + "id":"c1ee07c8.a78ae8", + "type":"switchNode", + "name":"switch id", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n", + "comments":"", + "outputs":1, + "x":2217.84952545166, + "y":301.84910011291504, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "327b4262.8149de" + ] + ] + }, + { + "id":"a6b6dbe6.38ccc8", + "type":"switchNode", + "name":"switch description", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_description'`\">\n", + "comments":"", + "outputs":1, + "x":2245.84952545166, + "y":355.8490858078003, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "514eeef4.8a908" + ] + ] + }, + { + "id":"9e54353d.d1bfc8", + "type":"switchNode", + "name":"switch routerId", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_routerId'`\">\n", + "comments":"", + "outputs":1, + "x":2234.8493118286133, + "y":486.849045753479, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "53af1349.89045c" + ] + ] + }, + { + "id":"66bffa85.510244", + "type":"switchNode", + "name":"switch importRT1", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_importRT1'`\">\n", + "comments":"", + "outputs":1, + "x":2243.1350479125977, + "y":548.1347990036011, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "83930cf2.7360d" + ] + ] + }, + { + "id":"4785e157.899f7", + "type":"switchNode", + "name":"switch exportRT1", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_exportRT1'`\">\n", + "comments":"", + "outputs":1, + "x":2244.135108947754, + "y":612.1347697973251, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "534f57af.d494e8" + ] + ] + }, + { + "id":"663f250e.61399c", + "type":"switchNode", + "name":"switch vni", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_vni'`\">\n", + "comments":"", + "outputs":1, + "x":2215.135078430176, + "y":675.134801864624, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "c26455d8.5ef828" + ] + ] + }, + { + "id":"327b4262.8149de", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2432.84952545166, + "y":300.84910011291504, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "43d13ebf.45445" + ] + ] + }, + { + "id":"514eeef4.8a908", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2443.84952545166, + "y":355.8490858078003, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "a9b60a7b.f654d8" + ] + ] + }, + { + "id":"53af1349.89045c", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2439.8493118286133, + "y":485.849045753479, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "9f81d7be.b3b6e8" + ] + ] + }, + { + "id":"83930cf2.7360d", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2445.1350479125977, + "y":547.1347990036011, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"534f57af.d494e8", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2440.135108947754, + "y":609.1347697973251, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"c26455d8.5ef828", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2421.135078430176, + "y":675.134801864624, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "8be01263.8a302" + ] + ] + }, + { + "id":"a9b60a7b.f654d8", + "type":"set", + "name":"set description", + "xml":"<set>\n<parameter name='prop.dci-connects.description' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", + "comments":"", + "x":2625.84952545166, + "y":348.8490858078003, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"9f81d7be.b3b6e8", + "type":"set", + "name":"set router_id", + "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", + "comments":"", + "x":2630.8495330810547, + "y":478.8491325378418, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"8be01263.8a302", + "type":"set", + "name":"set l3_vni", + "xml":"<set>\n<parameter name='prop.dci-connects.vni' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", + "comments":"", + "x":2591.135078430176, + "y":667.134801864624, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"2a5bea3e.9ac986", + "type":"returnSuccess", + "name":"return success", + "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", + "comments":"", + "x":798.1347961425781, + "y":1130.5633239746094, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"fab15712.1348c8", + "type":"switchNode", + "name":"switch name", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n", + "comments":"", + "outputs":1, + "x":2229.0160598754883, + "y":243.01573181152344, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "5e5a3418.1941bc" + ] + ] + }, + { + "id":"5e5a3418.1941bc", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2427.0160598754883, + "y":243.01573181152344, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "5ff1b9ff.668d98" + ] + ] + }, + { + "id":"5ff1b9ff.668d98", + "type":"set", + "name":"set name", + "xml":"<set>\n<parameter name='prop.dci-connects.name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", + "comments":"", + "x":2609.0160598754883, + "y":236.01573181152344, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"586d46f5.85b668", + "type":"switchNode", + "name":"switch networkName", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_networkName'`\">\n", + "comments":"", + "outputs":1, + "x":2252.5158462524414, + "y":422.0156717300415, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "42b0bf4c.61f81" + ] + ] + }, + { + "id":"42b0bf4c.61f81", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2450.5158462524414, + "y":422.0156717300415, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"35413b11.2f5d34", + "type":"block", + "name":"block : execute", + "xml":"<block atomic=\"true\">", + "atomic":"true", + "comments":"", + "outputs":1, + "x":799.5155563354492, + "y":663.0156707763672, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "44be3858.556028", + "82979b1a.ffa758" + ] + ] + }, + { + "id":"44be3858.556028", + "type":"block", + "name":"block : executeSite1", + "xml":"<block atomic=\"true\">", + "atomic":"true", + "comments":"", + "outputs":1, + "x":1092.0156173706055, + "y":487.5156469345093, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "896ee5a6.83b038", + "6a6dccab.683c44" + ] + ] + }, + { + "id":"82979b1a.ffa758", + "type":"block", + "name":"block : executeSite2", + "xml":"<block atomic=\"true\">", + "atomic":"true", + "comments":"", + "outputs":1, + "x":1109.0156631469727, + "y":1003.5156297683716, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "de7fc2e1.99f1a", + "6a6dccab.683c44" + ] + ] + }, + { + "id":"77dd9b7e.75bb04", + "type":"switchNode", + "name":"switch id", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`\">\n", + "comments":"", + "outputs":1, + "x":2203.515869140625, + "y":822.5155639648438, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "fa545715.6bc4d8" + ] + ] + }, + { + "id":"cbab9cb6.9af94", + "type":"switchNode", + "name":"switch description", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_description'`\">\n", + "comments":"", + "outputs":1, + "x":2227.5162200927734, + "y":881.515570640564, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "eca3282e.6ef838", + "e75e638.f112aa" + ] + ] + }, + { + "id":"2b87cf93.6aebd", + "type":"switchNode", + "name":"switch routerId", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_routerId'`\">\n", + "comments":"", + "outputs":1, + "x":2236.515609741211, + "y":1077.5155363082886, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "5395f6bd.9d59d8" + ] + ] + }, + { + "id":"1400dc59.ed1ce4", + "type":"switchNode", + "name":"switch importRT1", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_importRT1'`\">\n", + "comments":"", + "outputs":1, + "x":2244.8013458251953, + "y":1138.8012895584106, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "bb1a369b.7663b8" + ] + ] + }, + { + "id":"7f102eb1.e249d", + "type":"switchNode", + "name":"switch exportRT1", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_exportRT1'`\">\n", + "comments":"", + "outputs":1, + "x":2245.8014068603516, + "y":1202.8012603521347, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "92bb4854.187448" + ] + ] + }, + { + "id":"e8e9faf3.7fedc8", + "type":"switchNode", + "name":"switch vni", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_vni'`\">\n", + "comments":"", + "outputs":1, + "x":2216.8013763427734, + "y":1265.8012924194336, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "f8be59bd.a42528" + ] + ] + }, + { + "id":"fa545715.6bc4d8", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2418.515869140625, + "y":821.5155639648438, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "f8a4213a.dfd9b" + ] + ] + }, + { + "id":"eca3282e.6ef838", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2425.5162200927734, + "y":881.515570640564, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "52d4304f.1112c" + ] + ] + }, + { + "id":"5395f6bd.9d59d8", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2441.515609741211, + "y":1076.5155363082886, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "6207e038.3cb7a" + ] + ] + }, + { + "id":"bb1a369b.7663b8", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2446.8013458251953, + "y":1137.8012895584106, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"92bb4854.187448", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2441.8014068603516, + "y":1199.8012603521347, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"f8be59bd.a42528", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2422.8013763427734, + "y":1265.8012924194336, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "a6ac757.8e55c88" + ] + ] + }, + { + "id":"52d4304f.1112c", + "type":"set", + "name":"set description", + "xml":"<set>\n<parameter name='prop.dci-connects.description' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", + "comments":"", + "x":2607.5162200927734, + "y":874.515570640564, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"6207e038.3cb7a", + "type":"set", + "name":"set router_id", + "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", + "comments":"", + "x":2632.5158309936523, + "y":1069.5156230926514, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"a6ac757.8e55c88", + "type":"set", + "name":"set l3_vni", + "xml":"<set>\n<parameter name='prop.dci-connects.vni' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", + "comments":"", + "x":2592.8013763427734, + "y":1257.8012924194336, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"8a2a845c.c20518", + "type":"switchNode", + "name":"switch networkName", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_networkName'`\">\n", + "comments":"", + "outputs":1, + "x":2254.182144165039, + "y":1012.6821622848511, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "cba705fe.7fbd68" + ] + ] + }, + { + "id":"cba705fe.7fbd68", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2452.182144165039, + "y":1012.6821622848511, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"7621d3f.20db72c", + "type":"block", + "name":"block", + "xml":"<block>\n", + "atomic":"false", + "comments":"", + "outputs":1, + "x":1722.5153198242188, + "y":944.5155217647552, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "77dd9b7e.75bb04", + "cbab9cb6.9af94", + "2b87cf93.6aebd", + "1400dc59.ed1ce4", + "7f102eb1.e249d", + "e8e9faf3.7fedc8", + "8a2a845c.c20518" + ] + ] + }, + { + "id":"de7fc2e1.99f1a", + "type":"for", + "name":"for each network-input-parameters", + "xml":"<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n\n", + "comments":"", + "outputs":1, + "x":1475.5154113769531, + "y":946.5155522823334, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "7621d3f.20db72c" + ] + ] + }, + { + "id":"43d13ebf.45445", + "type":"set", + "name":"set id", + "xml":"<set>\n<parameter name='prop.dci-connects.id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", + "comments":"", + "x":2614.5159072875977, + "y":294.5156497955322, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"ec24e74c.17dbe8", + "type":"switchNode", + "name":"switch tunnelType", + "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'tunnelType'`\">\n", + "comments":"", + "outputs":1, + "x":2234.015625, + "y":744.5155639648438, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "12f5c8b9.553a97" + ] + ] + }, + { + "id":"12f5c8b9.553a97", + "type":"outcomeTrue", + "name":"true", + "xml":"<outcome value='true'>\n", + "comments":"", + "outputs":1, + "x":2440.015625, + "y":744.5155639648438, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "ea283679.45ebf8" + ] + ] + }, + { + "id":"ea283679.45ebf8", + "type":"set", + "name":"set tunnelType", + "xml":"<set>\n<parameter name='prop.dci-connects.tunnelType' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", + "comments":"", + "x":2610.015625, + "y":736.5155639648438, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"6a6dccab.683c44", + "type":"block", + "name":"block : sendRequest", + "xml":"<block atomic=\"true\">", + "atomic":"true", + "comments":"", + "outputs":1, + "x":1388.0156440734863, + "y":1504.0155696868896, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "689b1559.c8e0ac", + "6b04340b.667f8c", + "e59ef441.ec3b38" + ] + ] + }, + { + "id":"dc085795.91fbb8", + "type":"execute", + "name":"execute RestApiCallNode Activate Vxlan Tunnel", + "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", + "comments":"", + "outputs":1, + "x":2196.0159187316895, + "y":1567.0155248641968, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"ff1f7cdd.1de74", + "type":"success", + "name":"success", + "xml":"<outcome value='success'>\n", + "comments":"", + "outputs":1, + "x":1881.5154113769531, + "y":1356.0150890350342, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "8fb0b02d.400ca" + ] + ] + }, + { + "id":"2e24b7ed.4af348", + "type":"not-found", + "name":"not-found", + "xml":"<outcome value='not-found'>\n", + "comments":"", + "outputs":1, + "x":1888.5154113769531, + "y":1394.0150890350342, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "eabc77a3.4c68d8" + ] + ] + }, + { + "id":"d482f537.fd1128", + "type":"other", + "name":"other", + "xml":"<outcome value='Other'>\n", + "comments":"", + "outputs":1, + "x":1880.5154113769531, + "y":1436.0150890350342, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "2834746.db4418c" + ] + ] + }, + { + "id":"8fb0b02d.400ca", + "type":"block", + "name":"block : atomic", + "xml":"<block atomic=\"true\">\n", + "atomic":"false", + "comments":"", + "outputs":1, + "x":2046.5154113769531, + "y":1345.0150890350342, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"eabc77a3.4c68d8", + "type":"returnFailure", + "name":"return failure", + "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n", + "comments":"", + "x":2045.5154113769531, + "y":1398.0150890350342, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"2834746.db4418c", + "type":"returnFailure", + "name":"return failure", + "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n", + "comments":"", + "x":2038.5154113769531, + "y":1445.0150890350342, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"689b1559.c8e0ac", + "type":"get-resource", + "name":"get-resource dci-connects", + "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", + "comments":"", + "outputs":1, + "x":1693.5155334472656, + "y":1403.0151081085205, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "ff1f7cdd.1de74", + "2e24b7ed.4af348", + "d482f537.fd1128" + ] + ] + }, + { + "id":"6b04340b.667f8c", + "type":"set", + "name":"set controller data", + "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", + "comments":"", + "x":1665.0153846740723, + "y":1504.5150623321533, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"e59ef441.ec3b38", + "type":"switchNode", + "name":"switch tunnelType", + "xml":"<switch test=\"`$prop.dci-connects.tunnelType`\">\n", + "comments":"", + "outputs":1, + "x":1659.0153770446777, + "y":1591.5150356292725, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "c8be8edd.1a0fe", + "22e73278.5a70de" + ] + ] + }, + { + "id":"c8be8edd.1a0fe", + "type":"outcomeTrue", + "name":"L3-DCI", + "xml":"<outcome value='L3-DCI'>\n", + "comments":"", + "outputs":1, + "x":1872.0155067443848, + "y":1571.5150356292725, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "dc085795.91fbb8" + ] + ] + }, + { + "id":"22e73278.5a70de", + "type":"outcomeTrue", + "name":"L2-DCI", + "xml":"<outcome value='L2-DCI'>\n", + "comments":"", + "outputs":1, + "x":1870.0153274536133, + "y":1643.5150356292725, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "73fa04bd.92094c" + ] + ] + }, + { + "id":"f8a4213a.dfd9b", + "type":"set", + "name":"set id", + "xml":"<set>\n<parameter name='prop.dci-connects.id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", + "comments":"", + "x":2592.515842437744, + "y":816.5156164169312, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + }, + { + "id":"73fa04bd.92094c", + "type":"execute", + "name":"execute RestApiCallNode Activate Vxlan Tunnel", + "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", + "comments":"", + "outputs":1, + "x":2190.0158729553223, + "y":1644.0154609680176, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + + ] + ] + }, + { + "id":"e75e638.f112aa", + "type":"outcomeTrue", + "name":"false", + "xml":"<outcome value='false'>\n", + "comments":"", + "outputs":1, + "x":2424.015800476074, + "y":940.5156002044678, + "z":"17ff3bf3.2a2c24", + "wires":[ + [ + "f56ef97.bc2ee08" + ] + ] + }, + { + "id":"f56ef97.bc2ee08", + "type":"set", + "name":"set description", + "xml":"<set>\n<parameter name='prop.dci-connects.description' value='' />\n", + "comments":"", + "x":2605.015869140625, + "y":935.5155410766602, + "z":"17ff3bf3.2a2c24", + "wires":[ + + ] + } +]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-activate.json deleted file mode 100644 index 6e402989..00000000 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-activate.json +++ /dev/null @@ -1,623 +0,0 @@ -[ - { - "id": "13efcea1.ec1031", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 114.9285774230957, - "y": 157.85713958740234, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "34d83628.cb27ca" - ] - ] - }, - { - "id": "34d83628.cb27ca", - "type": "service-logic", - "name": "GENERIC-RESOURCE-API ${project.version}", - "module": "GENERIC-RESOURCE-API", - "version": "${project.version}", - "comments": "", - "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}'>", - "outputs": 1, - "x": 331.4285774230957, - "y": 220.35713958740234, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "4110c5c.fbeef3c" - ] - ] - }, - { - "id": "4110c5c.fbeef3c", - "type": "method", - "name": "method network-topology-operation-activate", - "xml": "<method rpc='network-topology-operation-activate' mode='sync'>\n", - "comments": "", - "outputs": 1, - "x": 239.42860794067383, - "y": 315.3571243286133, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "73d8f049.8c271" - ] - ] - }, - { - "id": "73d8f049.8c271", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 537.2619209289551, - "y": 323.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "d7eea4e9.281158", - "fc223b1c.03ddc8", - "de035b83.21fca8", - "7ca75a13.8358a4", - "af942bde.506bd8", - "fd54671a.02ab98", - "ae88a1de.51776", - "4b8d739d.b4728c" - ] - ] - }, - { - "id": "fc223b1c.03ddc8", - "type": "record", - "name": "record", - "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"Time\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"Method\" value=\"network-topology-operation-activate\"/>\n<parameter name=\"SubMethod\" value=\"l3-dci-connects\"/>\n<parameter name=\"Name\" value=\"`$l3-dci-connects.name`\"/>\n<parameter name=\"Description\" value=\"`$l3-dci-connects.description`\"/>\n<parameter name=\"RouterId\" value=\"`$l3-dci-connects.router_id`\"/>\n<parameter name=\"IsFirewallEnabled\" value=\"`$l3-dci-connects.firewall_enable`\"/>\n<parameter name=\"LocalNetworks\" value=\"`$l3-dci-connects.local_networks`\"/>\n<parameter name=\"LocalNetworksAll\" value=\"`$l3-dci-connects.local_networks_all`\"/>\n<parameter name=\"EvpnIrts\" value=\"`$l3-dci-connects.evpn_irts`\"/>\n<parameter name=\"EvpnErts\" value=\"`$l3-dci-connects.evpn_erts`\"/>\n<parameter name=\"L3Vni\" value=\"`$l3-dci-connects.l3_vni`\"/>\n", - "comments": "", - "outputs": 1, - "x": 745.2619209289551, - "y": 358.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [] - ] - }, - { - "id": "de035b83.21fca8", - "type": "call", - "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters", - "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n", - "comments": "", - "outputs": 1, - "x": 927.2619209289551, - "y": 188.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [] - ] - }, - { - "id": "7ca75a13.8358a4", - "type": "get-resource", - "name": "get-resource l3-dci-connects", - "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-dci-connects\" \n\t\tkey=\"l3-dci-connects.id = $tmp.id AND depth = '1'\"\n pfx='tmp.aai.l3-dci-connects' local-only='false' >\n", - "comments": "", - "outputs": 1, - "x": 814.2619209289551, - "y": 290.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "76d6d56a.89292c", - "b63f5b49.49c0a8", - "a9c3f954.563c08" - ] - ] - }, - { - "id": "76d6d56a.89292c", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1063.261920928955, - "y": 254.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "75edb6f2.8a1248" - ] - ] - }, - { - "id": "b63f5b49.49c0a8", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 1070.261920928955, - "y": 292.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "a88ab5e7.577548" - ] - ] - }, - { - "id": "a9c3f954.563c08", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1062.261920928955, - "y": 334.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "47bdf2f2.b8420c" - ] - ] - }, - { - "id": "75edb6f2.8a1248", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1228.261920928955, - "y": 243.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [] - ] - }, - { - "id": "a88ab5e7.577548", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n", - "comments": "", - "x": 1227.261920928955, - "y": 296.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "47bdf2f2.b8420c", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n", - "comments": "", - "x": 1220.261920928955, - "y": 343.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "af942bde.506bd8", - "type": "set", - "name": "set controller data", - "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", - "comments": "", - "x": 778.2619209289551, - "y": 419.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "fd54671a.02ab98", - "type": "for", - "name": "for each network-input-parameters", - "xml": "<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n\n", - "comments": "", - "outputs": 1, - "x": 830.2619209289551, - "y": 475.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "2650269.fd9afda" - ] - ] - }, - { - "id": "2650269.fd9afda", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1064.261920928955, - "y": 475.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "eb18473a.14e7b8", - "94f8d826.6b0728", - "133d2fc3.ecc2d", - "60c74a82.9f38b4", - "4956f4cc.b6a90c", - "8e0378b.f71fc88", - "246d821a.db927e" - ] - ] - }, - { - "id": "eb18473a.14e7b8", - "type": "switchNode", - "name": "switch name", - "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n", - "comments": "", - "outputs": 1, - "x": 1368.261920928955, - "y": 400.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "77471bff.88b8e4" - ] - ] - }, - { - "id": "94f8d826.6b0728", - "type": "switchNode", - "name": "switch description", - "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'description'`\">\n", - "comments": "", - "outputs": 1, - "x": 1383.261920928955, - "y": 449.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "b48734fb.4b78c8" - ] - ] - }, - { - "id": "133d2fc3.ecc2d", - "type": "switchNode", - "name": "switch router_id", - "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'router_id'`\">\n", - "comments": "", - "outputs": 1, - "x": 1377.261920928955, - "y": 493.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "9cd2fabe.632d08" - ] - ] - }, - { - "id": "60c74a82.9f38b4", - "type": "switchNode", - "name": "switch local_networks", - "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'local_networks'`\">\n", - "comments": "", - "outputs": 1, - "x": 1395.261978149414, - "y": 536.9047584533691, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "3f83fc1.fc07c04" - ] - ] - }, - { - "id": "4956f4cc.b6a90c", - "type": "switchNode", - "name": "switch evpn_irts", - "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'evpn_irts'`\">\n", - "comments": "", - "outputs": 1, - "x": 1379.5477485656738, - "y": 585.4761905670166, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "c139b32d.3ec65" - ] - ] - }, - { - "id": "8e0378b.f71fc88", - "type": "switchNode", - "name": "switch evpn_erts", - "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'evpn_erts'`\">\n", - "comments": "", - "outputs": 1, - "x": 1381.5477485656738, - "y": 632.4761905670166, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "d454e7d7.2bab18" - ] - ] - }, - { - "id": "246d821a.db927e", - "type": "switchNode", - "name": "switch l3_vni", - "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'l3_vni'`\">\n", - "comments": "", - "outputs": 1, - "x": 1371.5477485656738, - "y": 675.4761905670166, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "69406c41.96bf94" - ] - ] - }, - { - "id": "77471bff.88b8e4", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1583.261920928955, - "y": 399.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "f3ea7971.0c1588" - ] - ] - }, - { - "id": "b48734fb.4b78c8", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1581.261920928955, - "y": 449.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "e7809c6a.187f6" - ] - ] - }, - { - "id": "9cd2fabe.632d08", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1582.261920928955, - "y": 492.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "bc1a0bfb.43e5f8" - ] - ] - }, - { - "id": "3f83fc1.fc07c04", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1580.261978149414, - "y": 530.9047584533691, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "7e484c09.81b7b4" - ] - ] - }, - { - "id": "c139b32d.3ec65", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1581.5477485656738, - "y": 584.4761905670166, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "7d5558e.f82aaa8" - ] - ] - }, - { - "id": "d454e7d7.2bab18", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1577.5477485656738, - "y": 629.4761905670166, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "e1e83f81.1e17c" - ] - ] - }, - { - "id": "69406c41.96bf94", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1577.5477485656738, - "y": 675.4761905670166, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "83d7cc2c.7c283" - ] - ] - }, - { - "id": "f3ea7971.0c1588", - "type": "set", - "name": "set name", - "xml": "<set>\n<parameter name='prop.l3-dci-connects.name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", - "comments": "", - "x": 1745.261920928955, - "y": 397.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "e7809c6a.187f6", - "type": "set", - "name": "set description", - "xml": "<set>\n<parameter name='prop.l3-dci-connects.description' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", - "comments": "", - "x": 1763.261920928955, - "y": 442.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "bc1a0bfb.43e5f8", - "type": "set", - "name": "set router_id", - "xml": "<set>\n<parameter name='prop.l3-dci-connects.router_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", - "comments": "", - "x": 1755.261920928955, - "y": 485.19046783447266, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "7e484c09.81b7b4", - "type": "set", - "name": "set local_networks", - "xml": "<set>\n<parameter name='prop.l3-dci-connects.local_networks' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`'' />\n", - "comments": "", - "x": 1774.261978149414, - "y": 531.9047584533691, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "7d5558e.f82aaa8", - "type": "set", - "name": "set evpn_irts", - "xml": "<set>\n<parameter name='prop.l3-dci-connects.evpn_irts' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", - "comments": "", - "x": 1757.5477485656738, - "y": 580.4761905670166, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "e1e83f81.1e17c", - "type": "set", - "name": "set evpn_erts", - "xml": "<set>\n<parametername='prop.l3-dci-connects.evpn_erts' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", - "comments": "", - "x": 1763.5477485656738, - "y": 622.4761905670166, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "83d7cc2c.7c283", - "type": "set", - "name": "set l3_vni", - "xml": "<set>\n<parameter name='prop.l3-dci-connects.l3_vni' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n", - "comments": "", - "x": 1747.5477485656738, - "y": 667.4761905670166, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "ae88a1de.51776", - "type": "execute", - "name": "execute l3-dci-connects id", - "xml": "<execute plugin='com.att.sdnctl.sli.SliPluginUtils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.l3-dci-connects.id\"/>\n", - "comments": "", - "outputs": 1, - "x": 805.2619209289551, - "y": 539.1904678344727, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "52b5b73a.ad4a48" - ] - ] - }, - { - "id": "52b5b73a.ad4a48", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 996.2619209289551, - "y": 537.1904678344727, - "z": "e5eb985f.1a1468", - "wires": [ - [ - "37ca2219.c835de" - ] - ] - }, - { - "id": "37ca2219.c835de", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n", - "comments": "", - "x": 1146.261920928955, - "y": 536.1904678344727, - "z": "e5eb985f.1a1468", - "wires": [] - }, - { - "id": "4b8d739d.b4728c", - "type": "execute", - "name": "execute RestApiCallNode Activate Vxlan Tunnel", - "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", - "comments": "", - "outputs": 1, - "x": 870.2619209289551, - "y": 604.1904678344727, - "z": "e5eb985f.1a1468", - "wires": [ - [] - ] - }, - { - "id": "d7eea4e9.281158", - "type": "returnSuccess", - "name": "return success", - "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", - "comments": "", - "x": 769.5476913452148, - "y": 705.9047737121582, - "z": "e5eb985f.1a1468", - "wires": [] - } -]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json index fe73cda7..7b6edb28 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json @@ -1,20 +1,20 @@ [ { - "id": "12b79dd.fcf1ae2", + "id": "fbeebb28.041148", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 80, - "y": 85.76192092895508, - "z": "c6f0d3f1.455d9", + "x": 132.85714721679688, + "y": 178.57142639160156, + "z": "41919c74.be6e64", "wires": [ [ - "45289095.8730c" + "664d9ba9.99b264" ] ] }, { - "id": "45289095.8730c", + "id": "664d9ba9.99b264", "type": "service-logic", "name": "GENERIC-RESOURCE-API ${project.version}", "module": "GENERIC-RESOURCE-API", @@ -22,883 +22,1396 @@ "comments": "", "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}'>", "outputs": 1, - "x": 325.2857131958008, - "y": 85, - "z": "c6f0d3f1.455d9", + "x": 378.14286041259766, + "y": 177.80950546264648, + "z": "41919c74.be6e64", "wires": [ [ - "54e5c542.fd5504" + "486551e4.b79ab" ] ] }, { - "id": "54e5c542.fd5504", + "id": "486551e4.b79ab", "type": "method", "name": "method validate-network-input-parameters", "xml": "<method rpc='validate-network-input-parameters' mode='sync'>\n", "comments": "", "outputs": 1, - "x": 282.91668701171875, - "y": 160.0149383544922, - "z": "c6f0d3f1.455d9", + "x": 335.7738342285156, + "y": 252.82444381713867, + "z": "41919c74.be6e64", "wires": [ [ - "4aa39923.928d98" + "d58b2e53.2a74d" ] ] }, { - "id": "4aa39923.928d98", + "id": "d58b2e53.2a74d", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 566.9166946411133, - "y": 148.0149631500244, - "z": "c6f0d3f1.455d9", + "x": 619.7738418579102, + "y": 240.8244686126709, + "z": "41919c74.be6e64", "wires": [ [ - "588fd95a.bd649", - "3dc5112.e6e5c6e" + "d7a4de3d.285b2", + "cec7d28c.31383" ] ] }, { - "id": "588fd95a.bd649", + "id": "d7a4de3d.285b2", "type": "switchNode", "name": "switch svc-action", "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n", "comments": "", "outputs": 1, - "x": 847.9166946411133, - "y": 143.01494884490967, - "z": "c6f0d3f1.455d9", + "x": 900.7738418579102, + "y": 235.82445430755615, + "z": "41919c74.be6e64", "wires": [ [ - "bea9cc02.adf488" + "bb379126.44c87" ] ] }, { - "id": "bea9cc02.adf488", + "id": "bb379126.44c87", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 1038.6309967041016, - "y": 144.01494979858398, - "z": "c6f0d3f1.455d9", + "x": 1091.4881439208984, + "y": 236.82445526123047, + "z": "41919c74.be6e64", "wires": [ [ - "c0743608.2f921" + "b6f565f3.490a98" ] ] }, { - "id": "c0743608.2f921", + "id": "b6f565f3.490a98", "type": "returnFailure", "name": "return failure", "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", "comments": "", - "x": 1213.0595474243164, - "y": 143.01494216918945, - "z": "c6f0d3f1.455d9", + "x": 1265.9166946411133, + "y": 235.82444763183594, + "z": "41919c74.be6e64", "wires": [] }, { - "id": "3dc5112.e6e5c6e", + "id": "cec7d28c.31383", "type": "switchNode", "name": "switch svc-action", "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n", "comments": "", "outputs": 1, - "x": 148.91664123535156, - "y": 419.0149631500244, - "z": "c6f0d3f1.455d9", + "x": 201.77378845214844, + "y": 511.8244686126709, + "z": "41919c74.be6e64", "wires": [ [ - "3acc66b9.f1e56a", - "69b2a932.e384a", - "48c30fe1.37ee2", - "3a0a08f8.ab065" + "75d754ee.8a28ac", + "ad892566.5276d8", + "481e2179.b7e1e", + "60a2dfba.9f5d2", + "655825a3.9aa7dc" ] ] }, { - "id": "3acc66b9.f1e56a", + "id": "75d754ee.8a28ac", "type": "outcome", "name": "assign", "xml": "<outcome value='assign'>\n", "comments": "", "outputs": 1, - "x": 350.4167251586914, - "y": 419.0149631500244, - "z": "c6f0d3f1.455d9", + "x": 403.2738723754883, + "y": 511.8244686126709, + "z": "41919c74.be6e64", "wires": [ [ - "3f05f182.7a112e" + "a5452c63.5abad" ] ] }, { - "id": "3f05f182.7a112e", + "id": "a5452c63.5abad", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 516.4167327880859, - "y": 419.0149631500244, - "z": "c6f0d3f1.455d9", + "x": 569.2738800048828, + "y": 511.8244686126709, + "z": "41919c74.be6e64", "wires": [ [ - "4000702f.bf217" + "70b2b7d8.8f4d48" ] ] }, { - "id": "b0353d83.d95fc8", + "id": "2111484.fdeeeb8", "type": "for", "name": "for loop i - Network input parameters", "xml": "<for index=\"i\" start=\"0\" end=\"`$network-topology-information.network-request-input.network-input-parameters.param_length`\">\n", "comments": "", "outputs": 1, - "x": 839.9165649414062, - "y": 457.01495361328125, - "z": "c6f0d3f1.455d9", + "x": 1768.488021850586, + "y": 175.53873825073242, + "z": "41919c74.be6e64", "wires": [ [ - "4b65836a.da71a4" + "23ff25d7.dc00da" ] ] }, { - "id": "314ef392.5c55f4", + "id": "b6c6c32e.49394", "type": "switchNode", "name": "switch value", "xml": "<switch test=\"`$tmp.value`\">\n", "comments": "", "outputs": 1, - "x": 1434.9166259765625, - "y": 831.0149536132812, - "z": "c6f0d3f1.455d9", + "x": 2622.059371948242, + "y": 429.5387134552002, + "z": "41919c74.be6e64", "wires": [ [ - "43c9362d.7e85f8" + "ada5f970.525a08" ] ] }, { - "id": "43c9362d.7e85f8", + "id": "ada5f970.525a08", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 1651.9165992736816, - "y": 830.0149593353271, - "z": "c6f0d3f1.455d9", + "x": 2839.0593452453613, + "y": 428.5387191772461, + "z": "41919c74.be6e64", "wires": [ [ - "ca90525c.72c9e" + "ed2ebd09.12d14" ] ] }, { - "id": "ca90525c.72c9e", + "id": "ed2ebd09.12d14", "type": "returnFailure", "name": "return failure", "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", "comments": "", - "x": 1830.345314025879, - "y": 831.0149593353271, - "z": "c6f0d3f1.455d9", + "x": 3017.4880599975586, + "y": 429.5387191772461, + "z": "41919c74.be6e64", "wires": [] }, { - "id": "69b2a932.e384a", + "id": "ad892566.5276d8", "type": "outcome", "name": "deactivate", "xml": "<outcome value='deactivate'>\n", "comments": "", "outputs": 1, - "x": 356.9999771118164, - "y": 495.76191806793213, - "z": "c6f0d3f1.455d9", + "x": 405.57142639160156, + "y": 669.9999961853027, + "z": "41919c74.be6e64", "wires": [ - [] + [ + "cf8cfa72.307308" + ] ] }, { - "id": "48c30fe1.37ee2", + "id": "481e2179.b7e1e", "type": "outcome", "name": "delete", "xml": "<outcome value='delete'>\n", "comments": "", "outputs": 1, - "x": 343.5715103149414, - "y": 551.0478391647339, - "z": "c6f0d3f1.455d9", + "x": 409.2858085632324, + "y": 996.7145538330078, + "z": "41919c74.be6e64", "wires": [ [ - "519b9637.7e3388" + "777dc005.88824" ] ] }, { - "id": "3a0a08f8.ab065", + "id": "60a2dfba.9f5d2", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 345.6190757751465, - "y": 606.9047303199768, - "z": "c6f0d3f1.455d9", + "x": 407.0476875305176, + "y": 951.142822265625, + "z": "41919c74.be6e64", "wires": [ [ - "1c01820.787e0fe" + "e573762b.1a8c88" ] ] }, { - "id": "1c01820.787e0fe", + "id": "e573762b.1a8c88", "type": "returnFailure", "name": "return failure", "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", "comments": "", - "x": 499.1906509399414, - "y": 609.5238742828369, - "z": "c6f0d3f1.455d9", + "x": 560.6192626953125, + "y": 953.7619662284851, + "z": "41919c74.be6e64", "wires": [] }, { - "id": "4b65836a.da71a4", + "id": "23ff25d7.dc00da", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 717.9999389648438, - "y": 603.7619018554688, - "z": "c6f0d3f1.455d9", + "x": 1646.5713958740234, + "y": 322.2856864929199, + "z": "41919c74.be6e64", "wires": [ [ - "c0a12daa.de711", - "79c7c0f2.75db1", - "70c07e94.b958b" + "4d67279e.b298d8", + "88358308.77ca8", + "1a1154a1.e5eeab" ] ] }, { - "id": "4000702f.bf217", + "id": "70b2b7d8.8f4d48", "type": "switchNode", "name": "switch request-action", "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n", "comments": "", "outputs": 1, - "x": 472, - "y": 307, - "z": "c6f0d3f1.455d9", + "x": 894.8571624755859, + "y": 401.2380962371826, + "z": "41919c74.be6e64", "wires": [ [ - "7fc21ed9.84ecc", - "2b594f42.596858" + "2263fcf0.dd9c04", + "f78b2624.0874d8" ] ] }, { - "id": "7fc21ed9.84ecc", + "id": "2263fcf0.dd9c04", "type": "other", "name": "CreateNetworkInstance", "xml": "<outcome value='CreateNetworkInstance'>", "comments": "", "outputs": 1, - "x": 738, - "y": 266, - "z": "c6f0d3f1.455d9", + "x": 1160.857162475586, + "y": 360.2380962371826, + "z": "41919c74.be6e64", "wires": [ [ - "b93efadc.2a7b98" + "504c1faf.afb3e" ] ] }, { - "id": "2b594f42.596858", + "id": "f78b2624.0874d8", "type": "other", "name": "Other", "xml": "<outcome value='Other'>", "comments": "", "outputs": 1, - "x": 692, - "y": 316, - "z": "c6f0d3f1.455d9", + "x": 1114.857162475586, + "y": 410.2380962371826, + "z": "41919c74.be6e64", "wires": [ [ - "38f5f946.300656" + "692f7373.96d08c" ] ] }, { - "id": "38f5f946.300656", + "id": "692f7373.96d08c", "type": "returnFailure", "name": "return failure", "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", "comments": "", - "x": 861, - "y": 316, - "z": "c6f0d3f1.455d9", + "x": 1283.857162475586, + "y": 410.2380962371826, + "z": "41919c74.be6e64", "wires": [] }, { - "id": "b93efadc.2a7b98", + "id": "504c1faf.afb3e", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 963, - "y": 255, - "z": "c6f0d3f1.455d9", + "x": 1385.857162475586, + "y": 349.2380962371826, + "z": "41919c74.be6e64", "wires": [ [ - "b0353d83.d95fc8" + "2111484.fdeeeb8" ] ] }, { - "id": "2b9e6137.bb0cbe", + "id": "6598afe7.9a675", "type": "comment", "name": "TODO: need to identify underlay or overlay", "info": "", "comments": "", - "x": 969, - "y": 219, - "z": "c6f0d3f1.455d9", + "x": 1130.4286651611328, + "y": 308.952356338501, + "z": "41919c74.be6e64", "wires": [] }, { - "id": "c0a12daa.de711", + "id": "4d67279e.b298d8", "type": "set", "name": "clear tmp-data", "xml": "<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n", "comments": "", - "x": 910, - "y": 558, - "z": "c6f0d3f1.455d9", + "x": 1838.5714569091797, + "y": 276.5237846374512, + "z": "41919c74.be6e64", "wires": [] }, { - "id": "79c7c0f2.75db1", + "id": "88358308.77ca8", "type": "set", "name": "set tmp-data", "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", "comments": "", - "x": 899, - "y": 648, - "z": "c6f0d3f1.455d9", + "x": 1827.5714569091797, + "y": 366.5237846374512, + "z": "41919c74.be6e64", "wires": [] }, { - "id": "70c07e94.b958b", + "id": "1a1154a1.e5eeab", "type": "switchNode", "name": "switch name", "xml": "<switch test=\"'$tmp.name'\">\n", "comments": "", "outputs": 1, - "x": 878, - "y": 742, - "z": "c6f0d3f1.455d9", + "x": 1806.5714569091797, + "y": 460.5237846374512, + "z": "41919c74.be6e64", "wires": [ [ - "b4dc69ff.a7ed1", - "bbb21dd0.0748a", - "646ea6b1.a2f9c8", - "439d167a.8c5ac", - "c1518ab4.108de8", - "b9d1292c.a326b", - "2a37f01.a563d1", - "1df27ff7.9e57b8", - "eb7c110.2f93df", - "f3eead68.9da5e", - "6b17cb91.28e614", - "3b3dd1c9.f1275e", - "6e7d7d1.8e50d04", - "e757b031.dd60f8", - "c7f4e328.7b4c7", - "55fe09c4.76bd78", - "5b95ca17.0b84a4" + "fec78ff3.01387", + "6a6df5db.95920c", + "c9668b0d.369978", + "5f023b7d.a0fdc4", + "85213655.7adec8", + "54513a6c.abaec4", + "8b1be305.74e42", + "856ed4f2.7a9128", + "80769836.7f8968", + "9b694645.6496b8", + "a075f82a.5f8a08", + "1b0790dd.e4f86f", + "b32746a2.4cd8b8", + "ac316a2a.53ce98", + "94575312.6ba8b", + "b6c16e45.493e9", + "75bd3929.8a42c8" ] ] }, { - "id": "b4dc69ff.a7ed1", + "id": "fec78ff3.01387", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 1159, - "y": 1365, - "z": "c6f0d3f1.455d9", + "x": 2346.1427459716797, + "y": 963.523759841919, + "z": "41919c74.be6e64", "wires": [ [ - "72bd50f1.643c" + "eaadea68.155218" ] ] }, { - "id": "72bd50f1.643c", + "id": "eaadea68.155218", "type": "returnFailure", "name": "return failure", "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", "comments": "", - "x": 1334, - "y": 1364, - "z": "c6f0d3f1.455d9", + "x": 2521.1427459716797, + "y": 962.523759841919, + "z": "41919c74.be6e64", "wires": [] }, { - "id": "bbb21dd0.0748a", + "id": "6a6df5db.95920c", "type": "other", "name": "name", "xml": "<outcome value='name'>", "comments": "", "outputs": 1, - "x": 1136, - "y": 487, - "z": "c6f0d3f1.455d9", + "x": 2323.1427459716797, + "y": 85.52375984191895, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "646ea6b1.a2f9c8", + "id": "c9668b0d.369978", "type": "other", "name": "service-type", "xml": "<outcome value='service-type'>", "comments": "", "outputs": 1, - "x": 1139, - "y": 554, - "z": "c6f0d3f1.455d9", + "x": 2326.1427459716797, + "y": 152.52375984191895, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "2a37f01.a563d1", + "id": "8b1be305.74e42", "type": "other", "name": "sna2_name", "xml": "<outcome value='sna2_name'>", "comments": "", "outputs": 1, - "x": 1143, - "y": 783, - "z": "c6f0d3f1.455d9", + "x": 2330.1427459716797, + "y": 381.52375984191895, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "439d167a.8c5ac", + "id": "5f023b7d.a0fdc4", "type": "other", "name": "site1-name", "xml": "<outcome value='site1-name'>", "comments": "", "outputs": 1, - "x": 1140, - "y": 615, - "z": "c6f0d3f1.455d9", + "x": 2327.1427459716797, + "y": 213.52375984191895, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "c1518ab4.108de8", + "id": "85213655.7adec8", "type": "other", "name": "site2-name", "xml": "<outcome value='site2-name'>", "comments": "", "outputs": 1, - "x": 1136, - "y": 672, - "z": "c6f0d3f1.455d9", + "x": 2323.1427459716797, + "y": 270.52375984191895, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "b9d1292c.a326b", + "id": "54513a6c.abaec4", "type": "other", "name": "sna1_name", "xml": "<outcome value='sna1_name'>", "comments": "", "outputs": 1, - "x": 1139, - "y": 729, - "z": "c6f0d3f1.455d9", + "x": 2326.1427459716797, + "y": 327.52375984191895, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "1df27ff7.9e57b8", + "id": "856ed4f2.7a9128", "type": "other", "name": "pe1_id", "xml": "<outcome value='pe1_id'>", "comments": "", "outputs": 1, - "x": 1143, - "y": 834, - "z": "c6f0d3f1.455d9", + "x": 2330.1427459716797, + "y": 432.52375984191895, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "eb7c110.2f93df", + "id": "80769836.7f8968", "type": "other", "name": "pe2_id", "xml": "<outcome value='pe2_id'>", "comments": "", "outputs": 1, - "x": 1146, - "y": 882, - "z": "c6f0d3f1.455d9", + "x": 2333.1427459716797, + "y": 480.52375984191895, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "f3eead68.9da5e", + "id": "9b694645.6496b8", "type": "other", "name": "ac1-id", "xml": "<outcome value='ac1-id'>", "comments": "", "outputs": 1, - "x": 1151, - "y": 931, - "z": "c6f0d3f1.455d9", + "x": 2338.1427459716797, + "y": 529.523759841919, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "6b17cb91.28e614", + "id": "a075f82a.5f8a08", "type": "other", "name": "ac2-id", "xml": "<outcome value='ac2-id'>", "comments": "", "outputs": 1, - "x": 1153, - "y": 986, - "z": "c6f0d3f1.455d9", + "x": 2340.1427459716797, + "y": 584.523759841919, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "3b3dd1c9.f1275e", + "id": "1b0790dd.e4f86f", "type": "other", "name": "ac1-ip", "xml": "<outcome value='ac1-ip'>", "comments": "", "outputs": 1, - "x": 1153, - "y": 1038, - "z": "c6f0d3f1.455d9", + "x": 2340.1427459716797, + "y": 636.523759841919, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "6e7d7d1.8e50d04", + "id": "b32746a2.4cd8b8", "type": "other", "name": "ac2-ip", "xml": "<outcome value='ac2-ip'>", "comments": "", "outputs": 1, - "x": 1155, - "y": 1099, - "z": "c6f0d3f1.455d9", + "x": 2342.1427459716797, + "y": 697.523759841919, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "e757b031.dd60f8", + "id": "ac316a2a.53ce98", "type": "other", "name": "ac1_peer_ip", "xml": "<outcome value='ac1_peer_ip'>", "comments": "", "outputs": 1, - "x": 1157, - "y": 1149, - "z": "c6f0d3f1.455d9", + "x": 2344.1427459716797, + "y": 747.523759841919, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "c7f4e328.7b4c7", + "id": "94575312.6ba8b", "type": "other", "name": "ac2_peer_ip", "xml": "<outcome value='ac2_peer_ip'>", "comments": "", "outputs": 1, - "x": 1153, - "y": 1197, - "z": "c6f0d3f1.455d9", + "x": 2340.1427459716797, + "y": 795.523759841919, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "55fe09c4.76bd78", + "id": "b6c16e45.493e9", "type": "other", "name": "ac1_svlan", "xml": "<outcome value='ac1_svlan'>", "comments": "", "outputs": 1, - "x": 1155, - "y": 1250, - "z": "c6f0d3f1.455d9", + "x": 2342.1427459716797, + "y": 848.523759841919, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "5b95ca17.0b84a4", + "id": "75bd3929.8a42c8", "type": "other", "name": "ac2_svlan", "xml": "<outcome value='ac2_svlan'>", "comments": "", "outputs": 1, - "x": 1157, - "y": 1311, - "z": "c6f0d3f1.455d9", + "x": 2344.1427459716797, + "y": 909.523759841919, + "z": "41919c74.be6e64", "wires": [ [ - "314ef392.5c55f4" + "b6c6c32e.49394" ] ] }, { - "id": "519b9637.7e3388", + "id": "777dc005.88824", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 259, - "y": 787, - "z": "c6f0d3f1.455d9", + "x": 340.42858123779297, + "y": 1078.3810033798218, + "z": "41919c74.be6e64", "wires": [ [ - "6d7e792f.c1a048", - "39ec9624.c1c9f2" + "a61ab24b.59e55", + "9c0bbd14.63f44" ] ] }, { - "id": "6d7e792f.c1a048", + "id": "a61ab24b.59e55", "type": "other", "name": "DeleteNetworkInstance", "xml": "<outcome value='DeleteNetworkInstance'>", "comments": "", "outputs": 1, - "x": 269, - "y": 943, - "z": "c6f0d3f1.455d9", + "x": 356.14287185668945, + "y": 1134.3809671401978, + "z": "41919c74.be6e64", "wires": [ [ - "7a441aab.52e274" + "a956c548.56a938" ] ] }, { - "id": "39ec9624.c1c9f2", + "id": "9c0bbd14.63f44", "type": "other", "name": "Other", "xml": "<outcome value='Other'>", "comments": "", "outputs": 1, - "x": 223, - "y": 993, - "z": "c6f0d3f1.455d9", + "x": 310.14287185668945, + "y": 1184.3809671401978, + "z": "41919c74.be6e64", "wires": [ [ - "a475643c.1d776" + "3c6c31c7.c393ce" ] ] }, { - "id": "a475643c.1d776", + "id": "3c6c31c7.c393ce", "type": "returnFailure", "name": "return failure", "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", "comments": "", - "x": 392, - "y": 993, - "z": "c6f0d3f1.455d9", + "x": 479.14287185668945, + "y": 1184.3809671401978, + "z": "41919c74.be6e64", "wires": [] }, { - "id": "7a441aab.52e274", + "id": "a956c548.56a938", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 494, - "y": 932, - "z": "c6f0d3f1.455d9", + "x": 581.1428718566895, + "y": 1123.3809671401978, + "z": "41919c74.be6e64", "wires": [ [ - "b0dc9dd7.cd7488" + "5793869c.a86c78" ] ] }, { - "id": "b0dc9dd7.cd7488", + "id": "5793869c.a86c78", "type": "for", "name": "for each network-input-parameters", "xml": "<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n", "comments": "", "outputs": 1, - "x": 316, - "y": 1087, - "z": "c6f0d3f1.455d9", + "x": 403.14287185668945, + "y": 1278.3809671401978, + "z": "41919c74.be6e64", "wires": [ [ - "89793fd8.cbbfd8" + "1c06545.fe3f9ac" ] ] }, { - "id": "89793fd8.cbbfd8", + "id": "1c06545.fe3f9ac", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 309, - "y": 1172, - "z": "c6f0d3f1.455d9", + "x": 396.14287185668945, + "y": 1363.3809671401978, + "z": "41919c74.be6e64", "wires": [ [ - "43f4742.1d37e0c" + "5898a53c.a7675c" ] ] }, { - "id": "43f4742.1d37e0c", + "id": "5898a53c.a7675c", "type": "switchNode", "name": "switch name", "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n", "comments": "", "outputs": 1, - "x": 492, - "y": 1165, - "z": "c6f0d3f1.455d9", + "x": 579.1428718566895, + "y": 1356.3809671401978, + "z": "41919c74.be6e64", + "wires": [ + [ + "a1cbbebc.5e344" + ] + ] + }, + { + "id": "a1cbbebc.5e344", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 760.1428718566895, + "y": 1355.3809671401978, + "z": "41919c74.be6e64", + "wires": [ + [ + "1f995851.e066a8" + ] + ] + }, + { + "id": "1f995851.e066a8", + "type": "switchNode", + "name": "switch value", + "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`\">\n", + "comments": "", + "outputs": 1, + "x": 924.1428718566895, + "y": 1355.3809671401978, + "z": "41919c74.be6e64", + "wires": [ + [ + "964134d1.69bec8" + ] + ] + }, + { + "id": "964134d1.69bec8", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 793.1428718566895, + "y": 1479.3809671401978, + "z": "41919c74.be6e64", + "wires": [ + [ + "5e9f6b8b.a16094" + ] + ] + }, + { + "id": "5e9f6b8b.a16094", + "type": "returnFailure", + "name": "return failure", + "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", + "comments": "", + "x": 971.5715866088867, + "y": 1480.3809671401978, + "z": "41919c74.be6e64", + "wires": [] + }, + { + "id": "655825a3.9aa7dc", + "type": "outcome", + "name": "activate", + "xml": "<outcome value='activate'>\n", + "comments": "", + "outputs": 1, + "x": 404.28571701049805, + "y": 604.2857389450073, + "z": "41919c74.be6e64", + "wires": [ + [ + "dc7e5048.2381b" + ] + ] + }, + { + "id": "dc7e5048.2381b", + "type": "switchNode", + "name": "switch request-action", + "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n", + "comments": "", + "outputs": 1, + "x": 587.1428833007812, + "y": 601.4285888671875, + "z": "41919c74.be6e64", + "wires": [ + [ + "4e0582c3.b1fa7c", + "20cf7f44.df308" + ] + ] + }, + { + "id": "4e0582c3.b1fa7c", + "type": "other", + "name": "ActivateNetworkInstance", + "xml": "<outcome value='ActivateNetworkInstance'>", + "comments": "", + "outputs": 1, + "x": 853.1428833007812, + "y": 560.4285888671875, + "z": "41919c74.be6e64", + "wires": [ + [ + "dc249849.23db68" + ] + ] + }, + { + "id": "20cf7f44.df308", + "type": "other", + "name": "Other", + "xml": "<outcome value='Other'>", + "comments": "", + "outputs": 1, + "x": 807.1428833007812, + "y": 610.4285888671875, + "z": "41919c74.be6e64", + "wires": [ + [ + "c869bca7.37964" + ] + ] + }, + { + "id": "c869bca7.37964", + "type": "returnFailure", + "name": "return failure", + "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 ActivateNetworkInstance for svc-action=activate\" />\n", + "comments": "", + "x": 976.1428833007812, + "y": 610.4285888671875, + "z": "41919c74.be6e64", + "wires": [] + }, + { + "id": "dc249849.23db68", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1078.1428833007812, + "y": 549.4285888671875, + "z": "41919c74.be6e64", + "wires": [ + [ + "a69af05c.59651" + ] + ] + }, + { + "id": "a69af05c.59651", + "type": "for", + "name": "for loop i - Network input parameters", + "xml": "<for index=\"i\" start=\"0\" end=\"`$network-topology-information.network-request-input.network-input-parameters.param_length`\">\n", + "comments": "", + "outputs": 1, + "x": 1331.4285888671875, + "y": 547.1428833007812, + "z": "41919c74.be6e64", + "wires": [ + [ + "eebcaba3.114358" + ] + ] + }, + { + "id": "eebcaba3.114358", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1209.511962890625, + "y": 693.8898315429688, + "z": "41919c74.be6e64", + "wires": [ + [ + "2a9d9d71.d56262", + "7f24842b.80db7c", + "8531be73.7ace4" + ] + ] + }, + { + "id": "2a9d9d71.d56262", + "type": "set", + "name": "clear tmp-data", + "xml": "<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n", + "comments": "", + "x": 1401.5120239257812, + "y": 648.1279296875, + "z": "41919c74.be6e64", + "wires": [] + }, + { + "id": "7f24842b.80db7c", + "type": "set", + "name": "set tmp-data", + "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", + "comments": "", + "x": 1390.5120239257812, + "y": 738.1279296875, + "z": "41919c74.be6e64", + "wires": [] + }, + { + "id": "8531be73.7ace4", + "type": "switchNode", + "name": "switch name", + "xml": "<switch test=\"'$tmp.name'\">\n", + "comments": "", + "outputs": 1, + "x": 1369.5120239257812, + "y": 832.1279296875, + "z": "41919c74.be6e64", + "wires": [ + [ + "c40817b9.3bf7e8", + "90143650.6febc8", + "96865432.6979a8", + "7937c725.86c838", + "693ea026.96c16", + "6ae3527c.951cac", + "1c7eef33.e38111" + ] + ] + }, + { + "id": "c40817b9.3bf7e8", + "type": "other", + "name": "name", + "xml": "<outcome value='name'>", + "comments": "", + "outputs": 1, + "x": 1588.9405250549316, + "y": 681.4136323928833, + "z": "41919c74.be6e64", + "wires": [ + [ + "490badab.b6f454" + ] + ] + }, + { + "id": "90143650.6febc8", + "type": "other", + "name": "description", + "xml": "<outcome value='description'>", + "comments": "", + "outputs": 1, + "x": 1599.0833473205566, + "y": 744.1279344558716, + "z": "41919c74.be6e64", + "wires": [ + [ + "490badab.b6f454" + ] + ] + }, + { + "id": "96865432.6979a8", + "type": "other", + "name": "router_id", + "xml": "<outcome value='router_id'>", + "comments": "", + "outputs": 1, + "x": 1590.0833625793457, + "y": 799.4136219024658, + "z": "41919c74.be6e64", + "wires": [ + [ + "490badab.b6f454" + ] + ] + }, + { + "id": "7937c725.86c838", + "type": "other", + "name": "local_networks", + "xml": "<outcome value='local_networks'>", + "comments": "", + "outputs": 1, + "x": 1608.9405403137207, + "y": 857.8422183990479, + "z": "41919c74.be6e64", + "wires": [ + [ + "490badab.b6f454" + ] + ] + }, + { + "id": "490badab.b6f454", + "type": "switchNode", + "name": "switch value", + "xml": "<switch test=\"`$tmp.value`\">\n", + "comments": "", + "outputs": 1, + "x": 1902.8571815490723, + "y": 787.1428785324097, + "z": "41919c74.be6e64", + "wires": [ + [ + "8613db79.79ec28" + ] + ] + }, + { + "id": "8613db79.79ec28", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "comments": "", + "outputs": 1, + "x": 1909.8572540283203, + "y": 968.9999656677246, + "z": "41919c74.be6e64", + "wires": [ + [ + "e2427698.1dbd88" + ] + ] + }, + { + "id": "e2427698.1dbd88", + "type": "returnFailure", + "name": "return failure", + "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", + "comments": "", + "x": 2088.2859687805176, + "y": 969.9999656677246, + "z": "41919c74.be6e64", + "wires": [] + }, + { + "id": "693ea026.96c16", + "type": "other", + "name": "evpn_irts", + "xml": "<outcome value='evpn_irts'>", + "comments": "", + "outputs": 1, + "x": 1591.428596496582, + "y": 911.4285907745361, + "z": "41919c74.be6e64", + "wires": [ + [ + "490badab.b6f454" + ] + ] + }, + { + "id": "6ae3527c.951cac", + "type": "other", + "name": "evpn_erts", + "xml": "<outcome value='evpn_erts'>", + "comments": "", + "outputs": 1, + "x": 1595.7144165039062, + "y": 964.2857065200806, + "z": "41919c74.be6e64", + "wires": [ + [ + "490badab.b6f454" + ] + ] + }, + { + "id": "1c7eef33.e38111", + "type": "other", + "name": "l3_vni", + "xml": "<outcome value='l3_vni'>", + "comments": "", + "outputs": 1, + "x": 1585.7143440246582, + "y": 1017.1428127288818, + "z": "41919c74.be6e64", + "wires": [ + [ + "490badab.b6f454" + ] + ] + }, + { + "id": "cf8cfa72.307308", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 572.8571472167969, + "y": 674.2857627868652, + "z": "41919c74.be6e64", + "wires": [ + [ + "7dfe5fb0.8201a", + "d03dcc77.2fc23" + ] + ] + }, + { + "id": "7dfe5fb0.8201a", + "type": "other", + "name": "DeactivateNetworkInstance", + "xml": "<outcome value='DeactivateNetworkInstance'>", + "comments": "", + "outputs": 1, + "x": 670.0000381469727, + "y": 751.7143239974976, + "z": "41919c74.be6e64", + "wires": [ + [ + "5f1ca7c8.a0e358" + ] + ] + }, + { + "id": "d03dcc77.2fc23", + "type": "other", + "name": "Other", + "xml": "<outcome value='Other'>", + "comments": "", + "outputs": 1, + "x": 624.0000381469727, + "y": 801.7143239974976, + "z": "41919c74.be6e64", + "wires": [ + [ + "4adf02c9.b520fc" + ] + ] + }, + { + "id": "4adf02c9.b520fc", + "type": "returnFailure", + "name": "return failure", + "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", + "comments": "", + "x": 793.0000381469727, + "y": 801.7143239974976, + "z": "41919c74.be6e64", + "wires": [] + }, + { + "id": "5f1ca7c8.a0e358", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 895.0000381469727, + "y": 740.7143239974976, + "z": "41919c74.be6e64", + "wires": [ + [ + "9aa1529a.655eb" + ] + ] + }, + { + "id": "9aa1529a.655eb", + "type": "for", + "name": "for each network-input-parameters", + "xml": "<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 717.0000381469727, + "y": 895.7143239974976, + "z": "41919c74.be6e64", + "wires": [ + [ + "9158dfcf.6ea72" + ] + ] + }, + { + "id": "9158dfcf.6ea72", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 998.5714797973633, + "y": 869.285756111145, + "z": "41919c74.be6e64", + "wires": [ + [ + "ae5a6a7f.51a598" + ] + ] + }, + { + "id": "ae5a6a7f.51a598", + "type": "switchNode", + "name": "switch id", + "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].id == 'id'`\">\n", + "comments": "", + "outputs": 1, + "x": 1014.4286727905273, + "y": 925.1429071426392, + "z": "41919c74.be6e64", "wires": [ [ - "a693d56e.072fb" + "aea89c57.51576" ] ] }, { - "id": "a693d56e.072fb", + "id": "aea89c57.51576", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 673, - "y": 1164, - "z": "c6f0d3f1.455d9", + "x": 1195.4286727905273, + "y": 924.1429071426392, + "z": "41919c74.be6e64", "wires": [ [ - "41bb92ce.69dfe4" + "2c274bc2.d3d8b4" ] ] }, { - "id": "41bb92ce.69dfe4", + "id": "2c274bc2.d3d8b4", "type": "switchNode", "name": "switch value", "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`\">\n", "comments": "", "outputs": 1, - "x": 837, - "y": 1164, - "z": "c6f0d3f1.455d9", + "x": 1272.2857818603516, + "y": 1002.7143459320068, + "z": "41919c74.be6e64", "wires": [ [ - "659b92d9.633a14" + "d2cf8ac3.2d3078" ] ] }, { - "id": "659b92d9.633a14", + "id": "d2cf8ac3.2d3078", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 706, - "y": 1288, - "z": "c6f0d3f1.455d9", + "x": 1181.2857246398926, + "y": 1086.7143020629883, + "z": "41919c74.be6e64", "wires": [ [ - "7bbbb2a1.5d8cb4" + "3b17c4b7.c4e83c" ] ] }, { - "id": "7bbbb2a1.5d8cb4", + "id": "3b17c4b7.c4e83c", "type": "returnFailure", "name": "return failure", "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", "comments": "", - "x": 884.4287147521973, - "y": 1289, - "z": "c6f0d3f1.455d9", + "x": 1359.7144393920898, + "y": 1087.7143020629883, + "z": "41919c74.be6e64", "wires": [] } -] +]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml new file mode 100644 index 00000000..a13d6497 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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}"> + <method rpc="network-topology-operation-activate" mode="sync"> + <block atomic="true"> + <call module="GENERIC-RESOURCE-API" rpc="validate-network-input-parameters" mode="sync" /> + <block atomic="true"> + <block atomic="true"> + <for index="idx" start="0" end="`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`"> + <block> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.name" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.id" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_description'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.description" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_networkName'`"> + <outcome value="true" /> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_routerId'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.router_id" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_importRT1'`"> + <outcome value="true" /> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_exportRT1'`"> + <outcome value="true" /> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_vni'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.vni" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'tunnelType'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.tunnelType" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + </switch> + </block> + </for> + <block atomic="true"> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="esr-thirdparty-sdnc" key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.dci-connects.id AND depth = '1'" pfx="tmp.aai.esr-thirdparty-sdnc" local-only="false"> + <outcome value="success"> + <block atomic="true" /> + </outcome> + <outcome value="not-found"> + <return status="failure"> + <parameter name="error-code" value="" /> + <parameter name="error-message" value="" /> + </return> + </outcome> + <outcome value="Other"> + <return status="failure"> + <parameter name="error-code" value="" /> + <parameter name="error-message" value="" /> + </return> + </outcome> + </get-resource> + <set> + <parameter name="prop.sdncRestApi.thirdpartySdnc.url" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.serviceUrl`" /> + <parameter name="prop.sdncRestApi.templateDir" value="/opt/onap/sdnc/data" /> + <parameter name="prop.sdncRestApi.thirdpartySdnc.user" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.user-name`" /> + <parameter name="prop.sdncRestApi.thirdpartySdnc.password" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.password`" /> + </set> + <switch test="`$prop.dci-connects.tunnelType`"> + <outcome value="L3-DCI"> + <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> + <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3-dci-connects-template.json'" /> + <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/v2.0/l3-dci-connects'" /> + <parameter name="restapiUser" value="$prop.sdncRestApi.thirdpartySdnc.user" /> + <parameter name="restapiPassword" value="$prop.sdncRestApi.thirdpartySdnc.password" /> + <parameter name="format" value="json" /> + <parameter name="httpMethod" value="post" /> + <parameter name="responsePrefix" value="restapi-result" /> + </execute> + </outcome> + <outcome value="L2-DCI"> + <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> + <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l2-dci-connects-template.json'" /> + <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/v2.0/l2-dci-connects'" /> + <parameter name="restapiUser" value="$prop.sdncRestApi.thirdpartySdnc.user" /> + <parameter name="restapiPassword" value="$prop.sdncRestApi.thirdpartySdnc.password" /> + <parameter name="format" value="json" /> + <parameter name="httpMethod" value="post" /> + <parameter name="responsePrefix" value="restapi-result" /> + </execute> + </outcome> + </switch> + </block> + </block> + <block atomic="true"> + <for index="idx" start="0" end="`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`"> + <block> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.id" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_description'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.description" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + <outcome value="false"> + <set> + <parameter name="prop.dci-connects.description" value="" /> + </set> + </outcome> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_networkName'`"> + <outcome value="true" /> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_routerId'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.router_id" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_importRT1'`"> + <outcome value="true" /> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_exportRT1'`"> + <outcome value="true" /> + </switch> + <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_vni'`"> + <outcome value="true"> + <set> + <parameter name="prop.dci-connects.vni" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" /> + </set> + </outcome> + </switch> + </block> + </for> + <block atomic="true"> + <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="esr-thirdparty-sdnc" key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.dci-connects.id AND depth = '1'" pfx="tmp.aai.esr-thirdparty-sdnc" local-only="false"> + <outcome value="success"> + <block atomic="true" /> + </outcome> + <outcome value="not-found"> + <return status="failure"> + <parameter name="error-code" value="" /> + <parameter name="error-message" value="" /> + </return> + </outcome> + <outcome value="Other"> + <return status="failure"> + <parameter name="error-code" value="" /> + <parameter name="error-message" value="" /> + </return> + </outcome> + </get-resource> + <set> + <parameter name="prop.sdncRestApi.thirdpartySdnc.url" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.serviceUrl`" /> + <parameter name="prop.sdncRestApi.templateDir" value="/opt/onap/sdnc/data" /> + <parameter name="prop.sdncRestApi.thirdpartySdnc.user" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.user-name`" /> + <parameter name="prop.sdncRestApi.thirdpartySdnc.password" value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.password`" /> + </set> + <switch test="`$prop.dci-connects.tunnelType`"> + <outcome value="L3-DCI"> + <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> + <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3-dci-connects-template.json'" /> + <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/v2.0/l3-dci-connects'" /> + <parameter name="restapiUser" value="$prop.sdncRestApi.thirdpartySdnc.user" /> + <parameter name="restapiPassword" value="$prop.sdncRestApi.thirdpartySdnc.password" /> + <parameter name="format" value="json" /> + <parameter name="httpMethod" value="post" /> + <parameter name="responsePrefix" value="restapi-result" /> + </execute> + </outcome> + <outcome value="L2-DCI"> + <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> + <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l2-dci-connects-template.json'" /> + <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/v2.0/l2-dci-connects'" /> + <parameter name="restapiUser" value="$prop.sdncRestApi.thirdpartySdnc.user" /> + <parameter name="restapiPassword" value="$prop.sdncRestApi.thirdpartySdnc.password" /> + <parameter name="format" value="json" /> + <parameter name="httpMethod" value="post" /> + <parameter name="responsePrefix" value="restapi-result" /> + </execute> + </outcome> + </switch> + </block> + </block> + </block> + <return status="success"> + <parameter name="ack-final-indicator" value="Y" /> + <parameter name="error-code" value="200" /> + <parameter name="error-message" value="`$error-message`" /> + </return> + </block> + </method> +</service-logic>
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-activate.xml deleted file mode 100644 index 5e907e4d..00000000 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-activate.xml +++ /dev/null @@ -1,142 +0,0 @@ -<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}'> - <method rpc='network-topology-operation-activate' mode='sync'> - <block atomic='true'> - <call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' ></call> - <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" - resource="l3-dci-connects" - key="l3-dci-connects.id = $tmp.id AND depth = '1'" - pfx='tmp.aai.l3-dci-connects' local-only='false' > - <outcome value='success'> - <block></block> - </outcome> - <outcome value='not-found'> - <return status='failure'> - <parameter name='error-code' value='' /> - <parameter name='error-message' value='' /> - </return> - </outcome> - <outcome value='Other'> - <return status='failure'> - <parameter name='error-code' value='' /> - <parameter name='error-message' value='' /> - </return> - </outcome> - </get-resource> - <set> - <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.serviceUrl`" /> - <parameter name='prop.sdncRestApi.templateDir' value='/opt/onap/sdnc/data' /> - <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.user-name`" /> - <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.password`" /> - </set> - <for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' > - <block> - <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`"> - <outcome value='true'> - <set> - <parameter name='prop.l3-dci-connects.name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' /> - </set> - </outcome> - </switch> - <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'description'`"> - <outcome value='true'> - <set> - <parameter name='prop.l3-dci-connects.description' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' /> - </set> - </outcome> - </switch> - <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'router_id'`"> - <outcome value='true'> - <set> - <parameter name='prop.l3-dci-connects.router_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' /> - </set> - </outcome> - </switch> - <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'local_networks'`"> - <outcome value='true'> - <set> - <parameter name='prop.l3-dci-connects.local_networks' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' /> - </set> - </outcome> - </switch> - <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'evpn_irts'`"> - <outcome value='true'> - <set> - <parameter name='prop.l3-dci-connects.evpn_irts' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' /> - </set> - </outcome> - </switch> - <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'evpn_erts'`"> - <outcome value='true'> - <set> - <parameter name='prop.l3-dci-connects.evpn_erts' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' /> - </set> - </outcome> - </switch> - <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'l3_vni'`"> - <outcome value='true'> - <set> - <parameter name='prop.l3-dci-connects.l3_vni' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' /> - </set> - </outcome> - </switch> - </block> - </for> - <execute plugin='com.att.sdnctl.sli.SliPluginUtils.SliPluginUtils' method='generateUUID' > - <parameter name="ctx-destination" value="prop.l3-dci-connects.id"/> - <outcome value='failure'> - <return status='failure'> - <parameter name='error-code' value='' /> - <parameter name='error-message' value='' /> - </return> - </outcome> - <outcome value='success'> - <block></block> - </outcome> - </execute> - <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder"> - <parameter name="logger" value="message-log"/> - <parameter name="field1" value="__TIMESTAMP__"/> - <parameter name="field2" value="GENERIC-RESOURCE-API.l3-dci-connects-network-topology-operation-activate"/> - <parameter name='field3' value='`$l3-dci-connects.name`' /> - <parameter name='field3' value='`$l3-dci-connects.id`' /> - <parameter name='field4' value='`$l3-dci-connects.description`' /> - <parameter name='field5' value='`$l3-dci-connects.router_id`' /> - <parameter name='field6' value='`$l3-dci-connects.local_networks`' /> - <parameter name='field7' value='`$l3-dci-connects.evpn_irts`' /> - <parameter name='field8' value='`$l3-dci-connects.evpn_erts`' /> - <parameter name='field9' value='`$l3-dci-connects.l3_vni`' /> - </record> - <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > - <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3-dci-connects-template.json'"/> - <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/v2.0/l3-dci-connects'"/> - <parameter name="restapiUser" value="$prop.sdncRestApi.thirdpartySdnc.user"/> - <parameter name="restapiPassword" value="$prop.sdncRestApi.thirdpartySdnc.password"/> - <parameter name="format" value="json"/> - <parameter name="httpMethod" value="post"/> - <parameter name="responsePrefix" value="restapi-result"/> - <outcome value='failure'> - <return status='failure'> - <parameter name='ack-final' value='Y'/> - <parameter name="error-code" value="500" /> - <parameter name="error-message" value="Error updating md-sal for contrail-route-allotted-resource" /> - </return> - </outcome> - <outcome value='not-found'> - <return status='failure'> - <parameter name='ack-final' value='Y'/> - <parameter name="error-code" value="500" /> - <parameter name="error-message" value="Error updating md-sal for contrail-route-allotted-resource" /> - </return> - </outcome> - </execute> - <return status='success'> - <return status='success'> - <parameter name="ack-final-indicator" value="Y" /> - <parameter name="error-code" value="200" /> - <parameter name="error-message" value="`$error-message`" /> - </return> - </block> - </method> -</service-logic>
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml index 07d717a0..620fe9ca 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml @@ -1,127 +1,410 @@ -<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}'><method rpc='validate-network-input-parameters' mode='sync'>
-<block atomic="true"><switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="sdnc-request-header.svc-request-id is a required input" />
-</return></outcome></switch><switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>
-<outcome value='assign'>
-<block atomic="true"><switch test='`$network-topology-operation-input.request-information.request-action`'>
-<outcome value='CreateNetworkInstance'><block atomic="true"><for index="i" start="0" end="`$network-topology-information.network-request-input.network-input-parameters.param_length`">
-<block>
-<set>
-<parameter name='tmp.name' value='' />
-<parameter name='tmp.value' value='' />
-</set><set>
-<parameter name='tmp.name' value="'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].name'"/>
-<parameter name='tmp.value' value="'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].value'"/>
-</set><switch test="'$tmp.name'">
-<outcome value='name'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='service-type'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='site1-name'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='site2-name'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='sna1_name'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='sna2_name'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='pe1_id'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='pe2_id'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='ac1-id'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='ac2-id'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='ac1-ip'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='ac2-ip'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='ac1_peer_ip'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='ac2_peer_ip'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='ac1_svlan'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value='ac2_svlan'><switch test="`$tmp.value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome><outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`" />
-</return></outcome></switch></block></for></block></outcome><outcome value='Other'><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="request-information.request-action is required to be CreateNetworkInstance for svc-action=assign" />
-</return></outcome></switch></block></outcome><outcome value='deactivate'>
-</outcome><outcome value='delete'>
-<block atomic="true"><outcome value='DeleteNetworkInstance'><block atomic="true"><for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >
-<block>
-<switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`">
-<outcome value='true'>
-<switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`">
-<outcome value=''><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
-</return></outcome></switch></outcome></switch></block></for></block></outcome><outcome value='Other'><return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="request-information.request-action is required to be CreateNetworkInstance for svc-action=assign" />
-</return></outcome></block></outcome><outcome value='Other'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`" />
-</return></outcome></switch></block></method></service-logic>
\ No newline at end of file +<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}'>
+ <method rpc='validate-network-input-parameters' mode='sync'>
+ <block atomic="true">
+ <switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="sdnc-request-header.svc-request-id is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ <switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>
+ <outcome value='assign'>
+ <block atomic="true">
+ <switch test='`$network-topology-operation-input.request-information.request-action`'>
+ <outcome value='CreateNetworkInstance'>
+ <block atomic="true">
+ <for index="i" start="0" end="`$network-topology-information.network-request-input.network-input-parameters.param_length`">
+ <block>
+ <set>
+ <parameter name='tmp.name' value='' />
+ <parameter name='tmp.value' value='' />
+ </set>
+ <set>
+ <parameter name='tmp.name' value="'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].name'"/>
+ <parameter name='tmp.value' value="'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].value'"/>
+ </set>
+ <switch test="'$tmp.name'">
+ <outcome value='name'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='service-type'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='site1-name'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='site2-name'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='sna1_name'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='sna2_name'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='pe1_id'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='pe2_id'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='ac1-id'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='ac2-id'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='ac1-ip'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='ac2-ip'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='ac1_peer_ip'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='ac2_peer_ip'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='ac1_svlan'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='ac2_svlan'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="request-information.request-action is required to be CreateNetworkInstance for svc-action=assign" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='activate'>
+ <switch test='`$network-topology-operation-input.request-information.request-action`'>
+ <outcome value='ActivateNetworkInstance'>
+ <block atomic="true">
+ <for index="i" start="0" end="`$network-topology-information.network-request-input.network-input-parameters.param_length`">
+ <block>
+ <set>
+ <parameter name='tmp.name' value='' />
+ <parameter name='tmp.value' value='' />
+ </set>
+ <set>
+ <parameter name='tmp.name' value="'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].name'"/>
+ <parameter name='tmp.value' value="'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].value'"/>
+ </set>
+ <switch test="'$tmp.name'">
+ <outcome value='name'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='description'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='router_id'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='local_networks'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='evpn_irts'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='evpn_erts'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='l3_vni'>
+ <switch test="`$tmp.value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="request-information.request-action is required to be ActivateNetworkInstance for svc-action=activate" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='deactivate'>
+ <block atomic="true">
+ <outcome value='DeactivateNetworkInstance'>
+ <block atomic="true">
+ <for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >
+ <block>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].id == 'id'`">
+ <outcome value='true'>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="request-information.request-action is required to be CreateNetworkInstance for svc-action=assign" />
+ </return>
+ </outcome>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`" />
+ </return>
+ </outcome>
+ <outcome value='delete'>
+ <block atomic="true">
+ <outcome value='DeleteNetworkInstance'>
+ <block atomic="true">
+ <for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >
+ <block>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`">
+ <outcome value='true'>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`">
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="network-request-input.network-input-parameters.name is a required input" />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="request-information.request-action is required to be CreateNetworkInstance for svc-action=assign" />
+ </return>
+ </outcome>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</service-logic>
\ No newline at end of file |