aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dgbuilder/.gitignore3
-rw-r--r--installation/sdnc/src/main/scripts/installFeatures.sh1
-rw-r--r--installation/sdnc/src/main/scripts/installZips.sh1
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json1255
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-create.json1864
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-delete.json2
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json1390
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-network-input-parameters.json1735
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.json2
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml108
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-create.xml524
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-delete.xml111
-rwxr-xr-xplatform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml310
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-network-input-parameters.xml636
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.xml494
15 files changed, 5701 insertions, 2735 deletions
diff --git a/dgbuilder/.gitignore b/dgbuilder/.gitignore
index 1b8a6ba9..39c24059 100644
--- a/dgbuilder/.gitignore
+++ b/dgbuilder/.gitignore
@@ -1,4 +1,4 @@
-org.eclipse.core.resources.prefs
+org.eclipse.core.resources.prefs
.classpath
.project
.settings
@@ -10,3 +10,4 @@ target/
MANIFEST.MF
.DS_STORE
.metadata
+pom.xml_base \ No newline at end of file
diff --git a/installation/sdnc/src/main/scripts/installFeatures.sh b/installation/sdnc/src/main/scripts/installFeatures.sh
index cc1bbe39..29a3a70e 100644
--- a/installation/sdnc/src/main/scripts/installFeatures.sh
+++ b/installation/sdnc/src/main/scripts/installFeatures.sh
@@ -45,6 +45,7 @@ CCSDK_SLI_NORTHBOUND_FEATURES=" \
dataChange"
SDNC_NORTHBOUND_FEATURES=" \
+ generic-resource-api \
vnfapi \
vnftools"
diff --git a/installation/sdnc/src/main/scripts/installZips.sh b/installation/sdnc/src/main/scripts/installZips.sh
index 95414449..e8789bee 100644
--- a/installation/sdnc/src/main/scripts/installZips.sh
+++ b/installation/sdnc/src/main/scripts/installZips.sh
@@ -35,6 +35,7 @@ featureDir=${targetDir}/features
SDNC_NORTHBOUND_FEATURES=" \
+ generic-resource-api \
vnfapi \
vnftools"
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
index dbd501eb..358e7ec9 100644
--- 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
@@ -1,80 +1,80 @@
[
{
- "id":"2a040436.290c8c",
+ "id":"60145acf.ac87b4",
"type":"dgstart",
"name":"DGSTART",
"outputs":1,
- "x":153.515625,
- "y":124.515625,
- "z":"17ff3bf3.2a2c24",
+ "x":105.515625,
+ "y":47.99999809265137,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "8161f964.80e1c8"
+ "4cc0f1af.f25ba"
]
]
},
{
- "id":"8161f964.80e1c8",
+ "id":"4cc0f1af.f25ba",
"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}'>",
+ "xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
"outputs":1,
- "x":370.015625,
- "y":187.015625,
- "z":"17ff3bf3.2a2c24",
+ "x":322.015625,
+ "y":110.49999809265137,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "30fee650.ed9d0a"
+ "27054278.56f0ce"
]
]
},
{
- "id":"30fee650.ed9d0a",
+ "id":"27054278.56f0ce",
"type":"method",
- "name":"method network-topology-operation-activate",
- "xml":"<method rpc='network-topology-operation-activate' mode='sync'>\n",
+ "name":"method dci-connects-network-topology-operation-activate",
+ "xml":"<method rpc='dci-connects-network-topology-operation-activate' mode='sync'>\n",
"comments":"",
"outputs":1,
- "x":278.0156555175781,
- "y":282.01560974121094,
- "z":"17ff3bf3.2a2c24",
+ "x":230.01565551757812,
+ "y":205.4999828338623,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "20d450e0.f9c5c"
+ "17a21e32.d066f2"
]
]
},
{
- "id":"20d450e0.f9c5c",
+ "id":"17a21e32.d066f2",
"type":"block",
"name":"block : atomic",
"xml":"<block atomic=\"true\">",
"atomic":"true",
"outputs":1,
- "x":575.8489685058594,
- "y":289.8489532470703,
- "z":"17ff3bf3.2a2c24",
+ "x":527.8489685058594,
+ "y":213.33332633972168,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "2a5bea3e.9ac986",
- "69c54932.e08388",
- "35413b11.2f5d34"
+ "c2ea2a39.349028",
+ "c3b857dd.cdef38",
+ "b122986c.ea3588"
]
]
},
{
- "id":"69c54932.e08388",
+ "id":"c3b857dd.cdef38",
"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",
+ "x":917.8489685058594,
+ "y":78.33332633972168,
+ "z":"21bf7e0.d63c382",
"wires":[
[
@@ -82,361 +82,361 @@
]
},
{
- "id":"896ee5a6.83b038",
+ "id":"e3e1b08f.34796",
"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",
+ "x":1435.8492584228516,
+ "y":351.33338713645935,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "af2f5aa0.9db4d8"
+ "df2d225.ad706e"
]
]
},
{
- "id":"af2f5aa0.9db4d8",
+ "id":"df2d225.ad706e",
"type":"block",
"name":"block",
"xml":"<block>\n",
"atomic":"false",
"comments":"",
"outputs":1,
- "x":1730.8491668701172,
- "y":425.84898352622986,
- "z":"17ff3bf3.2a2c24",
+ "x":1682.8491668701172,
+ "y":349.3333566188812,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "c1ee07c8.a78ae8",
- "a6b6dbe6.38ccc8",
- "9e54353d.d1bfc8",
- "66bffa85.510244",
- "4785e157.899f7",
- "663f250e.61399c",
- "fab15712.1348c8",
- "586d46f5.85b668",
- "ec24e74c.17dbe8"
+ "3fc9d626.fd631a",
+ "3af822f1.512e5e",
+ "ba27957d.3af2a8",
+ "30d85a9a.81ed46",
+ "96ccbb3d.e35638",
+ "953727e3.e65d98",
+ "9f4099a7.cd6818",
+ "ecbf5185.0a283",
+ "366dfe39.460be2"
]
]
},
{
- "id":"c1ee07c8.a78ae8",
+ "id":"3fc9d626.fd631a",
"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",
+ "x":2169.84952545166,
+ "y":225.3334732055664,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "327b4262.8149de"
+ "2d331fe2.47fa4"
]
]
},
{
- "id":"a6b6dbe6.38ccc8",
+ "id":"3af822f1.512e5e",
"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",
+ "x":2197.84952545166,
+ "y":279.33345890045166,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "514eeef4.8a908"
+ "7f98b7b2.516698"
]
]
},
{
- "id":"9e54353d.d1bfc8",
+ "id":"ba27957d.3af2a8",
"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",
+ "x":2186.8493118286133,
+ "y":410.33341884613037,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "53af1349.89045c"
+ "c0866b21.51b018"
]
]
},
{
- "id":"66bffa85.510244",
+ "id":"30d85a9a.81ed46",
"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",
+ "x":2195.1350479125977,
+ "y":471.61917209625244,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "83930cf2.7360d"
+ "403c9bfb.ba9f84"
]
]
},
{
- "id":"4785e157.899f7",
+ "id":"96ccbb3d.e35638",
"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",
+ "x":2196.135108947754,
+ "y":535.6191428899765,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "534f57af.d494e8"
+ "de48d13a.91b27"
]
]
},
{
- "id":"663f250e.61399c",
+ "id":"953727e3.e65d98",
"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",
+ "x":2167.135078430176,
+ "y":598.6191749572754,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "c26455d8.5ef828"
+ "774440d3.26232"
]
]
},
{
- "id":"327b4262.8149de",
+ "id":"2d331fe2.47fa4",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2432.84952545166,
- "y":300.84910011291504,
- "z":"17ff3bf3.2a2c24",
+ "x":2384.84952545166,
+ "y":224.3334732055664,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "43d13ebf.45445"
+ "61674644.1d0558"
]
]
},
{
- "id":"514eeef4.8a908",
+ "id":"7f98b7b2.516698",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2443.84952545166,
- "y":355.8490858078003,
- "z":"17ff3bf3.2a2c24",
+ "x":2395.84952545166,
+ "y":279.33345890045166,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "a9b60a7b.f654d8"
+ "c33f05d1.922218"
]
]
},
{
- "id":"53af1349.89045c",
+ "id":"c0866b21.51b018",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2439.8493118286133,
- "y":485.849045753479,
- "z":"17ff3bf3.2a2c24",
+ "x":2391.8493118286133,
+ "y":409.33341884613037,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "9f81d7be.b3b6e8"
+ "f941cf94.05bbe"
]
]
},
{
- "id":"83930cf2.7360d",
+ "id":"403c9bfb.ba9f84",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2445.1350479125977,
- "y":547.1347990036011,
- "z":"17ff3bf3.2a2c24",
+ "x":2397.1350479125977,
+ "y":470.61917209625244,
+ "z":"21bf7e0.d63c382",
"wires":[
[
-
+ "9da05058.8cf95"
]
]
},
{
- "id":"534f57af.d494e8",
+ "id":"de48d13a.91b27",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2440.135108947754,
- "y":609.1347697973251,
- "z":"17ff3bf3.2a2c24",
+ "x":2392.135108947754,
+ "y":532.6191428899765,
+ "z":"21bf7e0.d63c382",
"wires":[
[
-
+ "7e027125.8b2a2"
]
]
},
{
- "id":"c26455d8.5ef828",
+ "id":"774440d3.26232",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2421.135078430176,
- "y":675.134801864624,
- "z":"17ff3bf3.2a2c24",
+ "x":2373.135078430176,
+ "y":598.6191749572754,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "8be01263.8a302"
+ "cecc8f2e.0ca25"
]
]
},
{
- "id":"a9b60a7b.f654d8",
+ "id":"c33f05d1.922218",
"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",
+ "x":2577.84952545166,
+ "y":272.33345890045166,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"9f81d7be.b3b6e8",
+ "id":"f941cf94.05bbe",
"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",
+ "x":2582.8495330810547,
+ "y":402.33350563049316,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"8be01263.8a302",
+ "id":"cecc8f2e.0ca25",
"type":"set",
- "name":"set l3_vni",
+ "name":"set 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",
+ "x":2543.135078430176,
+ "y":590.6191749572754,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"2a5bea3e.9ac986",
+ "id":"c2ea2a39.349028",
"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",
+ "x":750.1347961425781,
+ "y":1054.0476970672607,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"fab15712.1348c8",
+ "id":"9f4099a7.cd6818",
"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",
+ "x":2181.0160598754883,
+ "y":166.5001049041748,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "5e5a3418.1941bc"
+ "2522e46d.18fb0c"
]
]
},
{
- "id":"5e5a3418.1941bc",
+ "id":"2522e46d.18fb0c",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2427.0160598754883,
- "y":243.01573181152344,
- "z":"17ff3bf3.2a2c24",
+ "x":2379.0160598754883,
+ "y":166.5001049041748,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "5ff1b9ff.668d98"
+ "d80dda98.56d9c8"
]
]
},
{
- "id":"5ff1b9ff.668d98",
+ "id":"d80dda98.56d9c8",
"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",
+ "x":2561.0160598754883,
+ "y":159.5001049041748,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"586d46f5.85b668",
+ "id":"ecbf5185.0a283",
"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",
+ "x":2204.5158462524414,
+ "y":345.50004482269287,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "42b0bf4c.61f81"
+ "6712cfa0.6da36"
]
]
},
{
- "id":"42b0bf4c.61f81",
+ "id":"6712cfa0.6da36",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2450.5158462524414,
- "y":422.0156717300415,
- "z":"17ff3bf3.2a2c24",
+ "x":2402.5158462524414,
+ "y":345.50004482269287,
+ "z":"21bf7e0.d63c382",
"wires":[
[
@@ -444,317 +444,317 @@
]
},
{
- "id":"35413b11.2f5d34",
+ "id":"b122986c.ea3588",
"type":"block",
"name":"block : execute",
"xml":"<block atomic=\"true\">",
"atomic":"true",
"comments":"",
"outputs":1,
- "x":799.5155563354492,
- "y":663.0156707763672,
- "z":"17ff3bf3.2a2c24",
+ "x":751.5155563354492,
+ "y":586.5000438690186,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "44be3858.556028",
- "82979b1a.ffa758"
+ "7b94a84.2093158",
+ "ccbd6961.d40f88"
]
]
},
{
- "id":"44be3858.556028",
+ "id":"7b94a84.2093158",
"type":"block",
"name":"block : executeSite1",
"xml":"<block atomic=\"true\">",
"atomic":"true",
"comments":"",
"outputs":1,
- "x":1092.0156173706055,
- "y":487.5156469345093,
- "z":"17ff3bf3.2a2c24",
+ "x":1044.0156173706055,
+ "y":411.00002002716064,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "896ee5a6.83b038",
- "6a6dccab.683c44"
+ "e3e1b08f.34796",
+ "f33269f0.940878"
]
]
},
{
- "id":"82979b1a.ffa758",
+ "id":"ccbd6961.d40f88",
"type":"block",
"name":"block : executeSite2",
"xml":"<block atomic=\"true\">",
"atomic":"true",
"comments":"",
"outputs":1,
- "x":1109.0156631469727,
- "y":1003.5156297683716,
- "z":"17ff3bf3.2a2c24",
+ "x":1061.0156631469727,
+ "y":927.000002861023,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "de7fc2e1.99f1a",
- "6a6dccab.683c44"
+ "51a93228.f2f0fc",
+ "f33269f0.940878"
]
]
},
{
- "id":"77dd9b7e.75bb04",
+ "id":"5d2180aa.de0e2",
"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",
+ "x":2155.515869140625,
+ "y":745.9999370574951,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "fa545715.6bc4d8"
+ "bbb36af3.4b5978"
]
]
},
{
- "id":"cbab9cb6.9af94",
+ "id":"e3115059.5fca5",
"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",
+ "x":2179.5162200927734,
+ "y":804.9999437332153,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "eca3282e.6ef838",
- "e75e638.f112aa"
+ "b4f95f29.48041",
+ "50452acf.501864"
]
]
},
{
- "id":"2b87cf93.6aebd",
+ "id":"533af772.c3eac8",
"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",
+ "x":2188.515609741211,
+ "y":1000.9999094009399,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "5395f6bd.9d59d8"
+ "6a04a362.a162ec"
]
]
},
{
- "id":"1400dc59.ed1ce4",
+ "id":"e72b1110.d4d6e",
"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",
+ "x":2196.8013458251953,
+ "y":1062.285662651062,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "bb1a369b.7663b8"
+ "c14e7e52.9dfca"
]
]
},
{
- "id":"7f102eb1.e249d",
+ "id":"32c0b542.9e397a",
"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",
+ "x":2197.8014068603516,
+ "y":1126.285633444786,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "92bb4854.187448"
+ "b21aa554.501138"
]
]
},
{
- "id":"e8e9faf3.7fedc8",
+ "id":"759ab28f.fe025c",
"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",
+ "x":2168.8013763427734,
+ "y":1189.285665512085,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "f8be59bd.a42528"
+ "f68ec5ed.0e6888"
]
]
},
{
- "id":"fa545715.6bc4d8",
+ "id":"bbb36af3.4b5978",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2418.515869140625,
- "y":821.5155639648438,
- "z":"17ff3bf3.2a2c24",
+ "x":2370.515869140625,
+ "y":744.9999370574951,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "f8a4213a.dfd9b"
+ "3b9d92a0.561cce"
]
]
},
{
- "id":"eca3282e.6ef838",
+ "id":"b4f95f29.48041",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2425.5162200927734,
- "y":881.515570640564,
- "z":"17ff3bf3.2a2c24",
+ "x":2377.5162200927734,
+ "y":804.9999437332153,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "52d4304f.1112c"
+ "862e157b.103688"
]
]
},
{
- "id":"5395f6bd.9d59d8",
+ "id":"6a04a362.a162ec",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2441.515609741211,
- "y":1076.5155363082886,
- "z":"17ff3bf3.2a2c24",
+ "x":2393.515609741211,
+ "y":999.9999094009399,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "6207e038.3cb7a"
+ "6295c05a.7d32"
]
]
},
{
- "id":"bb1a369b.7663b8",
+ "id":"c14e7e52.9dfca",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2446.8013458251953,
- "y":1137.8012895584106,
- "z":"17ff3bf3.2a2c24",
+ "x":2398.8013458251953,
+ "y":1061.285662651062,
+ "z":"21bf7e0.d63c382",
"wires":[
[
-
+ "6bd3101.b6ac7f"
]
]
},
{
- "id":"92bb4854.187448",
+ "id":"b21aa554.501138",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2441.8014068603516,
- "y":1199.8012603521347,
- "z":"17ff3bf3.2a2c24",
+ "x":2393.8014068603516,
+ "y":1123.285633444786,
+ "z":"21bf7e0.d63c382",
"wires":[
[
-
+ "353fa61f.c112fa"
]
]
},
{
- "id":"f8be59bd.a42528",
+ "id":"f68ec5ed.0e6888",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2422.8013763427734,
- "y":1265.8012924194336,
- "z":"17ff3bf3.2a2c24",
+ "x":2374.8013763427734,
+ "y":1189.285665512085,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "a6ac757.8e55c88"
+ "5f4e48ea.1a8f68"
]
]
},
{
- "id":"52d4304f.1112c",
+ "id":"862e157b.103688",
"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",
+ "x":2559.5162200927734,
+ "y":797.9999437332153,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"6207e038.3cb7a",
+ "id":"6295c05a.7d32",
"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",
+ "x":2584.5158309936523,
+ "y":992.9999961853027,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"a6ac757.8e55c88",
+ "id":"5f4e48ea.1a8f68",
"type":"set",
- "name":"set l3_vni",
+ "name":"set 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",
+ "x":2544.8013763427734,
+ "y":1181.285665512085,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"8a2a845c.c20518",
+ "id":"32050113.af315e",
"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",
+ "x":2206.182144165039,
+ "y":936.1665353775024,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "cba705fe.7fbd68"
+ "ad14e7c.2778e18"
]
]
},
{
- "id":"cba705fe.7fbd68",
+ "id":"ad14e7c.2778e18",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2452.182144165039,
- "y":1012.6821622848511,
- "z":"17ff3bf3.2a2c24",
+ "x":2404.182144165039,
+ "y":936.1665353775024,
+ "z":"21bf7e0.d63c382",
"wires":[
[
@@ -762,131 +762,131 @@
]
},
{
- "id":"7621d3f.20db72c",
+ "id":"4a12c766.428fe8",
"type":"block",
"name":"block",
"xml":"<block>\n",
"atomic":"false",
"comments":"",
"outputs":1,
- "x":1722.5153198242188,
- "y":944.5155217647552,
- "z":"17ff3bf3.2a2c24",
+ "x":1674.5153198242188,
+ "y":867.9998948574066,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "77dd9b7e.75bb04",
- "cbab9cb6.9af94",
- "2b87cf93.6aebd",
- "1400dc59.ed1ce4",
- "7f102eb1.e249d",
- "e8e9faf3.7fedc8",
- "8a2a845c.c20518"
+ "5d2180aa.de0e2",
+ "e3115059.5fca5",
+ "533af772.c3eac8",
+ "e72b1110.d4d6e",
+ "32c0b542.9e397a",
+ "759ab28f.fe025c",
+ "32050113.af315e"
]
]
},
{
- "id":"de7fc2e1.99f1a",
+ "id":"51a93228.f2f0fc",
"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",
+ "x":1427.5154113769531,
+ "y":869.9999253749847,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "7621d3f.20db72c"
+ "4a12c766.428fe8"
]
]
},
{
- "id":"43d13ebf.45445",
+ "id":"61674644.1d0558",
"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",
+ "x":2566.5159072875977,
+ "y":218.0000228881836,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"ec24e74c.17dbe8",
+ "id":"366dfe39.460be2",
"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",
+ "x":2186.015625,
+ "y":667.9999370574951,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "12f5c8b9.553a97"
+ "8e0c82ca.7fa6"
]
]
},
{
- "id":"12f5c8b9.553a97",
+ "id":"8e0c82ca.7fa6",
"type":"outcomeTrue",
"name":"true",
"xml":"<outcome value='true'>\n",
"comments":"",
"outputs":1,
- "x":2440.015625,
- "y":744.5155639648438,
- "z":"17ff3bf3.2a2c24",
+ "x":2392.015625,
+ "y":667.9999370574951,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "ea283679.45ebf8"
+ "731815b1.9879ac"
]
]
},
{
- "id":"ea283679.45ebf8",
+ "id":"731815b1.9879ac",
"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",
+ "x":2562.015625,
+ "y":659.9999370574951,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"6a6dccab.683c44",
+ "id":"f33269f0.940878",
"type":"block",
"name":"block : sendRequest",
"xml":"<block atomic=\"true\">",
"atomic":"true",
"comments":"",
"outputs":1,
- "x":1388.0156440734863,
- "y":1504.0155696868896,
- "z":"17ff3bf3.2a2c24",
+ "x":1340.0156440734863,
+ "y":1427.499942779541,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "689b1559.c8e0ac",
- "6b04340b.667f8c",
- "e59ef441.ec3b38"
+ "8a66fbcb.3a6538",
+ "a01675f7.06ee28",
+ "49f34f09.e59ea"
]
]
},
{
- "id":"dc085795.91fbb8",
+ "id":"8f288c1f.2ee81",
"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",
+ "x":2148.0159187316895,
+ "y":1490.4998979568481,
+ "z":"21bf7e0.d63c382",
"wires":[
[
@@ -894,64 +894,64 @@
]
},
{
- "id":"ff1f7cdd.1de74",
+ "id":"d32d9795.7e3d68",
"type":"success",
"name":"success",
"xml":"<outcome value='success'>\n",
"comments":"",
"outputs":1,
- "x":1881.5154113769531,
- "y":1356.0150890350342,
- "z":"17ff3bf3.2a2c24",
+ "x":1833.5154113769531,
+ "y":1279.4994621276855,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "8fb0b02d.400ca"
+ "2e0abdec.6b6a72"
]
]
},
{
- "id":"2e24b7ed.4af348",
+ "id":"37a4ea9c.c89576",
"type":"not-found",
"name":"not-found",
"xml":"<outcome value='not-found'>\n",
"comments":"",
"outputs":1,
- "x":1888.5154113769531,
- "y":1394.0150890350342,
- "z":"17ff3bf3.2a2c24",
+ "x":1840.5154113769531,
+ "y":1317.4994621276855,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "eabc77a3.4c68d8"
+ "b76645eb.106e38"
]
]
},
{
- "id":"d482f537.fd1128",
+ "id":"6bb7a3cb.5c930c",
"type":"other",
"name":"other",
"xml":"<outcome value='Other'>\n",
"comments":"",
"outputs":1,
- "x":1880.5154113769531,
- "y":1436.0150890350342,
- "z":"17ff3bf3.2a2c24",
+ "x":1832.5154113769531,
+ "y":1359.4994621276855,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "2834746.db4418c"
+ "db6ca063.b0c74"
]
]
},
{
- "id":"8fb0b02d.400ca",
+ "id":"2e0abdec.6b6a72",
"type":"block",
"name":"block : atomic",
"xml":"<block atomic=\"true\">\n",
"atomic":"false",
"comments":"",
"outputs":1,
- "x":2046.5154113769531,
- "y":1345.0150890350342,
- "z":"17ff3bf3.2a2c24",
+ "x":1998.5154113769531,
+ "y":1268.4994621276855,
+ "z":"21bf7e0.d63c382",
"wires":[
[
@@ -959,134 +959,134 @@
]
},
{
- "id":"eabc77a3.4c68d8",
+ "id":"b76645eb.106e38",
"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",
+ "x":1997.5154113769531,
+ "y":1321.4994621276855,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"2834746.db4418c",
+ "id":"db6ca063.b0c74",
"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",
+ "x":1990.5154113769531,
+ "y":1368.4994621276855,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"689b1559.c8e0ac",
+ "id":"8a66fbcb.3a6538",
"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",
+ "x":1645.5155334472656,
+ "y":1326.4994812011719,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "ff1f7cdd.1de74",
- "2e24b7ed.4af348",
- "d482f537.fd1128"
+ "d32d9795.7e3d68",
+ "37a4ea9c.c89576",
+ "6bb7a3cb.5c930c"
]
]
},
{
- "id":"6b04340b.667f8c",
+ "id":"a01675f7.06ee28",
"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",
+ "x":1617.0153846740723,
+ "y":1427.9994354248047,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"e59ef441.ec3b38",
+ "id":"49f34f09.e59ea",
"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",
+ "x":1611.0153770446777,
+ "y":1514.9994087219238,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "c8be8edd.1a0fe",
- "22e73278.5a70de"
+ "72c21633.697888",
+ "bc6148.3fa8ceb8"
]
]
},
{
- "id":"c8be8edd.1a0fe",
+ "id":"72c21633.697888",
"type":"outcomeTrue",
"name":"L3-DCI",
"xml":"<outcome value='L3-DCI'>\n",
"comments":"",
"outputs":1,
- "x":1872.0155067443848,
- "y":1571.5150356292725,
- "z":"17ff3bf3.2a2c24",
+ "x":1824.0155067443848,
+ "y":1494.9994087219238,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "dc085795.91fbb8"
+ "8f288c1f.2ee81"
]
]
},
{
- "id":"22e73278.5a70de",
+ "id":"bc6148.3fa8ceb8",
"type":"outcomeTrue",
"name":"L2-DCI",
"xml":"<outcome value='L2-DCI'>\n",
"comments":"",
"outputs":1,
- "x":1870.0153274536133,
- "y":1643.5150356292725,
- "z":"17ff3bf3.2a2c24",
+ "x":1822.0153274536133,
+ "y":1566.9994087219238,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "73fa04bd.92094c"
+ "18b936e.7133ac9"
]
]
},
{
- "id":"f8a4213a.dfd9b",
+ "id":"3b9d92a0.561cce",
"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",
+ "x":2544.515842437744,
+ "y":739.9999895095825,
+ "z":"21bf7e0.d63c382",
"wires":[
]
},
{
- "id":"73fa04bd.92094c",
+ "id":"18b936e.7133ac9",
"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",
+ "x":2142.0158729553223,
+ "y":1567.499834060669,
+ "z":"21bf7e0.d63c382",
"wires":[
[
@@ -1094,30 +1094,557 @@
]
},
{
- "id":"e75e638.f112aa",
+ "id":"50452acf.501864",
"type":"outcomeTrue",
"name":"false",
"xml":"<outcome value='false'>\n",
"comments":"",
"outputs":1,
- "x":2424.015800476074,
- "y":940.5156002044678,
- "z":"17ff3bf3.2a2c24",
+ "x":2376.015800476074,
+ "y":863.9999732971191,
+ "z":"21bf7e0.d63c382",
"wires":[
[
- "f56ef97.bc2ee08"
+ "558a5beb.808c64"
]
]
},
{
- "id":"f56ef97.bc2ee08",
+ "id":"558a5beb.808c64",
"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",
+ "x":2557.015869140625,
+ "y":858.9999141693115,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"9da05058.8cf95",
+ "type":"block",
+ "name":"block setEvpnIrts",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":2579.015380859375,
+ "y":472.5155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "f59be47.2245a18",
+ "6fceca00.0b0b48"
+ ]
+ ]
+ },
+ {
+ "id":"f59be47.2245a18",
+ "type":"set",
+ "name":"set evpn_irts",
+ "xml":"<set>\n<parameter name='tmp.dci-connects.evpn_irts.original' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments":"",
+ "x":2825.015380859375,
+ "y":423.5155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"6fceca00.0b0b48",
+ "type":"execute",
+ "name":"split evpn_irts",
+ "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.dci-connects.evpn_irts.original`'/>\n<parameter name=\"regex\" value=',' />\n<parameter name=\"ctx_memory_result_key\" value=\"tmp.dci-connects.evpn_irts\"/>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2854.015380859375,
+ "y":475.5155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "8ac2a412.2bc7d8",
+ "f06f6320.a3ba5"
+ ]
+ ]
+ },
+ {
+ "id":"f06f6320.a3ba5",
+ "type":"failure",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3071.015380859375,
+ "y":401.5155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "a6b39033.8c77c"
+ ]
+ ]
+ },
+ {
+ "id":"8ac2a412.2bc7d8",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3072.015380859375,
+ "y":467.5155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "d4181347.bc95d"
+ ]
+ ]
+ },
+ {
+ "id":"d4181347.bc95d",
+ "type":"returnFailure",
+ "name":"return failure",
+ "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments":"",
+ "x":3253.015380859375,
+ "y":465.5155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"d183f400.b7c7a8",
+ "type":"set",
+ "name":"set evpn_erts",
+ "xml":"<set>\n<parameter name='tmp.dci-connects.evpn_erts.original' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments":"",
+ "x":2821.515380859375,
+ "y":566.015625,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"862ad334.4820a",
+ "type":"execute",
+ "name":"split evpn_erts",
+ "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.dci-connects.evpn_erts.original`'/>\n<parameter name=\"regex\" value=',' />\n<parameter name=\"ctx_memory_result_key\" value=\"tmp.dci-connects.evpn_erts\"/>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2850.515380859375,
+ "y":618.015625,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "c7841794.4a1558",
+ "96021a8.e493ee8"
+ ]
+ ]
+ },
+ {
+ "id":"96021a8.e493ee8",
+ "type":"failure",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3067.515380859375,
+ "y":544.015625,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "767a44c9.83ddec"
+ ]
+ ]
+ },
+ {
+ "id":"c7841794.4a1558",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3068.515380859375,
+ "y":610.015625,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "f4c642e1.daf09"
+ ]
+ ]
+ },
+ {
+ "id":"f4c642e1.daf09",
+ "type":"returnFailure",
+ "name":"return failure",
+ "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments":"",
+ "x":3249.515380859375,
+ "y":608.015625,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"7e027125.8b2a2",
+ "type":"block",
+ "name":"block setEvpnErts",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":2572.5152740478516,
+ "y":528.015682220459,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "d183f400.b7c7a8",
+ "862ad334.4820a"
+ ]
+ ]
+ },
+ {
+ "id":"a6b39033.8c77c",
+ "type":"for",
+ "name":"for each evpn_irts",
+ "xml":"<for index='idx' start='0' end='`$tmp.dci-connects.evpn_irts_length`' >\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":3273.5155448913574,
+ "y":401.01563453674316,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "7a255963.a19a48"
+ ]
+ ]
+ },
+ {
+ "id":"7a255963.a19a48",
+ "type":"set",
+ "name":"set evpn_irt",
+ "xml":"<set>\n<parameter name='prop.dci-connects.evpn_irts[$idx]' value='`$tmp.dci-connects.evpn_irts[$idx]`' />\n",
+ "comments":"",
+ "x":3485.5160369873047,
+ "y":401.0157871246338,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"767a44c9.83ddec",
+ "type":"for",
+ "name":"for each evpn_erts",
+ "xml":"<for index='idx' start='0' end='`$tmp.dci-connects.evpn_erts_length`' >\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":3267.015380859375,
+ "y":540.015625,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "ad045a9b.36e458"
+ ]
+ ]
+ },
+ {
+ "id":"ad045a9b.36e458",
+ "type":"set",
+ "name":"set evpn_ert",
+ "xml":"<set>\n<parameter name='prop.dci-connects.evpn_erts[$idx]' value='`$tmp.dci-connects.evpn_erts[$idx]`' />\n",
+ "comments":"",
+ "x":3479.0158729553223,
+ "y":540.0157775878906,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"e67e9dd7.989e2",
+ "type":"set",
+ "name":"set evpn_irts",
+ "xml":"<set>\n<parameter name='tmp.dci-connects.evpn_irts.original' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments":"",
+ "x":2838.015380859375,
+ "y":1006.5155639648438,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"e44ee888.917218",
+ "type":"execute",
+ "name":"split evpn_irts",
+ "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.dci-connects.evpn_irts.original`'/>\n<parameter name=\"regex\" value=',' />\n<parameter name=\"ctx_memory_result_key\" value=\"tmp.dci-connects.evpn_irts\"/>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2867.015380859375,
+ "y":1058.5155639648438,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "b3fb0522.2e1138",
+ "2f16c983.f313c6"
+ ]
+ ]
+ },
+ {
+ "id":"2f16c983.f313c6",
+ "type":"failure",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3084.015380859375,
+ "y":984.5155639648438,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "79319086.b2f45"
+ ]
+ ]
+ },
+ {
+ "id":"b3fb0522.2e1138",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3085.015380859375,
+ "y":1050.5155639648438,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "3e085d66.84c402"
+ ]
+ ]
+ },
+ {
+ "id":"3e085d66.84c402",
+ "type":"returnFailure",
+ "name":"return failure",
+ "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments":"",
+ "x":3266.015380859375,
+ "y":1048.5155639648438,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"bfc1728b.da05d",
+ "type":"set",
+ "name":"set evpn_erts",
+ "xml":"<set>\n<parameter name='tmp.dci-connects.evpn_erts.original' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments":"",
+ "x":2834.515380859375,
+ "y":1149.0155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"72d8e223.d0b3fc",
+ "type":"execute",
+ "name":"split evpn_erts",
+ "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.dci-connects.evpn_erts.original`'/>\n<parameter name=\"regex\" value=',' />\n<parameter name=\"ctx_memory_result_key\" value=\"tmp.dci-connects.evpn_erts\"/>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2863.515380859375,
+ "y":1201.0155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "3bac7268.6214de",
+ "1921e77b.b9d069"
+ ]
+ ]
+ },
+ {
+ "id":"1921e77b.b9d069",
+ "type":"failure",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3080.515380859375,
+ "y":1127.0155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "596b6eff.51d1d"
+ ]
+ ]
+ },
+ {
+ "id":"3bac7268.6214de",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3081.515380859375,
+ "y":1193.0155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "a3151092.f6bfe"
+ ]
+ ]
+ },
+ {
+ "id":"a3151092.f6bfe",
+ "type":"returnFailure",
+ "name":"return failure",
+ "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments":"",
+ "x":3262.515380859375,
+ "y":1191.0155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"79319086.b2f45",
+ "type":"for",
+ "name":"for each evpn_irts",
+ "xml":"<for index='idx' start='0' end='`$tmp.dci-connects.evpn_irts_length`' >\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":3286.5155448913574,
+ "y":984.015604019165,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "4e2f2b2d.1c3bc4"
+ ]
+ ]
+ },
+ {
+ "id":"4e2f2b2d.1c3bc4",
+ "type":"set",
+ "name":"set evpn_irt",
+ "xml":"<set>\n<parameter name='prop.dci-connects.evpn_irts[$idx]' value='`$tmp.dci-connects.evpn_irts[$idx]`' />\n",
+ "comments":"",
+ "x":3498.5160369873047,
+ "y":984.0157566070557,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"596b6eff.51d1d",
+ "type":"for",
+ "name":"for each evpn_erts",
+ "xml":"<for index='idx' start='0' end='`$tmp.dci-connects.evpn_erts_length`' >\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":3280.015380859375,
+ "y":1123.0155944824219,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "e02fb530.a62c28"
+ ]
+ ]
+ },
+ {
+ "id":"e02fb530.a62c28",
+ "type":"set",
+ "name":"set evpn_ert",
+ "xml":"<set>\n<parameter name='prop.dci-connects.evpn_erts[$idx]' value='`$tmp.dci-connects.evpn_erts[$idx]`' />\n",
+ "comments":"",
+ "x":3492.0158729553223,
+ "y":1123.0157470703125,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"6bd3101.b6ac7f",
+ "type":"block",
+ "name":"block setEvpnIrts",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":2592.015380859375,
+ "y":1055.5155639648438,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "e67e9dd7.989e2",
+ "e44ee888.917218"
+ ]
+ ]
+ },
+ {
+ "id":"353fa61f.c112fa",
+ "type":"block",
+ "name":"block setEvpnErts",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":2585.5152740478516,
+ "y":1111.0156517028809,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+ [
+ "bfc1728b.da05d",
+ "72d8e223.d0b3fc"
+ ]
+ ]
+ },
+ {
+ "id":"f8d5754b.bd5668",
+ "type":"comment",
+ "name":"TODO",
+ "info":"Get information from VFC team about the A&AI location where name to network mapping will be available.",
+ "comments":"",
+ "x":2567.0156326293945,
+ "y":340.51564025878906,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"6f5c1ca1.701f84",
+ "type":"comment",
+ "name":"TODO",
+ "info":"Store activated network information in A&AI",
+ "comments":"",
+ "x":723.515625,
+ "y":980.0155639648438,
+ "z":"21bf7e0.d63c382",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"30786a9a.007f16",
+ "type":"comment",
+ "name":"TODO",
+ "info":"Get information from VFC team about teh A&AI location where name to network mapping will be available.",
+ "comments":"",
+ "x":2553.515380859375,
+ "y":933.5155639648438,
+ "z":"21bf7e0.d63c382",
"wires":[
]
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-create.json
index 15d44cea..15b1db0d 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-create.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-create.json
@@ -1 +1,1863 @@
-[{"id":"cb36df78.f09e28","type":"dgstart","name":"DGSTART","outputs":1,"x":106.5,"y":39,"z":"d42722f8.3eccb8","wires":[["6b493f20.dd05b8"]]},{"id":"6b493f20.dd05b8","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":318.50000381469727,"y":111.0000171661377,"z":"d42722f8.3eccb8","wires":[["d4f64c43.9c54f8"]]},{"id":"d4f64c43.9c54f8","type":"method","name":"method network-topology-operation-create","xml":"<method rpc='network-topology-operation-create' mode='sync'>\n","comments":"","outputs":1,"x":306.5001220703125,"y":199,"z":"d42722f8.3eccb8","wires":[["99d71b60.bc486"]]},{"id":"99d71b60.bc486","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":582.5000305175781,"y":207.00001335144043,"z":"d42722f8.3eccb8","wires":[["5ed245d4.4281d4","e7933c58.1edee","975efc4b.99298","8ceec6eb.76071","31aa6d85.42f682","afab8693.c68c8","2004d097.f3cbc"]]},{"id":"e7933c58.1edee","type":"execute","name":"execute REST NETCONF MOUNT CREATE VPN","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services'\"/>\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\"/>","comments":"","outputs":1,"x":898.5001831054688,"y":552,"z":"d42722f8.3eccb8","wires":[[]]},{"id":"5ed245d4.4281d4","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","comments":"","x":810.5000610351562,"y":279,"z":"d42722f8.3eccb8","wires":[]},{"id":"2004d097.f3cbc","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":868.1666259765625,"y":375.6666564941406,"z":"d42722f8.3eccb8","wires":[["3cc59ee4.5e9a4a"]]},{"id":"975efc4b.99298","type":"execute","name":"execute REST NETCONF MOUNT CREATE SITE","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l3smsitetemplate.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/sites'\"/>\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\"/>","comments":"","outputs":1,"x":902.1668510437012,"y":606.6666851043701,"z":"d42722f8.3eccb8","wires":[[]]},{"id":"afab8693.c68c8","type":"execute","name":"execute vpn-policy-id","xml":"<execute plugin='com.att.sdnctl.sli.SliPluginUtils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.l3vpn.vpn-policy-id\"/>\n","comments":"","outputs":1,"x":834.1666259765625,"y":470.66668701171875,"z":"d42722f8.3eccb8","wires":[["6d3b3d21.9f9b94"]]},{"id":"6d3b3d21.9f9b94","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1053.1666316986084,"y":469.6666669845581,"z":"d42722f8.3eccb8","wires":[["77780ce8.b6a42c"]]},{"id":"77780ce8.b6a42c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation vpn policy ID\" />\n","comments":"","x":1238.1666412353516,"y":469.66667079925537,"z":"d42722f8.3eccb8","wires":[]},{"id":"8ceec6eb.76071","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":880,"y":76,"z":"d42722f8.3eccb8","wires":[[]]},{"id":"31aa6d85.42f682","type":"get-resource","name":"get-resource esr-thirdparty-sdnc","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 = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n","comments":"","outputs":1,"x":850,"y":193,"z":"d42722f8.3eccb8","wires":[["2c613739.98afa8","1da11a52.1c786e","969f047a.9bdca"]]},{"id":"2c613739.98afa8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1175,"y":124,"z":"d42722f8.3eccb8","wires":[["a9af7dde.3eae3"]]},{"id":"1da11a52.1c786e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1178.490966796875,"y":171.57403564453125,"z":"d42722f8.3eccb8","wires":[["9fcc2997.c4db48"]]},{"id":"969f047a.9bdca","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1173.823974609375,"y":212.9073486328125,"z":"d42722f8.3eccb8","wires":[["b55105c.cece0f8"]]},{"id":"9fcc2997.c4db48","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 model is_bound_to_vpn=true but no vpn_binding is present\" />\n\n","comments":"","x":1355.0623779296875,"y":159.85977172851562,"z":"d42722f8.3eccb8","wires":[]},{"id":"b55105c.cece0f8","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=\"Unexpected error retrieving vpn binding\" />\n\n","comments":"","x":1361.5965309143066,"y":208.34654140472412,"z":"d42722f8.3eccb8","wires":[]},{"id":"a9af7dde.3eae3","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1353.205322265625,"y":116.57403564453125,"z":"d42722f8.3eccb8","wires":[[]]},{"id":"3cc59ee4.5e9a4a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1354,"y":340,"z":"d42722f8.3eccb8","wires":[["88aa924c.540ec8","bb5cb51b.59506","2544c74d.97ee18","b7871d3d.25fad8","fe408f02.5f753","a83a85a7.171548","24a49d0f.d882f2","6e6d25b6.396474","631fc211.5012a4","6118a340.6202bc","36b08791.59ad9","34e1c7d4.0648","b6ef6a39.4f99a","57ff81fd.d7eb5","45e9f15b.b00ef","f194b0b0.06c4a","db1b22e2.44ac28","40dbf064.599ad8","f83e78ff.bcb19","953ea88f.9f4a18","1b0d7ad2.7c73cd","503fb0c2.118f08","abda3944.6cc14"]]},{"id":"88aa924c.540ec8","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":1600,"y":150.00003051757812,"z":"d42722f8.3eccb8","wires":[["f6a31b1b.e5d5"]]},{"id":"bb5cb51b.59506","type":"switchNode","name":"switch service-type","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`\">\n","comments":"","outputs":1,"x":1603.9999389648438,"y":211.60000610351562,"z":"d42722f8.3eccb8","wires":[["b138ae61.44dfc"]]},{"id":"f6a31b1b.e5d5","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1787,"y":150.00003051757812,"z":"d42722f8.3eccb8","wires":[["4d5c9007.14735"]]},{"id":"b138ae61.44dfc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1788.9999389648438,"y":209.60000610351562,"z":"d42722f8.3eccb8","wires":[["6c1d6803.8f8aa8"]]},{"id":"4d5c9007.14735","type":"set","name":"set name","xml":"<set>\n<parameter name='prop.l3vpn.name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1955,"y":150.60003662109375,"z":"d42722f8.3eccb8","wires":[]},{"id":"6c1d6803.8f8aa8","type":"set","name":"set service-type","xml":"<set>\n<parameter name='prop.l3vpn.service-type' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1957.9999389648438,"y":207.60000610351562,"z":"d42722f8.3eccb8","wires":[]},{"id":"2544c74d.97ee18","type":"switchNode","name":"switch topology","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n","comments":"","outputs":1,"x":1603,"y":273,"z":"d42722f8.3eccb8","wires":[["67a5441.72b6abc"]]},{"id":"b7871d3d.25fad8","type":"switchNode","name":"switch technology","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'technology'`\">\n","comments":"","outputs":1,"x":1606,"y":326,"z":"d42722f8.3eccb8","wires":[["b0d9aff3.b00fa8"]]},{"id":"fe408f02.5f753","type":"switchNode","name":"switch site1_name","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_name'`\">\n","comments":"","outputs":1,"x":1611,"y":388,"z":"d42722f8.3eccb8","wires":[["4d154733.c71d7"]]},{"id":"a83a85a7.171548","type":"switchNode","name":"switch site2_name","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_name'`\">\n","comments":"","outputs":1,"x":1606,"y":451,"z":"d42722f8.3eccb8","wires":[["a3d4aaaa.5e75f8"]]},{"id":"24a49d0f.d882f2","type":"switchNode","name":"switch sna1_name","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'sna1_name'`\">\n","comments":"","outputs":1,"x":1611,"y":511,"z":"d42722f8.3eccb8","wires":[["ee77e877.444dc"]]},{"id":"6e6d25b6.396474","type":"switchNode","name":"switch sna2_name","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'sna2_name'`\">\n","comments":"","outputs":1,"x":1606,"y":575,"z":"d42722f8.3eccb8","wires":[["177ebd38.639203"]]},{"id":"631fc211.5012a4","type":"switchNode","name":"switch pe1_id","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'pe1_id'`\">\n","comments":"","outputs":1,"x":1611,"y":637,"z":"d42722f8.3eccb8","wires":[["bc4514aa.bff8b"]]},{"id":"6118a340.6202bc","type":"switchNode","name":"switch pe2_id","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'pe2_id'`\">\n","comments":"","outputs":1,"x":1626,"y":697,"z":"d42722f8.3eccb8","wires":[["1007421c.7d0e8e"]]},{"id":"36b08791.59ad9","type":"switchNode","name":"switch ac1_id","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_id'`\">\n","comments":"","outputs":1,"x":1621,"y":769,"z":"d42722f8.3eccb8","wires":[["a19c0d54.dae6"]]},{"id":"34e1c7d4.0648","type":"switchNode","name":"switch ac2_id","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_id'`\">\n","comments":"","outputs":1,"x":1620,"y":828,"z":"d42722f8.3eccb8","wires":[["84e52060.75ef7"]]},{"id":"b6ef6a39.4f99a","type":"switchNode","name":"switch ac1_ip","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_ip'`\">\n","comments":"","outputs":1,"x":1621,"y":879,"z":"d42722f8.3eccb8","wires":[["2bc62aa7.ef22ee"]]},{"id":"57ff81fd.d7eb5","type":"switchNode","name":"switch ac2_ip","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_ip'`\">\n","comments":"","outputs":1,"x":1624,"y":936,"z":"d42722f8.3eccb8","wires":[["99127b02.b296b8"]]},{"id":"45e9f15b.b00ef","type":"switchNode","name":"switch ac1_peer_ip","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_peer_ip'`\">\n","comments":"","outputs":1,"x":1630,"y":988,"z":"d42722f8.3eccb8","wires":[["99742acf.29058"]]},{"id":"f194b0b0.06c4a","type":"switchNode","name":"switch ac2_peer_ip","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_peer_ip'`\">\n","comments":"","outputs":1,"x":1631,"y":1043,"z":"d42722f8.3eccb8","wires":[["80ed9287.14c0b"]]},{"id":"db1b22e2.44ac28","type":"switchNode","name":"switch ac1_svlan","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_svlan'`\">\n","comments":"","outputs":1,"x":1643,"y":1092,"z":"d42722f8.3eccb8","wires":[["7e8264fe.9a4184"]]},{"id":"40dbf064.599ad8","type":"switchNode","name":"switch ac2_svlan","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_svlan'`\">\n","comments":"","outputs":1,"x":1636,"y":1143,"z":"d42722f8.3eccb8","wires":[["b90636ea.ed4c38"]]},{"id":"f83e78ff.bcb19","type":"switchNode","name":"switch ac1_protocol","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_protocol'`\">\n","comments":"","outputs":1,"x":1629,"y":1201,"z":"d42722f8.3eccb8","wires":[["bacf2339.37a91"]]},{"id":"953ea88f.9f4a18","type":"switchNode","name":"switch ac2_protocol","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_protocol'`\">\n","comments":"","outputs":1,"x":1630,"y":1261,"z":"d42722f8.3eccb8","wires":[["97f3e1d.1c8072"]]},{"id":"1b0d7ad2.7c73cd","type":"switchNode","name":"switch ac1_protocol_bgp_as","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_protocol_bgp_as'`\">\n","comments":"","outputs":1,"x":1631,"y":1307,"z":"d42722f8.3eccb8","wires":[["e29f2e84.29cc98"]]},{"id":"503fb0c2.118f08","type":"switchNode","name":"switch ac2_protocol_bgp_as","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_protocol_bgp_as'`\">\n","comments":"","outputs":1,"x":1637,"y":1358,"z":"d42722f8.3eccb8","wires":[["cba6eaf7.a3e0f"]]},{"id":"abda3944.6cc14","type":"switchNode","name":"switch af_type","xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'af_type'`\">\n","comments":"","outputs":1,"x":1628,"y":1412,"z":"d42722f8.3eccb8","wires":[["285638b5.acb86"]]},{"id":"67a5441.72b6abc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1778,"y":269,"z":"d42722f8.3eccb8","wires":[["db3c5d8c.944588"]]},{"id":"b0d9aff3.b00fa8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1784,"y":322,"z":"d42722f8.3eccb8","wires":[["e1dcf81.cf81f08"]]},{"id":"4d154733.c71d7","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1793,"y":384,"z":"d42722f8.3eccb8","wires":[["88926751.4fb388"]]},{"id":"a3d4aaaa.5e75f8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1791,"y":447,"z":"d42722f8.3eccb8","wires":[["b6c53efa.cf8ae"]]},{"id":"ee77e877.444dc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1796,"y":509,"z":"d42722f8.3eccb8","wires":[["d30f9440.cd7a9"]]},{"id":"177ebd38.639203","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1788,"y":567,"z":"d42722f8.3eccb8","wires":[["9cf0b05d.8daa98"]]},{"id":"bc4514aa.bff8b","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1789,"y":630,"z":"d42722f8.3eccb8","wires":[["68b22e8f.d45fc"]]},{"id":"1007421c.7d0e8e","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1788,"y":699,"z":"d42722f8.3eccb8","wires":[["ae6ba13f.09e0d"]]},{"id":"a19c0d54.dae6","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1785,"y":767,"z":"d42722f8.3eccb8","wires":[["8027371b.40f6c8"]]},{"id":"84e52060.75ef7","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1784,"y":831,"z":"d42722f8.3eccb8","wires":[["327b55cc.8c9f6a"]]},{"id":"2bc62aa7.ef22ee","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1781,"y":877,"z":"d42722f8.3eccb8","wires":[["456d6e39.b277b"]]},{"id":"99127b02.b296b8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1783,"y":934,"z":"d42722f8.3eccb8","wires":[["ba2a56e4.37da1"]]},{"id":"99742acf.29058","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1819,"y":985,"z":"d42722f8.3eccb8","wires":[["8b3ca584.be477"]]},{"id":"80ed9287.14c0b","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1824,"y":1048,"z":"d42722f8.3eccb8","wires":[["5e28eb3d.fcfbfc"]]},{"id":"7e8264fe.9a4184","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1820,"y":1097,"z":"d42722f8.3eccb8","wires":[["9799c154.0a7f08"]]},{"id":"b90636ea.ed4c38","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1804,"y":1146,"z":"d42722f8.3eccb8","wires":[["d9366dce.978858"]]},{"id":"bacf2339.37a91","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1801,"y":1199,"z":"d42722f8.3eccb8","wires":[["d0174fbe.4dfc9"]]},{"id":"97f3e1d.1c8072","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1814,"y":1258,"z":"d42722f8.3eccb8","wires":[["cdf18661.8284a"]]},{"id":"e29f2e84.29cc98","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1839,"y":1304,"z":"d42722f8.3eccb8","wires":[["c85e7fd9.cd69c"]]},{"id":"cba6eaf7.a3e0f","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1846,"y":1354,"z":"d42722f8.3eccb8","wires":[["2c7d8d12.1b8f3a"]]},{"id":"285638b5.acb86","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1814,"y":1413,"z":"d42722f8.3eccb8","wires":[["541bf067.78e77"]]},{"id":"db3c5d8c.944588","type":"set","name":"set topology","xml":"<set>\n<parameter name='prop.l3vpn.topology' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1973,"y":270,"z":"d42722f8.3eccb8","wires":[]},{"id":"e1dcf81.cf81f08","type":"set","name":"set technology","xml":"<set>\n<parameter name='prop.l3vpn.technology' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1963,"y":324,"z":"d42722f8.3eccb8","wires":[]},{"id":"88926751.4fb388","type":"set","name":"set site1_name","xml":"<set>\n<parameter name='prop.l3vpn.site1_name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1967,"y":381,"z":"d42722f8.3eccb8","wires":[]},{"id":"b6c53efa.cf8ae","type":"set","name":"set site2_name","xml":"<set>\n<parameter name='prop.l3vpn.site2_name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1970,"y":440,"z":"d42722f8.3eccb8","wires":[]},{"id":"d30f9440.cd7a9","type":"set","name":"set sna1_name","xml":"<set>\n<parameter name='prop.l3vpn.sna1_name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1978,"y":502,"z":"d42722f8.3eccb8","wires":[]},{"id":"9cf0b05d.8daa98","type":"set","name":"set sna2_name","xml":"<set>\n<parameter name='prop.l3vpn.sna2_name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1970,"y":562,"z":"d42722f8.3eccb8","wires":[]},{"id":"68b22e8f.d45fc","type":"set","name":"set pe1_id","xml":"<set>\n<parameter name='prop.l3vpn.pe1_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1967,"y":622,"z":"d42722f8.3eccb8","wires":[]},{"id":"ae6ba13f.09e0d","type":"set","name":"set pe2_id","xml":"<set>\n<parameter name='prop.l3vpn.pe2_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1963,"y":693,"z":"d42722f8.3eccb8","wires":[]},{"id":"8027371b.40f6c8","type":"set","name":"set ac1_id","xml":"<set>\n<parameter name='prop.l3vpn.ac1_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1956,"y":759,"z":"d42722f8.3eccb8","wires":[]},{"id":"327b55cc.8c9f6a","type":"set","name":"set ac2_id","xml":"<set>\n<parameter name='prop.l3vpn.ac2_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1959,"y":826,"z":"d42722f8.3eccb8","wires":[]},{"id":"456d6e39.b277b","type":"set","name":"set ac1_ip","xml":"<set>\n<parameter name='prop.l3vpn.ac1_ip' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1959,"y":880,"z":"d42722f8.3eccb8","wires":[]},{"id":"ba2a56e4.37da1","type":"set","name":"set ac2_ip","xml":"<set>\n<parameter name='prop.l3vpn.ac2_ip' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1963,"y":934,"z":"d42722f8.3eccb8","wires":[]},{"id":"8b3ca584.be477","type":"set","name":"set ac1_peer_ip","xml":"<set>\n<parameter name='prop.l3vpn.ac1_peer_ip' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":2011,"y":989,"z":"d42722f8.3eccb8","wires":[]},{"id":"5e28eb3d.fcfbfc","type":"set","name":"set ac2_peer_ip","xml":"<set>\n<parameter name='prop.l3vpn.ac2_peer_ip' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":2007,"y":1044,"z":"d42722f8.3eccb8","wires":[]},{"id":"9799c154.0a7f08","type":"set","name":"set ac1_svlan","xml":"<set>\n<parameter name='prop.l3vpn.ac1_svlan' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":2001,"y":1099,"z":"d42722f8.3eccb8","wires":[]},{"id":"d9366dce.978858","type":"set","name":"set ac2_svlan","xml":"<set>\n<parameter name='prop.l3vpn.ac2_svlan' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1998,"y":1152,"z":"d42722f8.3eccb8","wires":[]},{"id":"d0174fbe.4dfc9","type":"set","name":"set ac1_protocol","xml":"<set>\n<parameter name='prop.l3vpn.ac1_protocol' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":1996,"y":1209,"z":"d42722f8.3eccb8","wires":[]},{"id":"cdf18661.8284a","type":"set","name":"set ac2_protocol","xml":"<set>\n<parameter name='prop.l3vpn.name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":2005,"y":1261,"z":"d42722f8.3eccb8","wires":[]},{"id":"c85e7fd9.cd69c","type":"set","name":"set ac1_protocol_bgp_as","xml":"<set>\n<parameter name='prop.l3vpn.ac1_protocol_bgp_as' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":2016,"y":1312,"z":"d42722f8.3eccb8","wires":[]},{"id":"2c7d8d12.1b8f3a","type":"set","name":"set ac1_protocol_bgp_as","xml":"<set>\n<parameter name='prop.l3vpn.ac1_protocol_bgp_as' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":2021,"y":1367,"z":"d42722f8.3eccb8","wires":[]},{"id":"541bf067.78e77","type":"set","name":"set af_type","xml":"<set>\n<parameter name='prop.l3vpn.af_type' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n","comments":"","x":2019,"y":1425,"z":"d42722f8.3eccb8","wires":[]}] \ No newline at end of file
+[
+ {
+ "id": "6c6bc16c.ca3e3",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 77,
+ "y": 53,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "537702a4.cc8034"
+ ]
+ ]
+ },
+ {
+ "id": "537702a4.cc8034",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 289.00000381469727,
+ "y": 125.0000171661377,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "be1e8309.4bc4c8"
+ ]
+ ]
+ },
+ {
+ "id": "be1e8309.4bc4c8",
+ "type": "method",
+ "name": "method network-topology-operation-create",
+ "xml": "<method rpc='network-topology-operation-create' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 277.0001220703125,
+ "y": 213,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "15842b75.da07e5"
+ ]
+ ]
+ },
+ {
+ "id": "15842b75.da07e5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 553.0000305175781,
+ "y": 221.00001335144043,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "35d46a8d.e7edce",
+ "861f67a.7920b18",
+ "38a3e2ad.559ce6",
+ "39c4a2ad.6290be",
+ "56d07259.1d8cbc",
+ "5c9ca6e0.e239a",
+ "e21a9c92.1f2a28",
+ "151a4cba.fa33e3",
+ "be047f99.592428",
+ "1460f5c7.7bf212",
+ "e2d35c41.dd6f5"
+ ]
+ ]
+ },
+ {
+ "id": "d2fcc9e7.aec75",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create IPWAN L3VPN",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services'\"/>\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\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1149.0001831054688,
+ "y": 737,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "35d46a8d.e7edce",
+ "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",
+ "comments": "",
+ "x": 781.0000610351562,
+ "y": 293,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "56d07259.1d8cbc",
+ "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": 838.6666259765625,
+ "y": 389.6666564941406,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "b2478f4e.7cd8b"
+ ]
+ ]
+ },
+ {
+ "id": "6b6b65e4.027114",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create SPTN L3VPN",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l3smsitetemplate.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url\"/>\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\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1120.6668701171875,
+ "y": 939.6666870117188,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "39c4a2ad.6290be",
+ "type": "execute",
+ "name": "execute vpn-policy1-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.l3vpn.vpn-policy1-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 798.6666259765625,
+ "y": 446.66668701171875,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "96af0d.cf3c10f"
+ ]
+ ]
+ },
+ {
+ "id": "96af0d.cf3c10f",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1023.6666259765625,
+ "y": 449.6666564941406,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "7438ecb9.4567f4"
+ ]
+ ]
+ },
+ {
+ "id": "7438ecb9.4567f4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation vpn policy ID\" />\n",
+ "comments": "",
+ "x": 1204.6666259765625,
+ "y": 447.6666564941406,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "861f67a.7920b18",
+ "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": 850.5,
+ "y": 90,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "38a3e2ad.559ce6",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "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 = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 820.5,
+ "y": 207,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "747be621.ebaa68",
+ "e28c7994.72931",
+ "5f530a05.e03c5c"
+ ]
+ ]
+ },
+ {
+ "id": "747be621.ebaa68",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1145.5,
+ "y": 138,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "270f57b4.7e9228"
+ ]
+ ]
+ },
+ {
+ "id": "e28c7994.72931",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1148.990966796875,
+ "y": 185.57403564453125,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "b482495d.0483a"
+ ]
+ ]
+ },
+ {
+ "id": "5f530a05.e03c5c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1144.323974609375,
+ "y": 226.9073486328125,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "552e5145.a20188"
+ ]
+ ]
+ },
+ {
+ "id": "b482495d.0483a",
+ "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 model is_bound_to_vpn=true but no vpn_binding is present\" />\n\n",
+ "comments": "",
+ "x": 1325.5623779296875,
+ "y": 173.85977172851562,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "552e5145.a20188",
+ "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=\"Unexpected error retrieving vpn binding\" />\n\n",
+ "comments": "",
+ "x": 1332.0965309143066,
+ "y": 222.34654140472412,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "270f57b4.7e9228",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1323.705322265625,
+ "y": 130.57403564453125,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b2478f4e.7cd8b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1237.5,
+ "y": 396,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "92f693f1.fbeac8",
+ "fa654c60.33fc7",
+ "3c75f999.d8df1e",
+ "399d4af.75d7f36",
+ "f1384917.ec5db8",
+ "b487b0d3.26ff08",
+ "507ab3c0.3b67f4",
+ "b36084e3.ed78c",
+ "43267259.9b3cb4",
+ "2536a52a.61b14a",
+ "7ec07647.4a18e8",
+ "cc9729b3.35c9a8",
+ "72f85ed8.f54e68",
+ "b028194c.b3b988",
+ "b0ea6a25.f32ed",
+ "b7bb055e.312e1",
+ "d25d1bce.304f78",
+ "49087f87.ab7e78",
+ "6e2762a6.8272c4",
+ "5f3b0791.9b6e88",
+ "1aacfbe9.a7c6bc",
+ "f2101f18.ae2b68",
+ "ca43c6ae.b67f4",
+ "5a7334fb.eef58c",
+ "bf6d8b73.1d1d2"
+ ]
+ ]
+ },
+ {
+ "id": "92f693f1.fbeac8",
+ "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": 1588.5,
+ "y": 20.000030517578125,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "6d73e8b1.07061"
+ ]
+ ]
+ },
+ {
+ "id": "fa654c60.33fc7",
+ "type": "switchNode",
+ "name": "switch service-type",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1592.4999389648438,
+ "y": 81.60000610351562,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "2301d600.a73462"
+ ]
+ ]
+ },
+ {
+ "id": "6d73e8b1.07061",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1775.5,
+ "y": 20.000030517578125,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "1d383b47.d3c90d"
+ ]
+ ]
+ },
+ {
+ "id": "2301d600.a73462",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1777.4999389648438,
+ "y": 79.60000610351562,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "f95d177d.930be"
+ ]
+ ]
+ },
+ {
+ "id": "1d383b47.d3c90d",
+ "type": "set",
+ "name": "set name",
+ "xml": "<set>\n<parameter name='prop.l3vpn.name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1943.5,
+ "y": 20.60003662109375,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "f95d177d.930be",
+ "type": "set",
+ "name": "set service-type",
+ "xml": "<set>\n<parameter name='prop.l3vpn.service-type' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1946.4999389648438,
+ "y": 77.60000610351562,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "3c75f999.d8df1e",
+ "type": "switchNode",
+ "name": "switch topology",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1591.5,
+ "y": 143,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "64ec1f5c.cd7588"
+ ]
+ ]
+ },
+ {
+ "id": "399d4af.75d7f36",
+ "type": "switchNode",
+ "name": "switch technology",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'technology'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1594.5,
+ "y": 196,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "30608684.1fa91a"
+ ]
+ ]
+ },
+ {
+ "id": "f1384917.ec5db8",
+ "type": "switchNode",
+ "name": "switch site1_name",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1599.5,
+ "y": 258,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "7b6affba.2f1ea8"
+ ]
+ ]
+ },
+ {
+ "id": "b487b0d3.26ff08",
+ "type": "switchNode",
+ "name": "switch site2_name",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1594.5,
+ "y": 321,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "e7d8abc.3397ed8"
+ ]
+ ]
+ },
+ {
+ "id": "507ab3c0.3b67f4",
+ "type": "switchNode",
+ "name": "switch sna1_name",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'sna1_name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1599.5,
+ "y": 381,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "ccbb4e0a.e4624"
+ ]
+ ]
+ },
+ {
+ "id": "b36084e3.ed78c",
+ "type": "switchNode",
+ "name": "switch sna2_name",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'sna2_name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1594.5,
+ "y": 445,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "5e7b746e.c31ebc"
+ ]
+ ]
+ },
+ {
+ "id": "43267259.9b3cb4",
+ "type": "switchNode",
+ "name": "switch pe1_id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'pe1_id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1599.5,
+ "y": 507,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "cd97fc49.ef9428"
+ ]
+ ]
+ },
+ {
+ "id": "2536a52a.61b14a",
+ "type": "switchNode",
+ "name": "switch pe2_id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'pe2_id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1614.5,
+ "y": 567,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "b43f1ee2.b85a2"
+ ]
+ ]
+ },
+ {
+ "id": "7ec07647.4a18e8",
+ "type": "switchNode",
+ "name": "switch ac1_id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1609.5,
+ "y": 639,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "b4d9a4d.005d958"
+ ]
+ ]
+ },
+ {
+ "id": "cc9729b3.35c9a8",
+ "type": "switchNode",
+ "name": "switch ac2_id",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1608.5,
+ "y": 698,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "7dfb851.0b49cfc"
+ ]
+ ]
+ },
+ {
+ "id": "72f85ed8.f54e68",
+ "type": "switchNode",
+ "name": "switch ac1_ip",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_ip'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1585.5,
+ "y": 761,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "d713e906.7f455"
+ ]
+ ]
+ },
+ {
+ "id": "b028194c.b3b988",
+ "type": "switchNode",
+ "name": "switch ac2_ip",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_ip'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1588.5,
+ "y": 818,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "973837ca.190aa8"
+ ]
+ ]
+ },
+ {
+ "id": "b0ea6a25.f32ed",
+ "type": "switchNode",
+ "name": "switch ac1_peer_ip",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_peer_ip'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1594.5,
+ "y": 870,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "6ccb4ca1.2cd06c"
+ ]
+ ]
+ },
+ {
+ "id": "b7bb055e.312e1",
+ "type": "switchNode",
+ "name": "switch ac2_peer_ip",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_peer_ip'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1595.5,
+ "y": 925,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "b9aa2fd2.814f48"
+ ]
+ ]
+ },
+ {
+ "id": "d25d1bce.304f78",
+ "type": "switchNode",
+ "name": "switch ac1_svlan",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_svlan'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1607.5,
+ "y": 974,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "7df19f10.00d63"
+ ]
+ ]
+ },
+ {
+ "id": "49087f87.ab7e78",
+ "type": "switchNode",
+ "name": "switch ac2_svlan",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_svlan'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1600.5,
+ "y": 1025,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "deb16fb4.873d88"
+ ]
+ ]
+ },
+ {
+ "id": "6e2762a6.8272c4",
+ "type": "switchNode",
+ "name": "switch ac1_protocol",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_protocol'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1593.5,
+ "y": 1083,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "d9a405e5.0fbd78"
+ ]
+ ]
+ },
+ {
+ "id": "5f3b0791.9b6e88",
+ "type": "switchNode",
+ "name": "switch ac2_protocol",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_protocol'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1594.5,
+ "y": 1143,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "f17cdf9a.1f70e"
+ ]
+ ]
+ },
+ {
+ "id": "1aacfbe9.a7c6bc",
+ "type": "switchNode",
+ "name": "switch ac1_protocol_bgp_as",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_protocol_bgp_as'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1588.5,
+ "y": 1329,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "3676d16.bff3dae"
+ ]
+ ]
+ },
+ {
+ "id": "f2101f18.ae2b68",
+ "type": "switchNode",
+ "name": "switch ac2_protocol_bgp_as",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_protocol_bgp_as'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1594.5,
+ "y": 1380,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "43e3c11a.4b0498"
+ ]
+ ]
+ },
+ {
+ "id": "ca43c6ae.b67f4",
+ "type": "switchNode",
+ "name": "switch af_type",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'af_type'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1561.5,
+ "y": 1471,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "ab13048a.b0a2"
+ ]
+ ]
+ },
+ {
+ "id": "64ec1f5c.cd7588",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1766.5,
+ "y": 139,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "f1c21eed.4c6488"
+ ]
+ ]
+ },
+ {
+ "id": "30608684.1fa91a",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1772.5,
+ "y": 192,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "db52bb2.d3cc7c8"
+ ]
+ ]
+ },
+ {
+ "id": "7b6affba.2f1ea8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1781.5,
+ "y": 254,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "7c0e170d.30b1d"
+ ]
+ ]
+ },
+ {
+ "id": "e7d8abc.3397ed8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1779.5,
+ "y": 317,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "947c8730.9c4b48"
+ ]
+ ]
+ },
+ {
+ "id": "ccbb4e0a.e4624",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1784.5,
+ "y": 379,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "a06ad2cd.275448"
+ ]
+ ]
+ },
+ {
+ "id": "5e7b746e.c31ebc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1776.5,
+ "y": 437,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "b2aa581c.5af32"
+ ]
+ ]
+ },
+ {
+ "id": "cd97fc49.ef9428",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1777.5,
+ "y": 500,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "72cbbe8e.f6925"
+ ]
+ ]
+ },
+ {
+ "id": "b43f1ee2.b85a2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1776.5,
+ "y": 569,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "d9091182.9c0dc8"
+ ]
+ ]
+ },
+ {
+ "id": "b4d9a4d.005d958",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1773.5,
+ "y": 637,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "ae505877.71061"
+ ]
+ ]
+ },
+ {
+ "id": "7dfb851.0b49cfc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1772.5,
+ "y": 701,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "2f24e7f6.a11b28"
+ ]
+ ]
+ },
+ {
+ "id": "d713e906.7f455",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1745.5,
+ "y": 759,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "42443b38.340f8c"
+ ]
+ ]
+ },
+ {
+ "id": "973837ca.190aa8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1747.5,
+ "y": 816,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "e3ce9d5.2cdf36"
+ ]
+ ]
+ },
+ {
+ "id": "6ccb4ca1.2cd06c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1783.5,
+ "y": 867,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "7054b5f4.206a54"
+ ]
+ ]
+ },
+ {
+ "id": "b9aa2fd2.814f48",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1788.5,
+ "y": 930,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "784b972f.0e3428"
+ ]
+ ]
+ },
+ {
+ "id": "7df19f10.00d63",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1784.5,
+ "y": 979,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "206c366c.675522"
+ ]
+ ]
+ },
+ {
+ "id": "deb16fb4.873d88",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1768.5,
+ "y": 1028,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "10227f41.369851"
+ ]
+ ]
+ },
+ {
+ "id": "d9a405e5.0fbd78",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1765.5,
+ "y": 1081,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "1799ee09.bb8ffa"
+ ]
+ ]
+ },
+ {
+ "id": "f17cdf9a.1f70e",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1778.5,
+ "y": 1140,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "a6d260a1.f58c48"
+ ]
+ ]
+ },
+ {
+ "id": "3676d16.bff3dae",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1796.5,
+ "y": 1326,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "8bd5be57.1da07"
+ ]
+ ]
+ },
+ {
+ "id": "43e3c11a.4b0498",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1803.5,
+ "y": 1376,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "b62f8a75.a94a88"
+ ]
+ ]
+ },
+ {
+ "id": "ab13048a.b0a2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1765.5,
+ "y": 1480,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "d6461dbb.9360e8"
+ ]
+ ]
+ },
+ {
+ "id": "f1c21eed.4c6488",
+ "type": "set",
+ "name": "set topology",
+ "xml": "<set>\n<parameter name='prop.l3vpn.topology' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1961.5,
+ "y": 140,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "db52bb2.d3cc7c8",
+ "type": "set",
+ "name": "set technology",
+ "xml": "<set>\n<parameter name='prop.l3vpn.technology' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1951.5,
+ "y": 194,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "7c0e170d.30b1d",
+ "type": "set",
+ "name": "set site1_name",
+ "xml": "<set>\n<parameter name='prop.l3vpn.site1_name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1955.5,
+ "y": 251,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "947c8730.9c4b48",
+ "type": "set",
+ "name": "set site2_name",
+ "xml": "<set>\n<parameter name='prop.l3vpn.site2_name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1958.5,
+ "y": 310,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "a06ad2cd.275448",
+ "type": "set",
+ "name": "set sna1_name",
+ "xml": "<set>\n<parameter name='prop.l3vpn.sna1_name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1966.5,
+ "y": 372,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "b2aa581c.5af32",
+ "type": "set",
+ "name": "set sna2_name",
+ "xml": "<set>\n<parameter name='prop.l3vpn.sna2_name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1958.5,
+ "y": 432,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "72cbbe8e.f6925",
+ "type": "set",
+ "name": "set pe1_id",
+ "xml": "<set>\n<parameter name='prop.l3vpn.pe1_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1955.5,
+ "y": 492,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "d9091182.9c0dc8",
+ "type": "set",
+ "name": "set pe2_id",
+ "xml": "<set>\n<parameter name='prop.l3vpn.pe2_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1951.5,
+ "y": 563,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "ae505877.71061",
+ "type": "set",
+ "name": "set ac1_id",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac1_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1944.5,
+ "y": 629,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "2f24e7f6.a11b28",
+ "type": "set",
+ "name": "set ac2_id",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac2_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1947.5,
+ "y": 696,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "42443b38.340f8c",
+ "type": "set",
+ "name": "set ac1_ip",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac1_ip' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1923.5,
+ "y": 762,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "e3ce9d5.2cdf36",
+ "type": "set",
+ "name": "set ac2_ip",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac2_ip' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1927.5,
+ "y": 816,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "7054b5f4.206a54",
+ "type": "set",
+ "name": "set ac1_peer_ip",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac1_peer_ip' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1975.5,
+ "y": 871,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "784b972f.0e3428",
+ "type": "set",
+ "name": "set ac2_peer_ip",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac2_peer_ip' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1971.5,
+ "y": 926,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "206c366c.675522",
+ "type": "set",
+ "name": "set ac1_svlan",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac1_svlan' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1965.5,
+ "y": 981,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "10227f41.369851",
+ "type": "set",
+ "name": "set ac2_svlan",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac2_svlan' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1962.5,
+ "y": 1034,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "1799ee09.bb8ffa",
+ "type": "set",
+ "name": "set ac1_protocol",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac1_protocol' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1960.5,
+ "y": 1091,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "a6d260a1.f58c48",
+ "type": "set",
+ "name": "set ac2_protocol",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac2_protocol' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1969.5,
+ "y": 1143,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "8bd5be57.1da07",
+ "type": "set",
+ "name": "set ac1_protocol_bgp_as",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac1_protocol_bgp_as' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n<parameter name='prop.l3vpn.peer1-ip' value='`$prop.l3vpn.ac1_ip`' />\n",
+ "comments": "",
+ "x": 2063.5,
+ "y": 1347,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "b62f8a75.a94a88",
+ "type": "set",
+ "name": "set ac2_protocol_bgp_as",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac2_protocol_bgp_as' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n<parameter name='prop.l3vpn.peer2-ip' value='`$prop.l3vpn.ac2_ip`' />\n",
+ "comments": "",
+ "x": 2075.5,
+ "y": 1396,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "d6461dbb.9360e8",
+ "type": "set",
+ "name": "set af_type",
+ "xml": "<set>\n<parameter name='prop.l3vpn.af_type' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1959.5,
+ "y": 1490,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "5c9ca6e0.e239a",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"Time\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"Method\" value=\"network-topology-operation-create\"/>\n<parameter name=\"SubMethod\" value=\"L3VPN-Config\"/>\n<parameter name=\"l3vpn_name\" value=\"`$prop.l3vpn.name`\"/>\n<parameter name=\"topology\" value=\"`$prop.l3vpn.topology`\"/>\n<parameter name=\"site1_name\" value=\"`$prop.l3vpn.site1_name`\"/>\n<parameter name=\"vpn-policy1-id\" value=\"`$prop.l3vpn.vpn-policy1-id}`\"/>\n<parameter name=\"l3vpn.entry1-id\" value=\"`$prop.l3vpn.entry1-id`\"/>\n<parameter name=\"sna1_name\" value=\"`$prop.l3vpn.sna1_name`\"/>\n<parameter name=\"pe1_id\" value=\"`$prop.l3vpn.pe1_id`\"/>\n<parameter name=\"ac1_id\" value=\"`$prop.l3vpn.ac1_id`\"/>\n<parameter name=\"sna1_svlan\" value=\"`$prop.l3vpn.sna1_svlan`\"/>\n<parameter name=\"ac1-peer-ip\" value=\"`$prop.l3vpn.ac1-peer-ip`\"/>\n<parameter name=\"ac1-ip\" value=\"`$prop.l3vpn.ac1-ip`\"/>\n<parameter name=\"ac1_protocol\" value=\"`$prop.l3vpn.ac1_protocol`\"/>\n<parameter name=\"sna1-route-ip-prefix\" value=\"`$prop.l3vpn.sna1-route-ip-prefix`\"/>\n<parameter name=\"sna1-route-next-hop\" value=\"`$prop.l3vpn.sna1-route-next-hop`\"/>\n<parameter name=\"peer2-ip\" value=\"`$prop.l3vpn.peer2-ip`\"/>\n<parameter name=\"ac2_protocol_bgp_as\" value=\"`$prop.l3vpn.ac2_protocol_bgp_as`\"/>\n<parameter name=\"vrf1-id\" value=\"`$prop.l3vpn.vrf1-id`\"/>\n<parameter name=\"site2_name\" value=\"`$prop.l3vpn.site2_name`\"/>\n<parameter name=\"vpn-policy2-id\" value=\"`$prop.l3vpn.vpn-policy2-id}`\"/>\n<parameter name=\"l3vpn.entry2-id\" value=\"`$prop.l3vpn.entry2-id`\"/>\n<parameter name=\"sna2_name\" value=\"`$prop.l3vpn.sna2_name`\"/>\n<parameter name=\"pe2_id\" value=\"`$prop.l3vpn.pe2_id`\"/>\n<parameter name=\"ac2_id\" value=\"`$prop.l3vpn.ac2_id`\"/>\n<parameter name=\"sna2_svlan\" value=\"`$prop.l3vpn.sna2_svlan`\"/>\n<parameter name=\"ac2-peer-ip\" value=\"`$prop.l3vpn.ac2-peer-ip`\"/>\n<parameter name=\"ac2-ip\" value=\"`$prop.l3vpn.ac2-ip`\"/>\n<parameter name=\"ac2_protocol\" value=\"`$prop.l3vpn.ac2_protocol`\"/>\n<parameter name=\"sna2-route-ip-prefix\" value=\"`$prop.l3vpn.sna2-route-ip-prefix`\"/>\n<parameter name=\"sna2-route-next-hop\" value=\"`$prop.l3vpn.sna2-route-next-hop`\"/>\n<parameter name=\"peer2-ip\" value=\"`$prop.l3vpn.peer2-ip`\"/>\n<parameter name=\"ac2_protocol_bgp_as\" value=\"`$prop.l3vpn.ac2_protocol_bgp_as`\"/>\n<parameter name=\"vrf2-id\" value=\"`$prop.l3vpn.vrf2-id`\"/>\n<parameter name=\"af_type\" value=\"`$prop.l3vpn.af_type`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 758,
+ "y": 741,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e21a9c92.1f2a28",
+ "type": "switchNode",
+ "name": "switch service-type",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 683,
+ "y": 881,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "35f4cd65.09f49a",
+ "75d7a8fd.a7b578",
+ "8c0ace1c.3759a8"
+ ]
+ ]
+ },
+ {
+ "id": "35f4cd65.09f49a",
+ "type": "outcomeTrue",
+ "name": "l3vpn-ipwan",
+ "xml": "<outcome value='l3vpn-ipwan'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 669,
+ "y": 806,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "97e69226.8d874"
+ ]
+ ]
+ },
+ {
+ "id": "75d7a8fd.a7b578",
+ "type": "outcomeTrue",
+ "name": "l3vpn-sptn",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 827,
+ "y": 949,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "6b6b65e4.027114"
+ ]
+ ]
+ },
+ {
+ "id": "8c0ace1c.3759a8",
+ "type": "outcomeTrue",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 825,
+ "y": 1028,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "942583bd.a55fc8"
+ ]
+ ]
+ },
+ {
+ "id": "942583bd.a55fc8",
+ "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=\"Unexpected error retrieving vpn binding\" />\n\n",
+ "comments": "",
+ "x": 1008,
+ "y": 1027,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "151a4cba.fa33e3",
+ "type": "execute",
+ "name": "execute vpn-policy2-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.l3vpn.vpn-policy2-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 799,
+ "y": 505,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "e0623ae9.6063c"
+ ]
+ ]
+ },
+ {
+ "id": "e0623ae9.6063c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1024,
+ "y": 507.9999694824219,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "25b266b0.918a82"
+ ]
+ ]
+ },
+ {
+ "id": "25b266b0.918a82",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation vpn policy ID\" />\n",
+ "comments": "",
+ "x": 1205,
+ "y": 505.9999694824219,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "be047f99.592428",
+ "type": "set",
+ "name": "set policy entry",
+ "xml": "<set>\n<parameter name='prop.l3vpn.entry1-id' value='1' />\n<parameter name='prop.l3vpn.entry2-id' value='1' />\n\n",
+ "comments": "",
+ "x": 785,
+ "y": 553,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "98526d9c.6760b",
+ "type": "execute",
+ "name": "execute split ac1-route",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.l3vpn.ac1-route`'/>\n<parameter name=\"regex\" value=\" ## \"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2189,
+ "y": 1203,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "b220812e.109778",
+ "351eda30.07db16"
+ ]
+ ]
+ },
+ {
+ "id": "bf6d8b73.1d1d2",
+ "type": "switchNode",
+ "name": "switch ac2_route",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_route'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1590,
+ "y": 1251,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "7a9c17fc.2f1e08"
+ ]
+ ]
+ },
+ {
+ "id": "5a7334fb.eef58c",
+ "type": "switchNode",
+ "name": "switch ac1_route",
+ "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_route'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1591,
+ "y": 1202,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "56e3cd9c.43986c"
+ ]
+ ]
+ },
+ {
+ "id": "56e3cd9c.43986c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1763,
+ "y": 1200,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "477adf42.483428"
+ ]
+ ]
+ },
+ {
+ "id": "7a9c17fc.2f1e08",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1776,
+ "y": 1259,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "fc261e72.93fdd8"
+ ]
+ ]
+ },
+ {
+ "id": "54fbb9e9.bfa918",
+ "type": "set",
+ "name": "set ac1_route",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac1_route' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2160,
+ "y": 1151,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "d7d47e9f.d291a8",
+ "type": "set",
+ "name": "set ac2_route",
+ "xml": "<set>\n<parameter name='prop.l3vpn.ac2_route' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2158,
+ "y": 1251,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "8d93fa75.d66f9",
+ "type": "execute",
+ "name": "execute split ac2-route",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.l3vpn.ac2-route`'/>\n<parameter name=\"regex\" value=\" ## \"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route2\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2182,
+ "y": 1296,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "ff5e6e80.75b3d",
+ "b6c5cd5f.5be15"
+ ]
+ ]
+ },
+ {
+ "id": "477adf42.483428",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1914,
+ "y": 1200,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "54fbb9e9.bfa918",
+ "98526d9c.6760b"
+ ]
+ ]
+ },
+ {
+ "id": "fc261e72.93fdd8",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1915,
+ "y": 1259,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "d7d47e9f.d291a8",
+ "8d93fa75.d66f9"
+ ]
+ ]
+ },
+ {
+ "id": "1460f5c7.7bf212",
+ "type": "execute",
+ "name": "execute vrf1-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.l3vpn.vrf1-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 806,
+ "y": 608,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "d4cb6331.d1fce8"
+ ]
+ ]
+ },
+ {
+ "id": "e2d35c41.dd6f5",
+ "type": "execute",
+ "name": "execute vrf2-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.l3vpn.vrf2-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 806.3333740234375,
+ "y": 666.3333129882812,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "aa4153ec.2a7508"
+ ]
+ ]
+ },
+ {
+ "id": "aa4153ec.2a7508",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1031.3333740234375,
+ "y": 669.3332824707031,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "4a3bd02b.dd7f6"
+ ]
+ ]
+ },
+ {
+ "id": "d4cb6331.d1fce8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1031,
+ "y": 610.9999694824219,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "34c6dafd.7466b6"
+ ]
+ ]
+ },
+ {
+ "id": "34c6dafd.7466b6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation vpn policy ID\" />\n",
+ "comments": "",
+ "x": 1212,
+ "y": 608.9999694824219,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "4a3bd02b.dd7f6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation vpn policy ID\" />\n",
+ "comments": "",
+ "x": 1212.3333740234375,
+ "y": 667.3332824707031,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "97e69226.8d874",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 848,
+ "y": 806,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "d2fcc9e7.aec75",
+ "29a0e3d5.f4d32c",
+ "c946ab83.d974f8"
+ ]
+ ]
+ },
+ {
+ "id": "29a0e3d5.f4d32c",
+ "type": "execute",
+ "name": "execute RestApiCallNode IPWAN Site Config",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services'\"/>\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\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1156,
+ "y": 801,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c946ab83.d974f8",
+ "type": "execute",
+ "name": "execute RestApiCallNode IPWAN VRF Config",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services'\"/>\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\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1154,
+ "y": 872,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b220812e.109778",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2407,
+ "y": 1195,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "c61ec37b.6cd3b8"
+ ]
+ ]
+ },
+ {
+ "id": "c61ec37b.6cd3b8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 2588,
+ "y": 1193,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "ff5e6e80.75b3d",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2405,
+ "y": 1297,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "73eb8615.8d24d8"
+ ]
+ ]
+ },
+ {
+ "id": "73eb8615.8d24d8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 2586,
+ "y": 1295,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "351eda30.07db16",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2406,
+ "y": 1129,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "581ab8c9.51da4"
+ ]
+ ]
+ },
+ {
+ "id": "b6c5cd5f.5be15",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2402,
+ "y": 1249,
+ "z": "f29dedb6.fec708",
+ "wires": [
+ [
+ "f0e238af.ae0bf8"
+ ]
+ ]
+ },
+ {
+ "id": "581ab8c9.51da4",
+ "type": "set",
+ "name": "set route1 ip-prefix next-hop",
+ "xml": "<set>\n<parameter name='prop.l3vpn.sna1-route.ip-prefix' value='`$route1[0]`' />\n<parameter name='prop.l3vpn.sna1-route.next-hop' value='`$route1[1]`' />\n",
+ "comments": "",
+ "x": 2613,
+ "y": 1123,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ },
+ {
+ "id": "f0e238af.ae0bf8",
+ "type": "set",
+ "name": "set route2 ip-prefix next-hop",
+ "xml": "<set>\n<parameter name='prop.l3vpn.sna2-route.ip-prefix' value='`$route2[0]`' />\n<parameter name='prop.l3vpn.sna2-route.next-hop' value='`$route2[1]`' />",
+ "comments": "",
+ "x": 2613,
+ "y": 1242,
+ "z": "f29dedb6.fec708",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-delete.json
index 998b1f65..b2343d8f 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-delete.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-delete.json
@@ -20,7 +20,7 @@
"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}'>",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
"outputs": 1,
"x": 312.00000381469727,
"y": 224.0000171661377,
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json
index e0baa7a1..41243f3b 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json
@@ -1,842 +1,1010 @@
[
{
- "id": "41c5caea.9adc34",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 95.54763793945312,
- "y": 109.41365623474121,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"85a3d498.ee70b8",
+ "type":"dgstart",
+ "name":"DGSTART",
+ "outputs":1,
+ "x":467.0155944824219,
+ "y":473.0155944824219,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "cc320d31.bccdf"
+ "484faa8a.853654"
]
]
},
{
- "id": "cc320d31.bccdf",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "comments": "",
- "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
- "outputs": 1,
- "x": 177.5,
- "y": 149.6517686843872,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"484faa8a.853654",
+ "type":"service-logic",
+ "name":"GENERIC-RESOURCE-API ${project.version}",
+ "module":"GENERIC-RESOURCE-API",
+ "version":"${project.version}",
+ "comments":"",
+ "xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs":1,
+ "x":548.9679565429688,
+ "y":513.2537069320679,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "82b10f50.5d8e8"
+ "577e559b.5bf3fc"
]
]
},
{
- "id": "82b10f50.5d8e8",
- "type": "method",
- "name": "network-topology-operation",
- "xml": "<method rpc='network-topology-operation' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 173.97626495361328,
- "y": 189.4136505126953,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"577e559b.5bf3fc",
+ "type":"method",
+ "name":"network-topology-operation",
+ "xml":"<method rpc='network-topology-operation' mode='sync'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":545.444221496582,
+ "y":553.015588760376,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "bf4f5344.1024c8"
+ "d89fb108.c15da"
]
]
},
{
- "id": "17ece3ab.35321c",
- "type": "comment",
- "name": " NETWORK-TOPOLOGY-OPERATION ",
- "info": "",
- "comments": "",
- "x": 489.89249420166016,
- "y": 57,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"ac32132a.0500d",
+ "type":"comment",
+ "name":" NETWORK-TOPOLOGY-OPERATION ",
+ "info":"",
+ "comments":"",
+ "x":861.3604507446289,
+ "y":420.60193824768066,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
},
{
- "id": "bf4f5344.1024c8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 209.54766845703125,
- "y": 272.85713958740234,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"d89fb108.c15da",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":581.015625,
+ "y":636.459077835083,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "d50c5a2a.c0cea",
- "b762591f.2fb7a",
- "f06b8960.155ea8",
- "f1b5981d.bfa858"
+ "e42a6d76.72f57",
+ "6e4d7ebf.93e81",
+ "ae97e5fa.ddc148",
+ "879a69b3.6edd88"
]
]
},
{
- "id": "d50c5a2a.c0cea",
- "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": 439.6310272216797,
- "y": 896.6997756958008,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"e42a6d76.72f57",
+ "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":811.0989837646484,
+ "y":1260.3017139434814,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
},
{
- "id": "b762591f.2fb7a",
- "type": "switchNode",
- "name": "switch svc-action",
- "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 436.26190185546875,
- "y": 503.2708339691162,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"6e4d7ebf.93e81",
+ "type":"switchNode",
+ "name":"switch svc-action",
+ "xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":807.7298583984375,
+ "y":866.8727722167969,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "38a30397.7f9c64",
- "5b59ca66.3fadec",
- "7a4b792c.22588",
- "b22e57ce.c6aee8",
- "10c582cc.cfd665",
- "de74faab.3a2ae",
- "9bc3f97c.14bbf8"
+ "f25f7aea.b8fbf8",
+ "5b25cfb0.9dc3",
+ "ce4f0e34.637f",
+ "554ed162.fdbc2",
+ "9c1f95f4.d32d48",
+ "b361fb8f.196518",
+ "e0127b7f.249248"
]
]
},
{
- "id": "38a30397.7f9c64",
- "type": "other",
- "name": "assign",
- "xml": "<outcome value='assign'>\n",
- "comments": "",
- "outputs": 1,
- "x": 656.7380981445312,
- "y": 365.5564842224121,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"f25f7aea.b8fbf8",
+ "type":"other",
+ "name":"assign",
+ "xml":"<outcome value='assign'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1028.2060546875,
+ "y":643.1584224700928,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "7047d313.0a4e84"
+ "9ca02c4f.ecd52"
]
]
},
{
- "id": "7047d313.0a4e84",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 837.9762573242188,
- "y": 366.5566062927246,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"9ca02c4f.ecd52",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":1209.4442138671875,
+ "y":644.1585445404053,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "fbc9882f.656ad8"
+ "e222c594.de61b8"
]
]
},
{
- "id": "f06b8960.155ea8",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:validate-network-input",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 567.5476379394531,
- "y": 273.4136562347412,
- "z": "67a3081a.032478",
- "wires": [
- []
+ "id":"ae97e5fa.ddc148",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:validate-network-input",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":940.0156097412109,
+ "y":579.0156707763672,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+
+ ]
]
},
{
- "id": "fbc9882f.656ad8",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:network-topology-operation-assign",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1209.547607421875,
- "y": 363.4136619567871,
- "z": "67a3081a.032478",
- "wires": [
- []
+ "id":"e222c594.de61b8",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:network-topology-operation-assign",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":1581.0155639648438,
+ "y":641.0156002044678,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+
+ ]
]
},
{
- "id": "5b59ca66.3fadec",
- "type": "other",
- "name": "activate",
- "xml": "<outcome value='activate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 658.5476379394531,
- "y": 453.4136562347412,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"5b25cfb0.9dc3",
+ "type":"other",
+ "name":"activate",
+ "xml":"<outcome value='activate'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1030.0155944824219,
+ "y":817.0155944824219,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "73ce8c08.c3845c"
+ "a2f3df33.c4b68"
]
]
},
{
- "id": "73ce8c08.c3845c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 842.7857971191406,
- "y": 454.4137783050537,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"922d755b.661638",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":1567.2537536621094,
+ "y":814.0158309936523,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "a003c0d6.5a0d8",
- "61a363af.ee55bc"
+ "c5274c8f.1721b",
+ "3b322ad5.66cb26"
]
]
},
{
- "id": "ee7e53d1.6aac9",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:network-topology-operation-activate",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1975.3572082519531,
- "y": 616.2708282470703,
- "z": "67a3081a.032478",
- "wires": [
- []
+ "id":"7c5eb492.d1272c",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:network-topology-operation-activate",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":2612.825164794922,
+ "y":942.872766494751,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+
+ ]
]
},
{
- "id": "7a4b792c.22588",
- "type": "other",
- "name": "deactivate",
- "xml": "<outcome value='deactivate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 647.5476379394531,
- "y": 613.4136810302734,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"ce4f0e34.637f",
+ "type":"other",
+ "name":"deactivate",
+ "xml":"<outcome value='deactivate'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1019.0155944824219,
+ "y":977.0156192779541,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "72ac187b.b86c38"
+ "4fa02a57.55a214"
]
]
},
{
- "id": "72ac187b.b86c38",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 828.7857971191406,
- "y": 614.4138031005859,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"9c0934a4.38d8c8",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":1571.2537994384766,
+ "y":1080.0159301757812,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "a003c0d6.5a0d8",
- "831644e8.e13cc"
+ "c5274c8f.1721b",
+ "a31ca188.c32d7"
]
]
},
{
- "id": "65e2e00c.98fae8",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:network-topology-operation-deactivate",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1981.8571166992188,
- "y": 732.0208282470703,
- "z": "67a3081a.032478",
- "wires": [
- []
+ "id":"61181d4d.3f9f64",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:network-topology-operation-deactivate",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":2611.3250732421875,
+ "y":1114.622766494751,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+
+ ]
]
},
{
- "id": "b22e57ce.c6aee8",
- "type": "other",
- "name": "unassign",
- "xml": "<outcome value='unassign'>\n",
- "comments": "",
- "outputs": 1,
- "x": 655.5476379394531,
- "y": 678.4136810302734,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"554ed162.fdbc2",
+ "type":"other",
+ "name":"unassign",
+ "xml":"<outcome value='unassign'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1027.0155944824219,
+ "y":1042.015619277954,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "4894d2ca.1278e4"
+ "babe1e.7216b1e"
]
]
},
{
- "id": "4894d2ca.1278e4",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 836.7857971191406,
- "y": 679.4138031005859,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"babe1e.7216b1e",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":1208.2537536621094,
+ "y":1043.0157413482666,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "a003c0d6.5a0d8",
- "2108d22b.ae9926"
+ "c5274c8f.1721b",
+ "a93ebb11.5112b8"
]
]
},
{
- "id": "40a123a7.613904",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:network-topology-operation-unassign",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1988.6071166992188,
- "y": 844.7708282470703,
- "z": "67a3081a.032478",
- "wires": [
- []
+ "id":"98390811.bf3d38",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:network-topology-operation-unassign",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":2360.0750732421875,
+ "y":1208.372766494751,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+
+ ]
]
},
{
- "id": "10c582cc.cfd665",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 646.5476417541504,
- "y": 738.4136714935303,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"9c1f95f4.d32d48",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1018.0155982971191,
+ "y":1102.015609741211,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "9b7e6225.5d79d"
+ "b64c1d1.5a772e"
]
]
},
{
- "id": "9b7e6225.5d79d",
- "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-action is a required input\" />\n",
- "comments": "",
- "x": 828.5476379394531,
- "y": 737.4136810302734,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"b64c1d1.5a772e",
+ "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-action is a required input\" />\n",
+ "comments":"",
+ "x":1200.0155944824219,
+ "y":1101.015619277954,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
},
{
- "id": "f1b5981d.bfa858",
- "type": "set",
- "name": "Set final indicator to Y",
- "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
- "comments": "",
- "x": 458.6587219238281,
- "y": 855.8581142425537,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"879a69b3.6edd88",
+ "type":"set",
+ "name":"Set final indicator to Y",
+ "xml":"<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
+ "comments":"",
+ "x":830.1266784667969,
+ "y":1219.4600524902344,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
},
{
- "id": "e4027dbf.f06578",
- "type": "for",
- "name": "for nidx..service-data.networks.network[]",
- "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1877.2779998779297,
- "y": 510.1755828857422,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"8945700c.0d991",
+ "type":"for",
+ "name":"for nidx..service-data.networks.network[]",
+ "xml":"<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":2566.7459564208984,
+ "y":852.7775211334229,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "ac917046.066bc"
+ "63bd9e68.829b4"
]
]
},
{
- "id": "a003c0d6.5a0d8",
- "type": "switchNode",
- "name": "switch service-data.networks.network_length",
- "xml": "<switch test='`$service-data.networks.network_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1210.9920959472656,
- "y": 474.74696350097656,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"c5274c8f.1721b",
+ "type":"switchNode",
+ "name":"switch service-data.networks.network_length",
+ "xml":"<switch test='`$service-data.networks.network_length`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1873.4600524902344,
+ "y":812.3489017486572,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "9e3ec1fd.ad5b98",
- "47eae2b1.438c54"
+ "aeada561.cc58d8",
+ "7091af2b.522e4"
]
]
},
{
- "id": "9e3ec1fd.ad5b98",
- "type": "other",
- "name": "outcome Null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1453.9920349121094,
- "y": 476.7469730377197,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"aeada561.cc58d8",
+ "type":"other",
+ "name":"outcome Null",
+ "xml":"<outcome value=''>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2146.460090637207,
+ "y":811.3489665985107,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "f460d6cb.ffd978"
+ "ed06878e.3cab58"
]
]
},
{
- "id": "47eae2b1.438c54",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1407.9920654296875,
- "y": 509.7469940185547,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"7091af2b.522e4",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2126.4604148864746,
+ "y":851.3489713668823,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "e10cc477.9b0f2"
+ "ab947f5a.5f651"
]
]
},
{
- "id": "ac917046.066bc",
- "type": "switchNode",
- "name": "switch networkid found",
- "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2167.7065505981445,
- "y": 509.42566680908203,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"63bd9e68.829b4",
+ "type":"switchNode",
+ "name":"switch networkid found",
+ "xml":"<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":2857.1745071411133,
+ "y":852.0276050567627,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+ "3695eb78.874394"
+ ]
+ ]
+ },
+ {
+ "id":"3695eb78.874394",
+ "type":"outcomeTrue",
+ "name":"true",
+ "xml":"<outcome value='true'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":3046.1268615722656,
+ "y":852.9203433990479,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+ "674767aa.48a638"
+ ]
+ ]
+ },
+ {
+ "id":"674767aa.48a638",
+ "type":"set",
+ "name":"set tmp.nidx and ctx.network-data",
+ "xml":"<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
+ "comments":"",
+ "x":3279.6586303710938,
+ "y":851.6703510284424,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"6fdacf7d.b32fb",
+ "type":"comment",
+ "name":"Find the index to service data for this network - save id in tmp.nidx, save service-data",
+ "info":"",
+ "comments":"",
+ "x":1819.571388244629,
+ "y":776.3489632606506,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"f5085beb.082298",
+ "type":"comment",
+ "name":"service-data will not be stored until we have a network-id",
+ "info":"",
+ "comments":"",
+ "x":1548.6821899414062,
+ "y":609.237829208374,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"ed06878e.3cab58",
+ "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.network-request-input.network-id not found in service-data\" />\n",
+ "comments":"",
+ "x":2308.237548828125,
+ "y":812.2379093170166,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"ab947f5a.5f651",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":2264.7299880981445,
+ "y":851.9035091400146,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "6f4b90eb.3d488"
+ "8945700c.0d991",
+ "61e26d45.4186e4"
]
]
},
{
- "id": "6f4b90eb.3d488",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2356.658905029297,
- "y": 510.3184051513672,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"61e26d45.4186e4",
+ "type":"switchNode",
+ "name":"switch tmp.nidx ",
+ "xml":"<switch test=\"`$tmp.nidx`\">\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":2485.0473861694336,
+ "y":894.7607278823853,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "9e191d8a.ab6c4"
+ "b746b314.6a6bb"
]
]
},
{
- "id": "9e191d8a.ab6c4",
- "type": "set",
- "name": "set tmp.nidx and ctx.network-data",
- "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
- "comments": "",
- "x": 2590.190673828125,
- "y": 509.0684127807617,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"ebd0f10f.cbf66",
+ "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.network-request-input.network-id not found in service-data\" />\n",
+ "comments":"",
+ "x":2837.904369354248,
+ "y":890.4749698638916,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
},
{
- "id": "7b13cf65.3164b",
- "type": "comment",
- "name": "Find the index to service data for this network - save id in tmp.nidx, save service-data",
- "info": "",
- "comments": "",
- "x": 1334.1031799316406,
- "y": 443.74698638916016,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"b746b314.6a6bb",
+ "type":"outcome",
+ "name":"NULL",
+ "xml":"<outcome value=''>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2656.4759216308594,
+ "y":893.3321132659912,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+ "ebd0f10f.cbf66"
+ ]
+ ]
},
{
- "id": "1ed6801d.d2f0c8",
- "type": "comment",
- "name": "service-data will not be stored until we have a network-id",
- "info": "",
- "comments": "",
- "x": 1177.2142333984375,
- "y": 331.63589096069336,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"3b322ad5.66cb26",
+ "type":"switchNode",
+ "name":"switch network-level-oper-status",
+ "xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1825.7933959960938,
+ "y":942.8241672515869,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+ "4168b97e.614508",
+ "648208ba.c9c398"
+ ]
+ ]
},
{
- "id": "f460d6cb.ffd978",
- "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.network-request-input.network-id not found in service-data\" />\n",
- "comments": "",
- "x": 1645.7695922851562,
- "y": 474.63597106933594,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"4168b97e.614508",
+ "type":"outcome",
+ "name":"outcome PendingCreate",
+ "xml":"<outcome value='PendingCreate'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2190.793375651041,
+ "y":942.8241519927977,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+ "7c5eb492.d1272c"
+ ]
+ ]
},
{
- "id": "e10cc477.9b0f2",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1575.2620315551758,
- "y": 509.301570892334,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"648208ba.c9c398",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2140.7934226989746,
+ "y":982.824182510376,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "e4027dbf.f06578",
- "8872fa92.c2a47"
+ "cd47365a.985768"
]
]
},
{
- "id": "8872fa92.c2a47",
- "type": "switchNode",
- "name": "switch tmp.nidx ",
- "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1795.5794296264648,
- "y": 552.1587896347046,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"cd47365a.985768",
+ "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 is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
+ "comments":"",
+ "x":2310.7934226989746,
+ "y":982.824182510376,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"a31ca188.c32d7",
+ "type":"switchNode",
+ "name":"switch network-level-oper-status",
+ "xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1825.0948791503906,
+ "y":1114.7755680084229,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "90030fdf.45af7"
+ "e33c6a6c.b344c8",
+ "aa28812e.314c3"
]
]
},
{
- "id": "6b0a8e46.af7a78",
- "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.network-request-input.network-id not found in service-data\" />\n",
- "comments": "",
- "x": 2148.4364128112793,
- "y": 547.8730316162109,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"e33c6a6c.b344c8",
+ "type":"outcome",
+ "name":"outcome Created",
+ "xml":"<outcome value='Created'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2188.0948486328125,
+ "y":1114.775598526001,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+ "61181d4d.3f9f64"
+ ]
+ ]
},
{
- "id": "90030fdf.45af7",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1967.0079650878906,
- "y": 550.7301750183105,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"aa28812e.314c3",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2158.0948486328125,
+ "y":1154.775598526001,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "6b0a8e46.af7a78"
+ "deb09c1d.1e536"
]
]
},
{
- "id": "61a363af.ee55bc",
- "type": "switchNode",
- "name": "switch network-level-oper-status",
- "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1188.325439453125,
- "y": 616.2222290039062,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"deb09c1d.1e536",
+ "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 is not in appropriate state for deactivate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
+ "comments":"",
+ "x":2324.0948486328125,
+ "y":1156.775598526001,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"a93ebb11.5112b8",
+ "type":"switchNode",
+ "name":"switch network-level-oper-status",
+ "xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1566.8964538574219,
+ "y":1209.9769687652588,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "a0dc1668.8be6a8",
- "e9825cb2.5deff"
+ "b6998c15.248c1",
+ "86ffd64.1d13d28",
+ "90e3f2b9.f7fb8"
]
]
},
{
- "id": "a0dc1668.8be6a8",
- "type": "outcome",
- "name": "outcome PendingCreate",
- "xml": "<outcome value='PendingCreate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1553.3254191080723,
- "y": 616.2222137451171,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"b6998c15.248c1",
+ "type":"outcome",
+ "name":"outcome PendingCreate",
+ "xml":"<outcome value='PendingCreate'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1926.8964233398438,
+ "y":1209.976999282837,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "ee7e53d1.6aac9"
+ "98390811.bf3d38"
]
]
},
{
- "id": "e9825cb2.5deff",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1503.3254661560059,
- "y": 656.2222442626953,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"86ffd64.1d13d28",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1883.8963623046875,
+ "y":1293.977014541626,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "44229861.ecaaa8"
+ "38a0884b.706138"
]
]
},
{
- "id": "44229861.ecaaa8",
- "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 is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
- "comments": "",
- "x": 1673.3254661560059,
- "y": 656.2222442626953,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"38a0884b.706138",
+ "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 is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
+ "comments":"",
+ "x":2075.229782104492,
+ "y":1292.6436433792114,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+
+ ]
},
{
- "id": "831644e8.e13cc",
- "type": "switchNode",
- "name": "switch network-level-oper-status",
- "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1195.6269226074219,
- "y": 732.1736297607422,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"90e3f2b9.f7fb8",
+ "type":"outcome",
+ "name":"outcome PendingDelete",
+ "xml":"<outcome value='PendingDelete'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1930.1266479492188,
+ "y":1247.824167251587,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "1181976c.1aed59",
- "1843fe0b.3bf1d2"
+ "98390811.bf3d38"
]
]
},
{
- "id": "1181976c.1aed59",
- "type": "outcome",
- "name": "outcome Created",
- "xml": "<outcome value='Created'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1558.6268920898438,
- "y": 732.1736602783203,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"b361fb8f.196518",
+ "type":"other",
+ "name":"create",
+ "xml":"<outcome value='create'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1015.4679565429688,
+ "y":1161.6019382476807,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "65e2e00c.98fae8"
+ "870ebc3.cf39e4"
]
]
},
{
- "id": "1843fe0b.3bf1d2",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1528.6268920898438,
- "y": 772.1736602783203,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"e0127b7f.249248",
+ "type":"other",
+ "name":"delete",
+ "xml":"<outcome value='delete'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1018.4679565429688,
+ "y":1214.6019382476807,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "420607f9.76c808"
+ "997e78db.545078"
]
]
},
{
- "id": "420607f9.76c808",
- "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 is not in appropriate state for deactivate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
- "comments": "",
- "x": 1694.6268920898438,
- "y": 774.1736602783203,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"870ebc3.cf39e4",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":1204.4679565429688,
+ "y":1167.6019382476807,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+ "3c97679a.62e2f8"
+ ]
+ ]
},
{
- "id": "2108d22b.ae9926",
- "type": "switchNode",
- "name": "switch network-level-oper-status",
- "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1195.4284973144531,
- "y": 846.3750305175781,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"997e78db.545078",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "outputs":1,
+ "x":1203.4679565429688,
+ "y":1226.6019382476807,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "e2213711.520dd",
- "6c464ada.030e1c",
- "457e18b7.6ac5a8"
+ "54f0a399.e0516c"
]
]
},
{
- "id": "e2213711.520dd",
- "type": "outcome",
- "name": "outcome PendingCreate",
- "xml": "<outcome value='PendingCreate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1555.428466796875,
- "y": 846.3750610351562,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"3c97679a.62e2f8",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:network-topology-operation-create",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":1612.4679565429688,
+ "y":1352.6019382476807,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "40a123a7.613904"
+
]
]
},
{
- "id": "6c464ada.030e1c",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1512.4284057617188,
- "y": 930.3750762939453,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"54f0a399.e0516c",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:network-topology-operation-delete",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":1618.4679565429688,
+ "y":1435.6019382476807,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "138a0d17.b239e3"
+
]
]
},
{
- "id": "138a0d17.b239e3",
- "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 is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
- "comments": "",
- "x": 1703.7618255615234,
- "y": 929.0417051315308,
- "z": "67a3081a.032478",
- "wires": []
+ "id":"a2f3df33.c4b68",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1214.6668243408203,
+ "y":797.3333606719971,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+ "4eb93a4e.82ca64",
+ "7ad79299.e126cc"
+ ]
+ ]
},
{
- "id": "457e18b7.6ac5a8",
- "type": "outcome",
- "name": "outcome PendingDelete",
- "xml": "<outcome value='PendingDelete'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1558.65869140625,
- "y": 884.2222290039062,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"4eb93a4e.82ca64",
+ "type":"outcome",
+ "name":"ActivateDCINetworkInstance",
+ "xml":"<outcome value='ActivateDCINetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":1457.0000915527344,
+ "y":719.333173751831,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "40a123a7.613904"
+ "564c81e9.848b9"
]
]
},
{
- "id": "de74faab.3a2ae",
- "type": "other",
- "name": "create",
- "xml": "<outcome value='create'>\n",
- "comments": "",
- "outputs": 1,
- "x": 644,
- "y": 798,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"7ad79299.e126cc",
+ "type":"outcome",
+ "name":"other",
+ "xml":"<outcome value='other'>",
+ "comments":"",
+ "outputs":1,
+ "x":1387.0000839233398,
+ "y":844.999870300293,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "326c42d2.bec496"
+ "922d755b.661638"
]
]
},
{
- "id": "9bc3f97c.14bbf8",
- "type": "other",
- "name": "delete",
- "xml": "<outcome value='delete'>\n",
- "comments": "",
- "outputs": 1,
- "x": 647,
- "y": 851,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"564c81e9.848b9",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-activate",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-activate' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":1881.0001068115234,
+ "y":719.0000429153442,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "58d15587.e02aec"
+
]
]
},
{
- "id": "326c42d2.bec496",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 833,
- "y": 804,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"4fa02a57.55a214",
+ "type":"switchNode",
+ "name":"switch request-action",
+ "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1227.6666259765625,
+ "y":975,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "4ece5b87.0ed32c"
+ "bcde7f7f.e235b",
+ "55dafa1.c389f04"
]
]
},
{
- "id": "58d15587.e02aec",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 832,
- "y": 863,
- "z": "67a3081a.032478",
- "wires": [
+ "id":"bcde7f7f.e235b",
+ "type":"outcome",
+ "name":"DeActivateDCINetworkInstance",
+ "xml":"<outcome value='DeActivateDCINetworkInstance'>",
+ "comments":"",
+ "outputs":1,
+ "x":1497.9998779296875,
+ "y":984.9998912811279,
+ "z":"be8f5eb6.ea882",
+ "wires":[
[
- "b37ff23e.4b78c8"
+ "efb1ed02.23fdf"
]
]
},
{
- "id": "4ece5b87.0ed32c",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:network-topology-operation-create",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1241,
- "y": 989,
- "z": "67a3081a.032478",
- "wires": [
- []
+ "id":"efb1ed02.23fdf",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-deactivate",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-deactivate' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":1964.999900817871,
+ "y":1041.6667194366455,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+
+ ]
]
},
{
- "id": "b37ff23e.4b78c8",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:network-topology-operation-delete",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1247,
- "y": 1072,
- "z": "67a3081a.032478",
- "wires": [
- []
+ "id":"55dafa1.c389f04",
+ "type":"outcome",
+ "name":"other",
+ "xml":"<outcome value='other'>",
+ "comments":"",
+ "outputs":1,
+ "x":1422.9998817443848,
+ "y":1080.6665649414062,
+ "z":"be8f5eb6.ea882",
+ "wires":[
+ [
+ "9c0934a4.38d8c8"
+ ]
]
}
-]
+] \ 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 85dad279..c55aa515 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,1225 +1,1186 @@
[
{
- "id":"da317618.54edf8",
- "type":"dgstart",
- "name":"DGSTART",
- "outputs":1,
- "x":102.515625,
- "y":113.04766654968262,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "4e4a1db5.e19994",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 69,
+ "y": 114.04766654968262,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "20ee17f7.cfbc68"
+ "b00c6ebc.9f6148"
]
]
},
{
- "id":"20ee17f7.cfbc68",
- "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":347.8013381958008,
- "y":112.28574562072754,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "b00c6ebc.9f6148",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 314.2857131958008,
+ "y": 113.28574562072754,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "5a68f7e0.593d38"
+ "44d4c8c4.c3b998"
]
]
},
{
- "id":"5a68f7e0.593d38",
- "type":"method",
- "name":"method validate-network-input-parameters",
- "xml":"<method rpc='validate-network-input-parameters' mode='sync'>\n",
- "comments":"",
- "outputs":1,
- "x":305.43231201171875,
- "y":187.30068397521973,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "44d4c8c4.c3b998",
+ "type": "method",
+ "name": "method validate-network-input-parameters",
+ "xml": "<method rpc='validate-network-input-parameters' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 271.91668701171875,
+ "y": 188.30068397521973,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "df4d604e.2ca72"
+ "b1f5234e.374c1"
]
]
},
{
- "id":"df4d604e.2ca72",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">",
- "atomic":"true",
- "outputs":1,
- "x":589.4323196411133,
- "y":175.30070877075195,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "b1f5234e.374c1",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 555.9166946411133,
+ "y": 176.30070877075195,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "638c95bd.8f466c",
- "420ecc0a.f3f174"
+ "911dd6e7.3e5ce",
+ "30f2c5d1.5e680a"
]
]
},
{
- "id":"638c95bd.8f466c",
- "type":"switchNode",
- "name":"switch svc-action",
- "xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
- "comments":"",
- "outputs":1,
- "x":870.4323196411133,
- "y":170.3006944656372,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "911dd6e7.3e5ce",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 836.9166946411133,
+ "y": 171.3006944656372,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "66d387c4.23de98"
+ "84d48b8c.b6753"
]
]
},
{
- "id":"66d387c4.23de98",
- "type":"outcome",
- "name":"NULL",
- "xml":"<outcome value=''>",
- "comments":"",
- "outputs":1,
- "x":1061.1466217041016,
- "y":171.30069541931152,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "84d48b8c.b6753",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1027.6309967041016,
+ "y": 172.30069541931152,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "a7efa050.0eb13"
+ "7ddcb143.915a4"
]
]
},
{
- "id":"a7efa050.0eb13",
- "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":1235.5751724243164,
- "y":170.300687789917,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "7ddcb143.915a4",
+ "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": 1202.0595474243164,
+ "y": 171.300687789917,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"420ecc0a.f3f174",
- "type":"switchNode",
- "name":"switch svc-action",
- "xml":"<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n",
- "comments":"",
- "outputs":1,
- "x":171.43226623535156,
- "y":446.30070877075195,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "30f2c5d1.5e680a",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 137.91664123535156,
+ "y": 447.30070877075195,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "a1c81a08.4a4658",
- "35262124.49e2ee",
- "8db39207.9cf42",
- "ac1f4d45.6379a",
- "50f9a48d.e072dc"
+ "adae5694.342958",
+ "500ad4c6.47f08c",
+ "22013026.8cc88",
+ "750fe4a3.ade904",
+ "a9f01ff9.d40278"
]
]
},
{
- "id":"a1c81a08.4a4658",
- "type":"outcome",
- "name":"assign",
- "xml":"<outcome value='assign'>\n",
- "comments":"",
- "outputs":1,
- "x":372.9323501586914,
- "y":446.30070877075195,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "adae5694.342958",
+ "type": "outcome",
+ "name": "create",
+ "xml": "<outcome value='create'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 339.4167251586914,
+ "y": 447.30070877075195,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "7802f1ec.ca7d8"
+ "45ac8a67.1ab214"
]
]
},
{
- "id":"7802f1ec.ca7d8",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">",
- "atomic":"true",
- "outputs":1,
- "x":538.9323577880859,
- "y":446.30070877075195,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "45ac8a67.1ab214",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 505.41673278808594,
+ "y": 447.30070877075195,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "ea0957a5.857bf8"
+ "97add15a.4cb3a8"
]
]
},
{
- "id":"ef18ce39.3e51e",
- "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":1738.146499633789,
- "y":110.01497840881348,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "d1354c61.d70e7",
+ "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": 1704.630874633789,
+ "y": 111.01497840881348,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "80257d50.3b4d4"
+ "f7be75b2.d145f8"
]
]
},
{
- "id":"4a695b88.fdc594",
- "type":"switchNode",
- "name":"switch value",
- "xml":"<switch test=\"`$tmp.value`\">\n",
- "comments":"",
- "outputs":1,
- "x":2591.7178497314453,
- "y":364.01495361328125,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "560f8ff1.549fe8",
+ "type": "switchNode",
+ "name": "switch value",
+ "xml": "<switch test=\"`$tmp.value`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2558.2022247314453,
+ "y": 365.01495361328125,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "9ba44b0.d83ecb8"
+ "35d7055a.4a3242"
]
]
},
{
- "id":"9ba44b0.d83ecb8",
- "type":"outcome",
- "name":"NULL",
- "xml":"<outcome value=''>",
- "comments":"",
- "outputs":1,
- "x":2808.7178230285645,
- "y":363.01495933532715,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "35d7055a.4a3242",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2775.2021980285645,
+ "y": 364.01495933532715,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "b0753bf8.b88448"
+ "d860ff65.a2e1"
]
]
},
{
- "id":"b0753bf8.b88448",
- "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":2987.1465377807617,
- "y":364.01495933532715,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "d860ff65.a2e1",
+ "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.param '+ $tmp.name +' is a required input'\" />\n",
+ "comments": "",
+ "x": 2953.6309127807617,
+ "y": 365.01495933532715,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"35262124.49e2ee",
- "type":"outcome",
- "name":"deactivate",
- "xml":"<outcome value='deactivate'>\n",
- "comments":"",
- "outputs":1,
- "x":375.2299041748047,
- "y":604.4762363433838,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "500ad4c6.47f08c",
+ "type": "outcome",
+ "name": "deactivate",
+ "xml": "<outcome value='deactivate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 341.7142791748047,
+ "y": 605.4762363433838,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "e5333ad2.88c6a8"
+ "4bb419b5.b0e6e"
]
]
},
{
- "id":"8db39207.9cf42",
- "type":"outcome",
- "name":"delete",
- "xml":"<outcome value='delete'>\n",
- "comments":"",
- "outputs":1,
- "x":378.94428634643555,
- "y":931.1907939910889,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "22013026.8cc88",
+ "type": "outcome",
+ "name": "delete",
+ "xml": "<outcome value='delete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 345.42866134643555,
+ "y": 932.1907939910889,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "69b449f8.e0c4f8"
+ "4023bbbc.b8c3c4"
]
]
},
{
- "id":"ac1f4d45.6379a",
- "type":"other",
- "name":"other",
- "xml":"<outcome value='Other'>\n",
- "comments":"",
- "outputs":1,
- "x":376.7061653137207,
- "y":885.619062423706,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "750fe4a3.ade904",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 343.1905403137207,
+ "y": 886.619062423706,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "c57b3d6b.428a1"
+ "3dd4d642.9cafa2"
]
]
},
{
- "id":"c57b3d6b.428a1",
- "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":530.2777404785156,
- "y":888.2382063865662,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "3dd4d642.9cafa2",
+ "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": 496.7621154785156,
+ "y": 889.2382063865662,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"80257d50.3b4d4",
- "type":"block",
- "name":"block",
- "xml":"<block>\n",
- "atomic":"false",
- "comments":"",
- "outputs":1,
- "x":1616.2298736572266,
- "y":256.761926651001,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "f7be75b2.d145f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1582.7142486572266,
+ "y": 257.761926651001,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "50315017.56b56",
- "1ffb5b62.b458c5",
- "846be723.9405f8"
+ "26bdae61.564c5a",
+ "395e8b66.7b0f1c",
+ "84048547.624768"
]
]
},
{
- "id":"ea0957a5.857bf8",
- "type":"switchNode",
- "name":"switch request-action",
- "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
- "comments":"",
- "outputs":1,
- "x":864.5156402587891,
- "y":335.7143363952637,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "97add15a.4cb3a8",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 831.0000152587891,
+ "y": 336.7143363952637,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "6458f4b.5fda60c",
- "7c5ea13d.5b8e"
+ "76502e63.ceb1a",
+ "1255dbb4.75c26c"
]
]
},
{
- "id":"6458f4b.5fda60c",
- "type":"other",
- "name":"CreateNetworkInstance",
- "xml":"<outcome value='CreateNetworkInstance'>",
- "comments":"",
- "outputs":1,
- "x":1130.515640258789,
- "y":294.7143363952637,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "76502e63.ceb1a",
+ "type": "other",
+ "name": "CreateNetworkInstance",
+ "xml": "<outcome value='CreateNetworkInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1097.000015258789,
+ "y": 295.7143363952637,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "84eb81e3.dcb2d"
+ "afc2e177.f42c"
]
]
},
{
- "id":"7c5ea13d.5b8e",
- "type":"other",
- "name":"Other",
- "xml":"<outcome value='Other'>",
- "comments":"",
- "outputs":1,
- "x":1084.515640258789,
- "y":344.7143363952637,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "1255dbb4.75c26c",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1051.000015258789,
+ "y": 345.7143363952637,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "f6d144fc.f801f8"
+ "dfb2157e.4f1ae"
]
]
},
{
- "id":"f6d144fc.f801f8",
- "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":1253.515640258789,
- "y":344.7143363952637,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "dfb2157e.4f1ae",
+ "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=create\" />\n",
+ "comments": "",
+ "x": 1220.000015258789,
+ "y": 345.7143363952637,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"84eb81e3.dcb2d",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">",
- "atomic":"true",
- "outputs":1,
- "x":1355.515640258789,
- "y":283.7143363952637,
- "z":"bc976c53.f1a79",
- "wires":[
- [
- "ef18ce39.3e51e"
+ "id": "afc2e177.f42c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1322.000015258789,
+ "y": 284.7143363952637,
+ "z": "32fe6314.d27544",
+ "wires": [
+ [
+ "d1354c61.d70e7"
]
]
},
{
- "id":"e0b5f19f.d9b45",
- "type":"comment",
- "name":"TODO: need to identify underlay or overlay",
- "info":"",
- "comments":"",
- "x":1100.087142944336,
- "y":243.42859649658203,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
- },
- {
- "id":"50315017.56b56",
- "type":"set",
- "name":"clear tmp-data",
- "xml":"<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n",
- "comments":"",
- "x":1808.2299346923828,
- "y":211.00002479553223,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
- },
- {
- "id":"1ffb5b62.b458c5",
- "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":1797.2299346923828,
- "y":301.0000247955322,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
- },
- {
- "id":"846be723.9405f8",
- "type":"switchNode",
- "name":"switch name",
- "xml":"<switch test=\"'$tmp.name'\">\n",
- "comments":"",
- "outputs":1,
- "x":1776.2299346923828,
- "y":395.0000247955322,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "26bdae61.564c5a",
+ "type": "set",
+ "name": "clear tmp-data",
+ "xml": "<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n",
+ "comments": "",
+ "x": 1774.7143096923828,
+ "y": 212.00002479553223,
+ "z": "32fe6314.d27544",
+ "wires": []
+ },
+ {
+ "id": "395e8b66.7b0f1c",
+ "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": 1763.7143096923828,
+ "y": 302.0000247955322,
+ "z": "32fe6314.d27544",
+ "wires": []
+ },
+ {
+ "id": "84048547.624768",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"'$tmp.name'\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1742.7143096923828,
+ "y": 396.0000247955322,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "45932bf.e6c01d4",
- "39a76082.5cc54",
- "6eae96bd.b54598",
- "fa0caaec.e45618",
- "ca5c1826.4817d8",
- "7792e369.1908ac",
- "13678c40.7cc714",
- "a2732629.f76cc8",
- "f2c5c3f2.76097",
- "54ca3e0b.56d18",
- "681149f1.d61ef8",
- "4bc98b71.a2aa84",
- "aff0f172.9ddbc",
- "d8ad234.fa86ce",
- "705971b7.939b3",
- "c8386139.7bc31",
- "382fe5b2.be669a"
+ "91870d3c.00766",
+ "9673ceac.9d128",
+ "2fa6afd4.470c68",
+ "208a2db6.5cd29a",
+ "a6950835.4f1f88",
+ "f6a60960.64ec1",
+ "3f6ebe83.24fb02",
+ "6691ccb6.43ba2c",
+ "3e734965.e53836",
+ "7c1d0f2f.d390d8",
+ "90835e79.55fda",
+ "98d98d4e.90457",
+ "c55ddc64.709ea",
+ "d3d96688.947678",
+ "de824513.d08848",
+ "bd1ecf5f.f7c2b",
+ "499053bc.575afc"
]
]
},
{
- "id":"45932bf.e6c01d4",
- "type":"outcome",
- "name":"NULL",
- "xml":"<outcome value=''>",
- "comments":"",
- "outputs":1,
- "x":2315.801223754883,
- "y":898,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "91870d3c.00766",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2282.285598754883,
+ "y": 899,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "6a1da75c.dff4f8"
+ "49ed5fbd.14e1c8"
]
]
},
{
- "id":"6a1da75c.dff4f8",
- "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":2490.801223754883,
- "y":897,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "49ed5fbd.14e1c8",
+ "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": 2457.285598754883,
+ "y": 898,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"39a76082.5cc54",
- "type":"other",
- "name":"name",
- "xml":"<outcome value='name'>",
- "comments":"",
- "outputs":1,
- "x":2292.801223754883,
- "y":20,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "9673ceac.9d128",
+ "type": "other",
+ "name": "name",
+ "xml": "<outcome value='name'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2259.285598754883,
+ "y": 21,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"6eae96bd.b54598",
- "type":"other",
- "name":"service-type",
- "xml":"<outcome value='service-type'>",
- "comments":"",
- "outputs":1,
- "x":2295.801223754883,
- "y":87,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "2fa6afd4.470c68",
+ "type": "other",
+ "name": "service-type",
+ "xml": "<outcome value='service-type'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2262.285598754883,
+ "y": 88,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"13678c40.7cc714",
- "type":"other",
- "name":"sna2_name",
- "xml":"<outcome value='sna2_name'>",
- "comments":"",
- "outputs":1,
- "x":2299.801223754883,
- "y":316,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "3f6ebe83.24fb02",
+ "type": "other",
+ "name": "sna2_name",
+ "xml": "<outcome value='sna2_name'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2266.285598754883,
+ "y": 317,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"fa0caaec.e45618",
- "type":"other",
- "name":"site1-name",
- "xml":"<outcome value='site1-name'>",
- "comments":"",
- "outputs":1,
- "x":2296.801223754883,
- "y":148,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "208a2db6.5cd29a",
+ "type": "other",
+ "name": "site1-name",
+ "xml": "<outcome value='site1-name'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2263.285598754883,
+ "y": 149,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"ca5c1826.4817d8",
- "type":"other",
- "name":"site2-name",
- "xml":"<outcome value='site2-name'>",
- "comments":"",
- "outputs":1,
- "x":2292.801223754883,
- "y":205,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "a6950835.4f1f88",
+ "type": "other",
+ "name": "site2-name",
+ "xml": "<outcome value='site2-name'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2259.285598754883,
+ "y": 206,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"7792e369.1908ac",
- "type":"other",
- "name":"sna1_name",
- "xml":"<outcome value='sna1_name'>",
- "comments":"",
- "outputs":1,
- "x":2295.801223754883,
- "y":262,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "f6a60960.64ec1",
+ "type": "other",
+ "name": "sna1_name",
+ "xml": "<outcome value='sna1_name'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2262.285598754883,
+ "y": 263,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"a2732629.f76cc8",
- "type":"other",
- "name":"pe1_id",
- "xml":"<outcome value='pe1_id'>",
- "comments":"",
- "outputs":1,
- "x":2299.801223754883,
- "y":367,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "6691ccb6.43ba2c",
+ "type": "other",
+ "name": "pe1_id",
+ "xml": "<outcome value='pe1_id'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2266.285598754883,
+ "y": 368,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"f2c5c3f2.76097",
- "type":"other",
- "name":"pe2_id",
- "xml":"<outcome value='pe2_id'>",
- "comments":"",
- "outputs":1,
- "x":2302.801223754883,
- "y":415,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "3e734965.e53836",
+ "type": "other",
+ "name": "pe2_id",
+ "xml": "<outcome value='pe2_id'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2269.285598754883,
+ "y": 416,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"54ca3e0b.56d18",
- "type":"other",
- "name":"ac1-id",
- "xml":"<outcome value='ac1-id'>",
- "comments":"",
- "outputs":1,
- "x":2307.801223754883,
- "y":464,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "7c1d0f2f.d390d8",
+ "type": "other",
+ "name": "ac1-id",
+ "xml": "<outcome value='ac1-id'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2274.285598754883,
+ "y": 465,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"681149f1.d61ef8",
- "type":"other",
- "name":"ac2-id",
- "xml":"<outcome value='ac2-id'>",
- "comments":"",
- "outputs":1,
- "x":2309.801223754883,
- "y":519,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "90835e79.55fda",
+ "type": "other",
+ "name": "ac2-id",
+ "xml": "<outcome value='ac2-id'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2276.285598754883,
+ "y": 520,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"4bc98b71.a2aa84",
- "type":"other",
- "name":"ac1-ip",
- "xml":"<outcome value='ac1-ip'>",
- "comments":"",
- "outputs":1,
- "x":2309.801223754883,
- "y":571,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "98d98d4e.90457",
+ "type": "other",
+ "name": "ac1-ip",
+ "xml": "<outcome value='ac1-ip'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2276.285598754883,
+ "y": 572,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"aff0f172.9ddbc",
- "type":"other",
- "name":"ac2-ip",
- "xml":"<outcome value='ac2-ip'>",
- "comments":"",
- "outputs":1,
- "x":2311.801223754883,
- "y":632,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "c55ddc64.709ea",
+ "type": "other",
+ "name": "ac2-ip",
+ "xml": "<outcome value='ac2-ip'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2278.285598754883,
+ "y": 633,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"d8ad234.fa86ce",
- "type":"other",
- "name":"ac1_peer_ip",
- "xml":"<outcome value='ac1_peer_ip'>",
- "comments":"",
- "outputs":1,
- "x":2313.801223754883,
- "y":682,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "d3d96688.947678",
+ "type": "other",
+ "name": "ac1_peer_ip",
+ "xml": "<outcome value='ac1_peer_ip'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2280.285598754883,
+ "y": 683,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"705971b7.939b3",
- "type":"other",
- "name":"ac2_peer_ip",
- "xml":"<outcome value='ac2_peer_ip'>",
- "comments":"",
- "outputs":1,
- "x":2309.801223754883,
- "y":730,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "de824513.d08848",
+ "type": "other",
+ "name": "ac2_peer_ip",
+ "xml": "<outcome value='ac2_peer_ip'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2276.285598754883,
+ "y": 731,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"c8386139.7bc31",
- "type":"other",
- "name":"ac1_svlan",
- "xml":"<outcome value='ac1_svlan'>",
- "comments":"",
- "outputs":1,
- "x":2311.801223754883,
- "y":783,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "bd1ecf5f.f7c2b",
+ "type": "other",
+ "name": "ac1_svlan",
+ "xml": "<outcome value='ac1_svlan'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2278.285598754883,
+ "y": 784,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"382fe5b2.be669a",
- "type":"other",
- "name":"ac2_svlan",
- "xml":"<outcome value='ac2_svlan'>",
- "comments":"",
- "outputs":1,
- "x":2313.801223754883,
- "y":844,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "499053bc.575afc",
+ "type": "other",
+ "name": "ac2_svlan",
+ "xml": "<outcome value='ac2_svlan'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2280.285598754883,
+ "y": 845,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "4a695b88.fdc594"
+ "560f8ff1.549fe8"
]
]
},
{
- "id":"69b449f8.e0c4f8",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">",
- "atomic":"true",
- "outputs":1,
- "x":310.0870590209961,
- "y":1012.8572435379028,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "4023bbbc.b8c3c4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 276.5714340209961,
+ "y": 1013.8572435379028,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "d5f90944.52fe68",
- "f019a10f.84bba"
+ "97e7ce10.7c85b8",
+ "9dc996b.23ff3e8"
]
]
},
{
- "id":"d5f90944.52fe68",
- "type":"other",
- "name":"DeleteNetworkInstance",
- "xml":"<outcome value='DeleteNetworkInstance'>",
- "comments":"",
- "outputs":1,
- "x":325.8013496398926,
- "y":1068.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "97e7ce10.7c85b8",
+ "type": "other",
+ "name": "DeleteNetworkInstance",
+ "xml": "<outcome value='DeleteNetworkInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 292.2857246398926,
+ "y": 1069.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "1ad15265.c666ae"
+ "841c3464.e35208"
]
]
},
{
- "id":"f019a10f.84bba",
- "type":"other",
- "name":"Other",
- "xml":"<outcome value='Other'>",
- "comments":"",
- "outputs":1,
- "x":279.8013496398926,
- "y":1118.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "9dc996b.23ff3e8",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 246.28572463989258,
+ "y": 1119.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "b5aedf37.5b6ec"
+ "6b8e362b.376518"
]
]
},
{
- "id":"b5aedf37.5b6ec",
- "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":448.8013496398926,
- "y":1118.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "6b8e362b.376518",
+ "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 DeleteNetworkInstance for svc-action=delete\" />\n",
+ "comments": "",
+ "x": 415.2857246398926,
+ "y": 1119.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"1ad15265.c666ae",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">",
- "atomic":"true",
- "outputs":1,
- "x":550.8013496398926,
- "y":1057.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "841c3464.e35208",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 517.2857246398926,
+ "y": 1058.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "916b52b.b2dacb"
+ "abf4d6e7.91759"
]
]
},
{
- "id":"916b52b.b2dacb",
- "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":372.8013496398926,
- "y":1212.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "abf4d6e7.91759",
+ "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": 339.2857246398926,
+ "y": 1213.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "48a15b4b.da9c94"
+ "4d50d8cc.46e0a"
]
]
},
{
- "id":"48a15b4b.da9c94",
- "type":"block",
- "name":"block",
- "xml":"<block>\n",
- "atomic":"false",
- "comments":"",
- "outputs":1,
- "x":365.8013496398926,
- "y":1297.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "4d50d8cc.46e0a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 332.2857246398926,
+ "y": 1298.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "c6022f0d.42d06"
+ "5c906df.eb09894"
]
]
},
{
- "id":"c6022f0d.42d06",
- "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":548.8013496398926,
- "y":1290.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "5c906df.eb09894",
+ "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": 515.2857246398926,
+ "y": 1291.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "235fbeb1.629a02"
+ "1e0b11b0.0c1596"
]
]
},
{
- "id":"235fbeb1.629a02",
- "type":"outcomeTrue",
- "name":"true",
- "xml":"<outcome value='true'>\n",
- "comments":"",
- "outputs":1,
- "x":729.8013496398926,
- "y":1289.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "1e0b11b0.0c1596",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 696.2857246398926,
+ "y": 1290.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "9c3a3b86.66d288"
+ "6bd99898.8a25c8"
]
]
},
{
- "id":"9c3a3b86.66d288",
- "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":893.8013496398926,
- "y":1289.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "6bd99898.8a25c8",
+ "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": 860.2857246398926,
+ "y": 1290.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "7bc8b1f4.9d2b8"
+ "2612c750.3f1de"
]
]
},
{
- "id":"7bc8b1f4.9d2b8",
- "type":"outcome",
- "name":"NULL",
- "xml":"<outcome value=''>",
- "comments":"",
- "outputs":1,
- "x":762.8013496398926,
- "y":1413.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "2612c750.3f1de",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 729.2857246398926,
+ "y": 1414.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "457d6f04.16b53"
+ "27237901.158d7e"
]
]
},
{
- "id":"457d6f04.16b53",
- "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":941.2300643920898,
- "y":1414.8572072982788,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "27237901.158d7e",
+ "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": 907.7144393920898,
+ "y": 1415.8572072982788,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"50f9a48d.e072dc",
- "type":"outcome",
- "name":"activate",
- "xml":"<outcome value='activate'>\n",
- "comments":"",
- "outputs":1,
- "x":373.9441947937012,
- "y":538.7619791030884,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "a9f01ff9.d40278",
+ "type": "outcome",
+ "name": "activate",
+ "xml": "<outcome value='activate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 340.4285697937012,
+ "y": 539.7619791030884,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "90da72db.f3e38"
+ "24b1be4.4b9cb42"
]
]
},
{
- "id":"90da72db.f3e38",
- "type":"switchNode",
- "name":"switch request-action",
- "xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
- "comments":"",
- "outputs":1,
- "x":556.8013610839844,
- "y":535.9048290252686,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "24b1be4.4b9cb42",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 523.2857360839844,
+ "y": 536.9048290252686,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "e1518316.05556",
- "e5ae8d2b.cedcd"
+ "534344f8.99bd8c",
+ "3efa7868.7d6d6"
]
]
},
{
- "id":"e1518316.05556",
- "type":"other",
- "name":"ActivateNetworkInstance",
- "xml":"<outcome value='ActivateNetworkInstance'>",
- "comments":"",
- "outputs":1,
- "x":822.8013610839844,
- "y":494.90482902526855,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "534344f8.99bd8c",
+ "type": "other",
+ "name": "ActivateNetworkInstance",
+ "xml": "<outcome value='ActivateNetworkInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 789.2857360839844,
+ "y": 495.90482902526855,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "d9a3c7f4.4c0498"
+ "dbc11e26.b1b04"
]
]
},
{
- "id":"e5ae8d2b.cedcd",
- "type":"other",
- "name":"Other",
- "xml":"<outcome value='Other'>",
- "comments":"",
- "outputs":1,
- "x":776.8013610839844,
- "y":544.9048290252686,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "3efa7868.7d6d6",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 743.2857360839844,
+ "y": 545.9048290252686,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "ca95078e.01fd58"
+ "7054bbc2.d71e3c"
]
]
},
{
- "id":"ca95078e.01fd58",
- "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":945.8013610839844,
- "y":544.9048290252686,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "7054bbc2.d71e3c",
+ "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": 912.2857360839844,
+ "y": 545.9048290252686,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"d9a3c7f4.4c0498",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">",
- "atomic":"true",
- "outputs":1,
- "x":1047.8013610839844,
- "y":483.90482902526855,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "dbc11e26.b1b04",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1014.2857360839844,
+ "y": 484.90482902526855,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "de9d0bad.f413c8"
+ "bae11bcf.54b4c8"
]
]
},
{
- "id":"e5333ad2.88c6a8",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">",
- "atomic":"true",
- "outputs":1,
- "x":542.515625,
- "y":608.7620029449463,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "4bb419b5.b0e6e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 509,
+ "y": 609.7620029449463,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "22ce90c5.e5b49",
- "52bb2fe2.e66a7"
+ "15adf5d0.a38402",
+ "a37cc3b4.9b7a68"
]
]
},
{
- "id":"22ce90c5.e5b49",
- "type":"other",
- "name":"DeactivateNetworkInstance",
- "xml":"<outcome value='DeactivateNetworkInstance'>",
- "comments":"",
- "outputs":1,
- "x":639.6585159301758,
- "y":686.1905641555786,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "15adf5d0.a38402",
+ "type": "other",
+ "name": "DeactivateNetworkInstance",
+ "xml": "<outcome value='DeactivateNetworkInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 606.1428909301758,
+ "y": 687.1905641555786,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "53c38c61.a27c24"
+ "a95baf99.9c4a6"
]
]
},
{
- "id":"52bb2fe2.e66a7",
- "type":"other",
- "name":"Other",
- "xml":"<outcome value='Other'>",
- "comments":"",
- "outputs":1,
- "x":593.6585159301758,
- "y":736.1905641555786,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "a37cc3b4.9b7a68",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 560.1428909301758,
+ "y": 737.1905641555786,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "d9cf8575.0f9368"
+ "77245576.2c267c"
]
]
},
{
- "id":"d9cf8575.0f9368",
- "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":762.6585159301758,
- "y":736.1905641555786,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "77245576.2c267c",
+ "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 DeactivateNetworkInstance for svc-action=deactivate\" />\n",
+ "comments": "",
+ "x": 729.1428909301758,
+ "y": 737.1905641555786,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"53c38c61.a27c24",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">",
- "atomic":"true",
- "outputs":1,
- "x":864.6585159301758,
- "y":675.1905641555786,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "a95baf99.9c4a6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 831.1428909301758,
+ "y": 676.1905641555786,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "a4cdd306.8c69b"
+ "3994558.cdec22a"
]
]
},
{
- "id":"a4cdd306.8c69b",
- "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":686.6585159301758,
- "y":830.1905641555786,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "3994558.cdec22a",
+ "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": 653.1428909301758,
+ "y": 831.1905641555786,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "864af6c.1a7ea08"
+ "a7f759b2.2be768"
]
]
},
{
- "id":"864af6c.1a7ea08",
- "type":"block",
- "name":"block",
- "xml":"<block>\n",
- "atomic":"false",
- "comments":"",
- "outputs":1,
- "x":968.2299575805664,
- "y":803.7619962692261,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "a7f759b2.2be768",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 934.7143325805664,
+ "y": 804.7619962692261,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "d3a2495e.6d4c48"
+ "c9fb60d0.70a518"
]
]
},
{
- "id":"d3a2495e.6d4c48",
- "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":984.0871505737305,
- "y":859.6191473007202,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "c9fb60d0.70a518",
+ "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": 950.5715255737305,
+ "y": 860.6191473007202,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "bb342c57.b05fa"
+ "56941bc3.f5be04"
]
]
},
{
- "id":"bb342c57.b05fa",
- "type":"outcomeTrue",
- "name":"true",
- "xml":"<outcome value='true'>\n",
- "comments":"",
- "outputs":1,
- "x":1165.0871505737305,
- "y":858.6191473007202,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "56941bc3.f5be04",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1131.5715255737305,
+ "y": 859.6191473007202,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "552390de.1e8c"
+ "35a7f799.be48f"
]
]
},
{
- "id":"552390de.1e8c",
- "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":1241.9442596435547,
- "y":937.1905860900879,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "35a7f799.be48f",
+ "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": 1208.4286346435547,
+ "y": 938.1905860900879,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "6d879fa9.4e09f"
+ "ba107d78.943578"
]
]
},
{
- "id":"6d879fa9.4e09f",
- "type":"outcome",
- "name":"NULL",
- "xml":"<outcome value=''>",
- "comments":"",
- "outputs":1,
- "x":1150.9442024230957,
- "y":1021.1905422210693,
- "z":"bc976c53.f1a79",
- "wires":[
+ "id": "ba107d78.943578",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1117.4285774230957,
+ "y": 1022.1905422210693,
+ "z": "32fe6314.d27544",
+ "wires": [
[
- "70a14092.36e2f"
+ "b43b580a.2bbc7"
]
]
},
{
- "id":"70a14092.36e2f",
- "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":1329.372917175293,
- "y":1022.1905422210693,
- "z":"bc976c53.f1a79",
- "wires":[
-
- ]
+ "id": "b43b580a.2bbc7",
+ "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": 1295.857292175293,
+ "y": 1023.1905422210693,
+ "z": "32fe6314.d27544",
+ "wires": []
},
{
- "id":"de9d0bad.f413c8",
- "type":"call",
- "name":"call validate-overlay-network-input-parameters",
- "xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-overlay-network-input-parameters' mode='sync' >\n",
- "comments":"",
- "outputs":1,
- "x":1355.6666946411133,
- "y":485.3333520889282,
- "z":"bc976c53.f1a79",
- "wires":[
- [
-
- ]
+ "id": "bae11bcf.54b4c8",
+ "type": "call",
+ "name": "call validate-overlay-network-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-overlay-network-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1322.1510696411133,
+ "y": 486.3333520889282,
+ "z": "32fe6314.d27544",
+ "wires": [
+ []
]
}
-] \ No newline at end of file
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.json
index 7ebf552e..02bab6d6 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.json
@@ -81,7 +81,7 @@
"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}'>",
+ "xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
"outputs":1,
"x":332.95237731933594,
"y":80.90474319458008,
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
index a13d6497..ebd32db5 100644
--- 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
@@ -1,6 +1,6 @@
<?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">
+<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="dci-connects-network-topology-operation-activate" mode="sync">
<block atomic="true">
<call module="GENERIC-RESOURCE-API" rpc="validate-network-input-parameters" mode="sync" />
<block atomic="true">
@@ -39,10 +39,58 @@
</outcome>
</switch>
<switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_importRT1'`">
- <outcome value="true" />
+ <outcome value="true">
+ <block atomic="true">
+ <set>
+ <parameter name="tmp.dci-connects.evpn_irts.original" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split">
+ <parameter name="original_string" value="`$tmp.dci-connects.evpn_irts.original`" />
+ <parameter name="regex" value="," />
+ <parameter name="ctx_memory_result_key" value="tmp.dci-connects.evpn_irts" />
+ <outcome value="success">
+ <for index="idx" start="0" end="`$tmp.dci-connects.evpn_irts_length`">
+ <set>
+ <parameter name="prop.dci-connects.evpn_irts[$idx]" value="`$tmp.dci-connects.evpn_irts[$idx]`" />
+ </set>
+ </for>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
</switch>
<switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_exportRT1'`">
- <outcome value="true" />
+ <outcome value="true">
+ <block atomic="true">
+ <set>
+ <parameter name="tmp.dci-connects.evpn_erts.original" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split">
+ <parameter name="original_string" value="`$tmp.dci-connects.evpn_erts.original`" />
+ <parameter name="regex" value="," />
+ <parameter name="ctx_memory_result_key" value="tmp.dci-connects.evpn_erts" />
+ <outcome value="success">
+ <for index="idx" start="0" end="`$tmp.dci-connects.evpn_erts_length`">
+ <set>
+ <parameter name="prop.dci-connects.evpn_erts[$idx]" value="`$tmp.dci-connects.evpn_erts[$idx]`" />
+ </set>
+ </for>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
</switch>
<switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_vni'`">
<outcome value="true">
@@ -143,10 +191,58 @@
</outcome>
</switch>
<switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_importRT1'`">
- <outcome value="true" />
+ <outcome value="true">
+ <block atomic="true">
+ <set>
+ <parameter name="tmp.dci-connects.evpn_irts.original" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split">
+ <parameter name="original_string" value="`$tmp.dci-connects.evpn_irts.original`" />
+ <parameter name="regex" value="," />
+ <parameter name="ctx_memory_result_key" value="tmp.dci-connects.evpn_irts" />
+ <outcome value="success">
+ <for index="idx" start="0" end="`$tmp.dci-connects.evpn_irts_length`">
+ <set>
+ <parameter name="prop.dci-connects.evpn_irts[$idx]" value="`$tmp.dci-connects.evpn_irts[$idx]`" />
+ </set>
+ </for>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
</switch>
<switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_exportRT1'`">
- <outcome value="true" />
+ <outcome value="true">
+ <block atomic="true">
+ <set>
+ <parameter name="tmp.dci-connects.evpn_erts.original" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split">
+ <parameter name="original_string" value="`$tmp.dci-connects.evpn_erts.original`" />
+ <parameter name="regex" value="," />
+ <parameter name="ctx_memory_result_key" value="tmp.dci-connects.evpn_erts" />
+ <outcome value="success">
+ <for index="idx" start="0" end="`$tmp.dci-connects.evpn_erts_length`">
+ <set>
+ <parameter name="prop.dci-connects.evpn_erts[$idx]" value="`$tmp.dci-connects.evpn_erts[$idx]`" />
+ </set>
+ </for>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
</switch>
<switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_vni'`">
<outcome value="true">
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-create.xml
index e24a9ef3..08a49199 100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-create.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-create.xml
@@ -1,142 +1,382 @@
-<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-create' 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="esr-thirdparty-sdnc"
- key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND
- depth = '1'"
- pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >
-
-<outcome value='success'>
-<block atomic="true"></block></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="Network model is_bound_to_vpn=true but no vpn_binding is present" />
-
-</return></outcome><outcome value='Other'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Unexpected error retrieving vpn binding" />
-
-</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.l3vpn.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 == 'service-type'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.service-type' 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 == 'topology'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.topology' 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 == 'technology'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.technology' 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_name'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.site1_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 == 'site2_name'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.site2_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 == 'sna1_name'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.sna1_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 == 'sna2_name'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.sna2_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 == 'pe1_id'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.pe1_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 == 'pe2_id'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.pe2_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 == 'ac1_id'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac1_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 == 'ac2_id'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac2_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 == 'ac1_ip'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac1_ip' 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 == 'ac2_ip'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac2_ip' 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 == 'ac1_peer_ip'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac1_peer_ip' 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 == 'ac2_peer_ip'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac2_peer_ip' 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 == 'ac1_svlan'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac1_svlan' 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 == 'ac2_svlan'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac2_svlan' 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 == 'ac1_protocol'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac1_protocol' 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 == 'ac2_protocol'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.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 == 'ac1_protocol_bgp_as'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac1_protocol_bgp_as' 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 == 'ac2_protocol_bgp_as'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.ac1_protocol_bgp_as' 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 == 'af_type'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.af_type' 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.l3vpn.vpn-policy-id"/>
-<outcome value='failure'>
-<return status='failure'>
-<parameter name='error-code' value='' />
-<parameter name='error-message' value="An error occured while generation vpn policy ID" />
-</return></outcome></execute><execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
-<parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'"/>
-<parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services'"/>
-<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><execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
-<parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3smsitetemplate.json'"/>
-<parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/sites'"/>
-<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></block></method></service-logic> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<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-create" mode="sync">
+ <block atomic="true">
+ <call module="GENERIC-RESOURCE-API" rpc="validate-network-input-parameters" mode="sync" />
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="esr-thirdparty-sdnc" key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-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="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Network model is_bound_to_vpn=true but no vpn_binding is present" />
+ </return>
+ </outcome>
+ <outcome value="Other">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Unexpected error retrieving vpn binding" />
+ </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.l3vpn.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 == 'service-type'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.service-type" 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 == 'topology'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.topology" 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 == 'technology'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.technology" 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_name'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.site1_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 == 'site2_name'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.site2_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 == 'sna1_name'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.sna1_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 == 'sna2_name'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.sna2_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 == 'pe1_id'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.pe1_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 == 'pe2_id'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.pe2_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 == 'ac1_id'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac1_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 == 'ac2_id'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac2_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 == 'ac1_ip'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac1_ip" 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 == 'ac2_ip'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac2_ip" 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 == 'ac1_peer_ip'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac1_peer_ip" 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 == 'ac2_peer_ip'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac2_peer_ip" 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 == 'ac1_svlan'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac1_svlan" 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 == 'ac2_svlan'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac2_svlan" 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 == 'ac1_protocol'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac1_protocol" 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 == 'ac2_protocol'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac2_protocol" 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 == 'ac1_route'`">
+ <outcome value="true">
+ <block atomic="true">
+ <set>
+ <parameter name="prop.l3vpn.ac1_route" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split">
+ <parameter name="original_string" value="`$prop.l3vpn.ac1-route`" />
+ <parameter name="regex" value=" ## " />
+ <parameter name="ctx_memory_result_key" value="route1" />
+ <outcome value="success">
+ <set>
+ <parameter name="prop.l3vpn.sna1-route.ip-prefix" value="`$route1[0]`" />
+ <parameter name="prop.l3vpn.sna1-route.next-hop" value="`$route1[1]`" />
+ </set>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_route'`">
+ <outcome value="true">
+ <block atomic="true">
+ <set>
+ <parameter name="prop.l3vpn.ac2_route" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="split">
+ <parameter name="original_string" value="`$prop.l3vpn.ac2-route`" />
+ <parameter name="regex" value=" ## " />
+ <parameter name="ctx_memory_result_key" value="route2" />
+ <outcome value="success">
+ <set>
+ <parameter name="prop.l3vpn.sna2-route.ip-prefix" value="`$route2[0]`" />
+ <parameter name="prop.l3vpn.sna2-route.next-hop" value="`$route2[1]`" />
+ </set>
+ </outcome>
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac1_protocol_bgp_as'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac1_protocol_bgp_as" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ <parameter name="prop.l3vpn.peer1-ip" value="`$prop.l3vpn.ac1_ip`" />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'ac2_protocol_bgp_as'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.ac2_protocol_bgp_as" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ <parameter name="prop.l3vpn.peer2-ip" value="`$prop.l3vpn.ac2_ip`" />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'af_type'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.af_type" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="generateUUID">
+ <parameter name="ctx-destination" value="prop.l3vpn.vpn-policy1-id" />
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while generation vpn policy ID" />
+ </return>
+ </outcome>
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="generateUUID">
+ <parameter name="ctx-destination" value="prop.l3vpn.vpn-policy2-id" />
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while generation vpn policy ID" />
+ </return>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name="prop.l3vpn.entry1-id" value="1" />
+ <parameter name="prop.l3vpn.entry2-id" value="1" />
+ </set>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="generateUUID">
+ <parameter name="ctx-destination" value="prop.l3vpn.vrf1-id" />
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while generation vpn policy ID" />
+ </return>
+ </outcome>
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="generateUUID">
+ <parameter name="ctx-destination" value="prop.l3vpn.vrf2-id" />
+ <outcome value="failure">
+ <return status="failure">
+ <parameter name="error-code" value="" />
+ <parameter name="error-message" value="An error occured while generation vpn policy ID" />
+ </return>
+ </outcome>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic.log" />
+ <parameter name="Time" value="__TIMESTAMP__" />
+ <parameter name="Method" value="network-topology-operation-create" />
+ <parameter name="SubMethod" value="L3VPN-Config" />
+ <parameter name="l3vpn_name" value="`$prop.l3vpn.name`" />
+ <parameter name="topology" value="`$prop.l3vpn.topology`" />
+ <parameter name="site1_name" value="`$prop.l3vpn.site1_name`" />
+ <parameter name="vpn-policy1-id" value="`$prop.l3vpn.vpn-policy1-id}`" />
+ <parameter name="l3vpn.entry1-id" value="`$prop.l3vpn.entry1-id`" />
+ <parameter name="sna1_name" value="`$prop.l3vpn.sna1_name`" />
+ <parameter name="pe1_id" value="`$prop.l3vpn.pe1_id`" />
+ <parameter name="ac1_id" value="`$prop.l3vpn.ac1_id`" />
+ <parameter name="sna1_svlan" value="`$prop.l3vpn.sna1_svlan`" />
+ <parameter name="ac1-peer-ip" value="`$prop.l3vpn.ac1-peer-ip`" />
+ <parameter name="ac1-ip" value="`$prop.l3vpn.ac1-ip`" />
+ <parameter name="ac1_protocol" value="`$prop.l3vpn.ac1_protocol`" />
+ <parameter name="sna1-route-ip-prefix" value="`$prop.l3vpn.sna1-route-ip-prefix`" />
+ <parameter name="sna1-route-next-hop" value="`$prop.l3vpn.sna1-route-next-hop`" />
+ <parameter name="peer2-ip" value="`$prop.l3vpn.peer2-ip`" />
+ <parameter name="ac2_protocol_bgp_as" value="`$prop.l3vpn.ac2_protocol_bgp_as`" />
+ <parameter name="vrf1-id" value="`$prop.l3vpn.vrf1-id`" />
+ <parameter name="site2_name" value="`$prop.l3vpn.site2_name`" />
+ <parameter name="vpn-policy2-id" value="`$prop.l3vpn.vpn-policy2-id}`" />
+ <parameter name="l3vpn.entry2-id" value="`$prop.l3vpn.entry2-id`" />
+ <parameter name="sna2_name" value="`$prop.l3vpn.sna2_name`" />
+ <parameter name="pe2_id" value="`$prop.l3vpn.pe2_id`" />
+ <parameter name="ac2_id" value="`$prop.l3vpn.ac2_id`" />
+ <parameter name="sna2_svlan" value="`$prop.l3vpn.sna2_svlan`" />
+ <parameter name="ac2-peer-ip" value="`$prop.l3vpn.ac2-peer-ip`" />
+ <parameter name="ac2-ip" value="`$prop.l3vpn.ac2-ip`" />
+ <parameter name="ac2_protocol" value="`$prop.l3vpn.ac2_protocol`" />
+ <parameter name="sna2-route-ip-prefix" value="`$prop.l3vpn.sna2-route-ip-prefix`" />
+ <parameter name="sna2-route-next-hop" value="`$prop.l3vpn.sna2-route-next-hop`" />
+ <parameter name="peer2-ip" value="`$prop.l3vpn.peer2-ip`" />
+ <parameter name="ac2_protocol_bgp_as" value="`$prop.l3vpn.ac2_protocol_bgp_as`" />
+ <parameter name="vrf2-id" value="`$prop.l3vpn.vrf2-id`" />
+ <parameter name="af_type" value="`$prop.l3vpn.af_type`" />
+ </record>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`">
+ <outcome value="l3vpn-ipwan">
+ <block atomic="true">
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'" />
+ <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services'" />
+ <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>
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'" />
+ <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services'" />
+ <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>
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'" />
+ <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services'" />
+ <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>
+ </block>
+ </outcome>
+ <outcome value="true">
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3smsitetemplate.json'" />
+ <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url" />
+ <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="Other">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Unexpected error retrieving vpn binding" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-delete.xml
index ca5fa9df..019f4dab 100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-delete.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-delete.xml
@@ -1,47 +1,64 @@
-<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-delete' mode='sync'>
-<block atomic="true">
-<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >
-</call><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.l3vpn.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 == 'service-type'`">
-<outcome value='true'>
-<set>
-<parameter name='prop.l3vpn.service-type' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />
-</set></outcome></switch></block></for><get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="esr-thirdparty-sdnc"
- key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND
- depth = '1'"
- pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >
-
-<outcome value='success'>
-<block atomic="true"></block></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="Network model is_bound_to_vpn=true but no vpn_binding is present" />
-
-</return></outcome><outcome value='Other'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Unexpected error retrieving vpn binding" />
-
-</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.l3vpn.service-type`">
-<outcome value='l3vpn-ipwan'>
-<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
-<parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'"/>
-<parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services/vpnservice='+$prop.l3vpn.name'"/>
-<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="delete"/>
-<parameter name="responsePrefix" value="restapi-result"/></execute></outcome></switch></block></method></service-logic> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<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-delete" mode="sync">
+ <block atomic="true">
+ <call module="GENERIC-RESOURCE-API" rpc="validate-network-input-parameters" mode="sync" />
+ <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.l3vpn.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 == 'service-type'`">
+ <outcome value="true">
+ <set>
+ <parameter name="prop.l3vpn.service-type" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="esr-thirdparty-sdnc" key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-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="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Network model is_bound_to_vpn=true but no vpn_binding is present" />
+ </return>
+ </outcome>
+ <outcome value="Other">
+ <return status="failure">
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Unexpected error retrieving vpn binding" />
+ </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.l3vpn.service-type`">
+ <outcome value="l3vpn-ipwan">
+ <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest">
+ <parameter name="templateFileName" value="$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'" />
+ <parameter name="restapiUrl" value="$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services/vpnservice='+$prop.l3vpn.name'" />
+ <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="delete" />
+ <parameter name="responsePrefix" value="restapi-result" />
+ </execute>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml
index cb82d329..00848f98 100755
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml
@@ -1,109 +1,201 @@
-<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' mode='sync'>
-<block atomic="true"><call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' >
-</call><switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>
-<outcome value='assign'>
-<block atomic="true"><call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' >
-</call></block></outcome><outcome value='activate'>
-<block atomic="true"><switch test='`$service-data.networks.network_length`'>
-<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.network-request-input.network-id not found in service-data" />
-</return></outcome><outcome value='Other'>
-<block atomic="true"><for index='nidx' start='0' end='`$service-data.networks.network_length`' >
-<switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
-
-<outcome value='true'>
-<set>
-<parameter name='tmp.nidx' value='`$nidx`' />
-<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />
-</set></outcome></switch></for><switch test="`$tmp.nidx`">
-
-<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.network-request-input.network-id not found in service-data" />
-</return></outcome></switch></block></outcome></switch><switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>
-<outcome value='PendingCreate'>
-<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' >
-</call></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 is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" /></return></outcome></switch></block></outcome><outcome value='deactivate'>
-<block atomic="true"><switch test='`$service-data.networks.network_length`'>
-<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.network-request-input.network-id not found in service-data" />
-</return></outcome><outcome value='Other'>
-<block atomic="true"><for index='nidx' start='0' end='`$service-data.networks.network_length`' >
-<switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
-
-<outcome value='true'>
-<set>
-<parameter name='tmp.nidx' value='`$nidx`' />
-<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />
-</set></outcome></switch></for><switch test="`$tmp.nidx`">
-
-<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.network-request-input.network-id not found in service-data" />
-</return></outcome></switch></block></outcome></switch><switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>
-<outcome value='Created'>
-<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' >
-</call></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 is not in appropriate state for deactivate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" /></return></outcome></switch></block></outcome><outcome value='unassign'>
-<block atomic="true"><switch test='`$service-data.networks.network_length`'>
-<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.network-request-input.network-id not found in service-data" />
-</return></outcome><outcome value='Other'>
-<block atomic="true"><for index='nidx' start='0' end='`$service-data.networks.network_length`' >
-<switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
-
-<outcome value='true'>
-<set>
-<parameter name='tmp.nidx' value='`$nidx`' />
-<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />
-</set></outcome></switch></for><switch test="`$tmp.nidx`">
-
-<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.network-request-input.network-id not found in service-data" />
-</return></outcome></switch></block></outcome></switch><switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>
-<outcome value='PendingCreate'>
-<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >
-</call></outcome><outcome value='PendingDelete'>
-<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >
-</call></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 is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" /></return></outcome></switch></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="sdnc-request-header.svc-action is a required input" />
-</return></outcome><outcome value='create'>
-<block atomic="true"><call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' >
-</call></block></outcome><outcome value='delete'>
-<block atomic="true"><call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' >
-</call></block></outcome></switch><set>
-<parameter name="ack-final" value="Y"/></set><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>
+<?xml version="1.0" encoding="UTF-8"?>
+<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" mode="sync">
+ <block atomic="true">
+ <call module="GENERIC-RESOURCE-API" rpc="validate-network-input" mode="sync" />
+ <switch test="`$network-topology-operation-input.sdnc-request-header.svc-action`">
+ <outcome value="assign">
+ <block atomic="true">
+ <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-assign" mode="sync" />
+ </block>
+ </outcome>
+ <outcome value="activate">
+ <switch test="`$network-topology-operation-input.request-information.request-action`">
+ <outcome value="ActivateDCINetworkInstance">
+ <call module="GENERIC-RESOURCE-API" rpc="dci-connects-network-topology-operation-activate" mode="sync" />
+ </outcome>
+ <outcome value="other">
+ <block atomic="true">
+ <switch test="`$service-data.networks.network_length`">
+ <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.network-request-input.network-id not found in service-data" />
+ </return>
+ </outcome>
+ <outcome value="Other">
+ <block atomic="true">
+ <for index="nidx" start="0" end="`$service-data.networks.network_length`">
+ <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
+ <outcome value="true">
+ <set>
+ <parameter name="tmp.nidx" value="`$nidx`" />
+ <parameter name="ctx.network-data." value="`$service-data.networks.network[$nidx].`" />
+ </set>
+ </outcome>
+ </switch>
+ </for>
+ <switch test="`$tmp.nidx`">
+ <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.network-request-input.network-id not found in service-data" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`">
+ <outcome value="PendingCreate">
+ <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-activate" mode="sync" />
+ </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 is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value="deactivate">
+ <switch test="`$network-topology-operation-input.request-information.request-action`">
+ <outcome value="DeActivateDCINetworkInstance">
+ <call module="GENERIC-RESOURCE-API" rpc="dci-connects-network-topology-operation-deactivate" mode="sync" />
+ </outcome>
+ <outcome value="other">
+ <block atomic="true">
+ <switch test="`$service-data.networks.network_length`">
+ <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.network-request-input.network-id not found in service-data" />
+ </return>
+ </outcome>
+ <outcome value="Other">
+ <block atomic="true">
+ <for index="nidx" start="0" end="`$service-data.networks.network_length`">
+ <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
+ <outcome value="true">
+ <set>
+ <parameter name="tmp.nidx" value="`$nidx`" />
+ <parameter name="ctx.network-data." value="`$service-data.networks.network[$nidx].`" />
+ </set>
+ </outcome>
+ </switch>
+ </for>
+ <switch test="`$tmp.nidx`">
+ <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.network-request-input.network-id not found in service-data" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`">
+ <outcome value="Created">
+ <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-deactivate" mode="sync" />
+ </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 is not in appropriate state for deactivate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value="unassign">
+ <block atomic="true">
+ <switch test="`$service-data.networks.network_length`">
+ <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.network-request-input.network-id not found in service-data" />
+ </return>
+ </outcome>
+ <outcome value="Other">
+ <block atomic="true">
+ <for index="nidx" start="0" end="`$service-data.networks.network_length`">
+ <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
+ <outcome value="true">
+ <set>
+ <parameter name="tmp.nidx" value="`$nidx`" />
+ <parameter name="ctx.network-data." value="`$service-data.networks.network[$nidx].`" />
+ </set>
+ </outcome>
+ </switch>
+ </for>
+ <switch test="`$tmp.nidx`">
+ <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.network-request-input.network-id not found in service-data" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`">
+ <outcome value="PendingCreate">
+ <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-unassign" mode="sync" />
+ </outcome>
+ <outcome value="PendingDelete">
+ <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-unassign" mode="sync" />
+ </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 is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" />
+ </return>
+ </outcome>
+ </switch>
+ </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="sdnc-request-header.svc-action is a required input" />
+ </return>
+ </outcome>
+ <outcome value="create">
+ <block atomic="true">
+ <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-create" mode="sync" />
+ </block>
+ </outcome>
+ <outcome value="delete">
+ <block atomic="true">
+ <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-delete" mode="sync" />
+ </block>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name="ack-final" value="Y" />
+ </set>
+ <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 56325af1..367abdfa 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,319 +1,319 @@
<?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="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">
- <call module="GENERIC-RESOURCE-API" rpc="validate-overlay-network-input-parameters" mode="sync" />
- </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
+<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="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="create">
+ <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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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.param '+ $tmp.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=create" />
+ </return>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value="activate">
+ <switch test="`$network-topology-operation-input.request-information.request-action`">
+ <outcome value="ActivateNetworkInstance">
+ <block atomic="true">
+ <call module="GENERIC-RESOURCE-API" rpc="validate-overlay-network-input-parameters" mode="sync" />
+ </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 DeactivateNetworkInstance for svc-action=deactivate" />
+ </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 DeleteNetworkInstance for svc-action=delete" />
+ </return>
+ </outcome>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.xml
index 38671516..11461f37 100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-overlay-network-input-parameters.xml
@@ -1,249 +1,249 @@
<?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="validate-overlay-network-input-parameters" mode="sync">
- <for index="idx" start="0" end="`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`">
- <block atomic="true">
- <block>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.name" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.name`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site1_id" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site1_id`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site2_id" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site2_id`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_networkName'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site1_networkName" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site1_networkName`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_networkName'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site2_networkName" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site2_networkName`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_routerId'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site1_routerId" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site1_routerId`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_importRT1'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site1_importRT1" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site1_importRT1`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_importRT1'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site2_importRT1" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site2_importRT1`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_exportRT1'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site1_exportRT1" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site1_exportRT1`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_exportRT2'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site1_exportRT2" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site1_exportRT2`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_vni'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site1_vni" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site1_vni`">
- <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>
- <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_vni'`">
- <outcome value="true">
- <set>
- <parameter name="validate.dci-connects.site2_vni" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
- </set>
- <switch test="`$validate.dci-connects.site2_vni`">
- <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>
- <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>
- <switch test="`$validate.dci-connects.tunnelType`">
- <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>
- <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="requiredParameters">
- <parameter name="$validate.dci-connects.name" value="" />
- <parameter name="$validate.dci-connects.site1_id" value="" />
- <parameter name="$validate.dci-connects.site2_id" value="" />
- <parameter name="$validate.dci-connects.site1_networkName" value="" />
- <parameter name="$validate.dci-connects.site2_networkName" value="" />
- <parameter name="$validate.dci-connects.site1_importRT1" value="" />
- <parameter name="$validate.dci-connects.site2_importRT1" value="" />
- <parameter name="$validate.dci-connects.site1_exportRT1" value="" />
- <parameter name="$validate.dci-connects.site2_exportRT1" value="" />
- <parameter name="$validate.dci-connects.site1_vni" value="" />
- <parameter name="$validate.dci-connects.site2_vni" value="" />
- <parameter name="$validate.dci-connects.tunnelType" value="" />
- </execute>
- <switch test="`$validate.dci-connects.tunnelType`">
- <outcome value="L3-DCI">
- <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="requiredParameters">
- <parameter name="$network-topology-operation-input.network-request-input.network-input-parameters.site1_routerId" value="" />
- <parameter name="$network-topology-operation-input.network-request-input.network-input-parameters.site2_routerId" value="" />
- </execute>
- </outcome>
- <outcome value="L2-DCI" />
- <outcome value="other">
- <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>
- </block>
- </for>
- </method>
+<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="validate-overlay-network-input-parameters" mode="sync">
+ <for index="idx" start="0" end="`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`">
+ <block atomic="true">
+ <block>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.name" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.name`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site1_id" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site1_id`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site2_id" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site2_id`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_networkName'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site1_networkName" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site1_networkName`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_networkName'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site2_networkName" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site2_networkName`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_routerId'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site1_routerId" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site1_routerId`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_importRT1'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site1_importRT1" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site1_importRT1`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_importRT1'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site2_importRT1" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site2_importRT1`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_exportRT1'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site1_exportRT1" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site1_exportRT1`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_exportRT2'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site1_exportRT2" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site1_exportRT2`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_vni'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site1_vni" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site1_vni`">
+ <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>
+ <switch test="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_vni'`">
+ <outcome value="true">
+ <set>
+ <parameter name="validate.dci-connects.site2_vni" value="`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`" />
+ </set>
+ <switch test="`$validate.dci-connects.site2_vni`">
+ <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>
+ <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>
+ <switch test="`$validate.dci-connects.tunnelType`">
+ <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>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="requiredParameters">
+ <parameter name="$validate.dci-connects.name" value="" />
+ <parameter name="$validate.dci-connects.site1_id" value="" />
+ <parameter name="$validate.dci-connects.site2_id" value="" />
+ <parameter name="$validate.dci-connects.site1_networkName" value="" />
+ <parameter name="$validate.dci-connects.site2_networkName" value="" />
+ <parameter name="$validate.dci-connects.site1_importRT1" value="" />
+ <parameter name="$validate.dci-connects.site2_importRT1" value="" />
+ <parameter name="$validate.dci-connects.site1_exportRT1" value="" />
+ <parameter name="$validate.dci-connects.site2_exportRT1" value="" />
+ <parameter name="$validate.dci-connects.site1_vni" value="" />
+ <parameter name="$validate.dci-connects.site2_vni" value="" />
+ <parameter name="$validate.dci-connects.tunnelType" value="" />
+ </execute>
+ <switch test="`$validate.dci-connects.tunnelType`">
+ <outcome value="L3-DCI">
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="requiredParameters">
+ <parameter name="$network-topology-operation-input.network-request-input.network-input-parameters.site1_routerId" value="" />
+ <parameter name="$network-topology-operation-input.network-request-input.network-input-parameters.site2_routerId" value="" />
+ </execute>
+ </outcome>
+ <outcome value="L2-DCI" />
+ <outcome value="other">
+ <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>
+ </block>
+ </for>
+ </method>
</service-logic> \ No newline at end of file