diff options
Diffstat (limited to 'platform-logic')
30 files changed, 18544 insertions, 8029 deletions
diff --git a/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json b/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json index ef453318..513289da 100644 --- a/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json +++ b/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json @@ -1,246 +1,249 @@ [ { - "id": "3492b641.0dfbba", + "id": "1473da35.b14246", "type": "other", "name": "update", "xml": "<outcome value='Update'>\n", "comments": "", "outputs": 1, - "x": 673, + "x": 630.0000991821289, "y": 276.6667003631592, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "f2d65f4a.d687" + "9e41086f.f40978" ] ] }, { - "id": "668a1af1.719b34", + "id": "63d9b444.fbeb4c", "type": "other", "name": "delete", "xml": "<outcome value='delete'>\n", "comments": "", "outputs": 1, - "x": 709.2221145629883, + "x": 666.2222137451172, "y": 478.33349609375, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "3b8ddbef.903fa4" + "cf4516fc.415338" ] ] }, { - "id": "3b8ddbef.903fa4", + "id": "cf4516fc.415338", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 859.6667594909668, + "x": 816.6668586730957, "y": 473.3335485458374, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [] ] }, { - "id": "c0cbee48.6a5f9", + "id": "aa391e7d.06c04", "type": "comment", "name": "TODO: Delete topology from AAI", "info": "", "comments": "", - "x": 817.3334274291992, + "x": 774.3335266113281, "y": 429.0001735687256, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [] }, { - "id": "d3c03070.16287", + "id": "7e2d4ad0.53ea04", "type": "switchNode", "name": "switch aai-event-trigger", "xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n", "comments": "", "outputs": 1, - "x": 465.5555648803711, + "x": 422.5556640625, "y": 345.2222261428833, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "3492b641.0dfbba", - "668a1af1.719b34" + "1473da35.b14246", + "63d9b444.fbeb4c" ] ] }, { - "id": "6bfaf616.869108", + "id": "4718051e.d2c46c", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1267.333755493164, + "x": 1224.333854675293, "y": 270.1112537384033, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "c706e157.72486", - "4130ca8.c1efa34" + "d85bb5b1.82c4d8", + "e3be6aaa.e1c308", + "3b1c8725.0fcfb8" ] ] }, { - "id": "f4c114b8.d66028", + "id": "e3be6aaa.e1c308", "type": "execute", "name": "execute RestApiCallNode Get token", "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>", "comments": "", "outputs": 1, - "x": 1523.993263244629, + "x": 1480.9933624267578, "y": 132.0305051803589, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "fafa0167.57f14", - "c8836a7f.1ba7f8" + "6a112654.2ffd58", + "b242d748.545378" ] ] }, { - "id": "fafa0167.57f14", + "id": "6a112654.2ffd58", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1758.993263244629, + "x": 1715.9933624267578, "y": 110.03050518035889, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "bd59ffd7.cdf9" + "e5b3fd51.2397c" ] ] }, { - "id": "c8836a7f.1ba7f8", + "id": "b242d748.545378", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1751.243263244629, + "x": 1708.2433624267578, "y": 163.67338848114014, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "8505bfec.1c327" + "71cf21cf.2814e" ] ] }, { - "id": "bd59ffd7.cdf9", + "id": "e5b3fd51.2397c", "type": "set", "name": "set token-id", "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n", "comments": "", - "x": 1912.993263244629, - "y": 111.03050518035889, - "z": "cbb28df7.1359", + "x": 1875.9934921264648, + "y": 104.03051090240479, + "z": "8cb5d046.a5aaf", "wires": [] }, { - "id": "c706e157.72486", + "id": "d910de32.e62ae", "type": "execute", "name": "execute RestApiCallNode Get Topology", "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\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=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"topology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", "comments": "", "outputs": 1, - "x": 1527.3266906738281, - "y": 225.73424291610718, - "z": "cbb28df7.1359", + "x": 1929.3267669677734, + "y": 293.2342710494995, + "z": "8cb5d046.a5aaf", "wires": [ [ - "87479d00.dc1c9", - "c2d07026.26d52" + "3dc2b196.085a9e", + "c53d2802.f6ecf8" ] ] }, { - "id": "87479d00.dc1c9", + "id": "3dc2b196.085a9e", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1785.882022857666, - "y": 203.73422479629517, - "z": "cbb28df7.1359", + "x": 2244.8823013305664, + "y": 322.2342777252197, + "z": "8cb5d046.a5aaf", "wires": [ [ - "3aa58504.f6229a" + "94766aa2.652398" ] ] }, { - "id": "3aa58504.f6229a", + "id": "94766aa2.652398", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "comments": "", "outputs": 1, - "x": 1961.4375534057617, - "y": 201.40094709396362, - "z": "cbb28df7.1359", + "x": 2428.437847137451, + "y": 316.90099835395813, + "z": "8cb5d046.a5aaf", "wires": [ - [] + [ + "c3e460ec.ed97f" + ] ] }, { - "id": "dca7d6ac.f501f8", + "id": "5ca06a0d.d6b0d4", "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=\"Error executing Create vpn rest api\" />\n", "comments": "", - "x": 1969.6598281860352, - "y": 275.6230607032776, - "z": "cbb28df7.1359", + "x": 2389.6601524353027, + "y": 225.12310695648193, + "z": "8cb5d046.a5aaf", "wires": [] }, { - "id": "c2d07026.26d52", + "id": "c53d2802.f6ecf8", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1791.3265075683594, - "y": 274.845290184021, - "z": "cbb28df7.1359", + "x": 2243.3268852233887, + "y": 226.34534358978271, + "z": "8cb5d046.a5aaf", "wires": [ [ - "dca7d6ac.f501f8" + "5ca06a0d.d6b0d4" ] ] }, { - "id": "7cae77af.f5b818", + "id": "3177a11f.85bf9e", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 105.9999008178711, - "y": 85, - "z": "cbb28df7.1359", + "x": 91, + "y": 62.50000333786011, + "z": "8cb5d046.a5aaf", "wires": [ [ - "b697d007.11e41" + "774441cb.70134" ] ] }, { - "id": "b697d007.11e41", + "id": "774441cb.70134", "type": "service-logic", "name": "DataChange ${project.version}", "module": "DataChange", @@ -248,208 +251,288 @@ "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='DataChange' version='${project.version}'>", "outputs": 1, - "x": 244.11102676391602, + "x": 201.11112594604492, "y": 126.44446134567261, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "49de6de0.6f78a4" + "5969d7b2.611c88" ] ] }, { - "id": "49de6de0.6f78a4", + "id": "5969d7b2.611c88", "type": "method", "name": "method esr-thirdparty-sdnc-discovery", "xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n", "comments": "", "outputs": 1, - "x": 340.5555877685547, + "x": 297.5556869506836, "y": 237.22224235534668, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "5f1e0612.f09808" + "70441765.9b30e8" ] ] }, { - "id": "5f1e0612.f09808", + "id": "70441765.9b30e8", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 248.77781677246094, + "x": 205.77791595458984, "y": 346.11122035980225, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "d3c03070.16287" + "7e2d4ad0.53ea04" ] ] }, { - "id": "4130ca8.c1efa34", + "id": "c3e460ec.ed97f", "type": "for", "name": "for each Network", "xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n", "comments": "", "outputs": 1, - "x": 1459.481460571289, - "y": 353.2221817970276, - "z": "cbb28df7.1359", + "x": 2202.4818229675293, + "y": 443.72221183776855, + "z": "8cb5d046.a5aaf", "wires": [ [ - "5ae402a2.fe5ffc" + "e5b6573.9876aa8" ] ] }, { - "id": "5ae402a2.fe5ffc", + "id": "e5b6573.9876aa8", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1649.4814224243164, - "y": 360.9999747276306, - "z": "cbb28df7.1359", + "x": 2392.4817848205566, + "y": 451.5000047683716, + "z": "8cb5d046.a5aaf", "wires": [ [ - "7d9ae4c3.21708c", - "f67aa4a3.311fc8" + "80a22745.8dc678", + "de6cf312.86823" ] ] }, { - "id": "7d9ae4c3.21708c", + "id": "80a22745.8dc678", "type": "call", "name": "call update-network-to-aai", "xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n", "comments": "", "outputs": 1, - "x": 1902.8148441314697, - "y": 424.33334493637085, - "z": "cbb28df7.1359", + "x": 2645.81520652771, + "y": 514.8333749771118, + "z": "8cb5d046.a5aaf", "wires": [ [] ] }, { - "id": "f67aa4a3.311fc8", + "id": "de6cf312.86823", "type": "set", "name": "set network", "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n", "comments": "", - "x": 1855.036964416504, - "y": 342.11108922958374, - "z": "cbb28df7.1359", + "x": 2598.037326812744, + "y": 432.6111192703247, + "z": "8cb5d046.a5aaf", "wires": [] }, { - "id": "8505bfec.1c327", + "id": "71cf21cf.2814e", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1912.8146591186523, + "x": 1869.8147583007812, "y": 158.77776765823364, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [] ] }, { - "id": "27eaeed1.46c512", + "id": "f641d4a3.15fe58", "type": "comment", "name": "Do Nothing", "info": "", "comments": "", - "x": 2048.3702328999834, + "x": 2005.3703320821123, "y": 157.66664340760974, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [] }, { - "id": "416dcc31.e9a444", + "id": "50cc0089.8c5b9", "type": "switchNode", "name": "switch type", "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n", "comments": "", "outputs": 1, - "x": 948.0001487731934, + "x": 905.0002479553223, "y": 279.00003147125244, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "7de88c94.fa0ca4", - "8ee217f7.3b1bd8" + "5f892fdd.7662a", + "1ec39cc9.6f7b33" ] ] }, { - "id": "f2d65f4a.d687", + "id": "9e41086f.f40978", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 802.9999847412109, + "x": 760.0000839233398, "y": 277.00002002716064, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "416dcc31.e9a444" + "50cc0089.8c5b9" ] ] }, { - "id": "7de88c94.fa0ca4", + "id": "5f892fdd.7662a", "type": "other", "name": "SOTN", "xml": "<outcome value='SOTN'>\n", "comments": "", "outputs": 1, - "x": 1101.9999313354492, + "x": 1059.0000305175781, "y": 235.00000190734863, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "6bfaf616.869108" + "4718051e.d2c46c" ] ] }, { - "id": "8ee217f7.3b1bd8", + "id": "1ec39cc9.6f7b33", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 1098.9999313354492, + "x": 1056.0000305175781, "y": 359.00000953674316, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [ [ - "c0794a5f.727638" + "57bc8339.f1a98c" ] ] }, { - "id": "c0794a5f.727638", + "id": "57bc8339.f1a98c", "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=\"`'Unsupported type = ' + $prop.sdncRestApi.type`\" />\n\n", "comments": "", - "x": 1247.7726364135742, + "x": 1204.7727355957031, "y": 358.43917751312256, - "z": "cbb28df7.1359", + "z": "8cb5d046.a5aaf", "wires": [] + }, + { + "id": "d85bb5b1.82c4d8", + "type": "execute", + "name": "execute Properties", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n", + "comments": "", + "outputs": 1, + "x": 1421.03125, + "y": 50.03125, + "z": "8cb5d046.a5aaf", + "wires": [ + [] + ] + }, + { + "id": "3b1c8725.0fcfb8", + "type": "switchNode", + "name": "switch prop.sdncRestApi.token_id", + "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n", + "comments": "", + "outputs": 1, + "x": 1474.5310821533203, + "y": 270.000036239624, + "z": "8cb5d046.a5aaf", + "wires": [ + [ + "51700151.3682f", + "56c8ba7a.de2b04" + ] + ] + }, + { + "id": "51700151.3682f", + "type": "other", + "name": "Null", + "xml": "<outcome value=''>\n", + "comments": "", + "outputs": 1, + "x": 1690.5312004089355, + "y": 242.00001335144043, + "z": "8cb5d046.a5aaf", + "wires": [ + [ + "f5ddce51.60077" + ] + ] + }, + { + "id": "56c8ba7a.de2b04", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 1689.5311393737793, + "y": 291.5000228881836, + "z": "8cb5d046.a5aaf", + "wires": [ + [ + "d910de32.e62ae" + ] + ] + }, + { + "id": "f5ddce51.60077", + "type": "execute", + "name": "execute RestApiCallNode Get Topology", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\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=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"topology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n", + "comments": "", + "outputs": 1, + "x": 1925.0311584472656, + "y": 239.03126525878906, + "z": "8cb5d046.a5aaf", + "wires": [ + [ + "c53d2802.f6ecf8", + "3dc2b196.085a9e" + ] + ] } -] +]
\ No newline at end of file diff --git a/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml index dcab41bd..0d47536e 100644 --- a/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml +++ b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml @@ -1,61 +1,122 @@ -<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='DataChange' version='${project.version}'>
- <method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>
- <block atomic="true">
- <switch test="`$data-change-notification-input.aai-event-trigger`">
- <outcome value='Update'>
- <block>
- <switch test="`$prop.sdncRestApi.type`">
- <outcome value='SOTN'>
- <block atomic="true">
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />
- <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="get"/>
- <parameter name="responsePrefix" value="topology"/>
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
- <parameter name="trustStorePassword" value="adminadmin"/>
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
- <parameter name="keyStorePassword" value="adminadmin"/>
- <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
- <outcome value='success'>
- <block atomic="true"></block>
- </outcome>
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing Create vpn rest api" />
- </return>
- </outcome>
- </execute>
- <for index='nidx' start='0' end='`$topology.networks.network_length`' >
- <block>
- <set>
- <parameter name='network.' value='`$topology.networks.network[$nidx].`' />
- </set>
- <call module='DataChange' rpc='update-network-to-aai' mode='sync' ></call>
- </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="`'Unsupported type = ' + $prop.sdncRestApi.type`" />
- </return>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='delete'>
- <block atomic="true"></block>
- </outcome>
- </switch>
- </block>
- </method>
-</service-logic>
+<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='DataChange' version='${project.version}'> + <method rpc='esr-thirdparty-sdnc-discovery' mode='sync'> + <block atomic="true"> + <switch test="`$data-change-notification-input.aai-event-trigger`"> + <outcome value='Update'> + <block> + <switch test="`$prop.sdncRestApi.type`"> + <outcome value='SOTN'> + <block atomic="true"> + <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > + <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> + <parameter name='contextPrefix' value='prop' /> + </execute> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" /> + <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`" /> + <parameter name="format" value="json"/> + <parameter name="httpMethod" value="post"/> + <parameter name="responsePrefix" value="token-result"/> + <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/> + <parameter name="trustStorePassword" value="adminadmin"/> + <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/> + <parameter name="keyStorePassword" value="adminadmin"/> + <outcome value='success'> + <set> + <parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' /> + </set> + </outcome> + <outcome value='failure'> + <block></block> + </outcome> + </execute> + <switch test="`$prop.sdncRestApi.token_id`"> + <outcome value=''> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" /> + <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="get"/> + <parameter name="responsePrefix" value="topology"/> + <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/> + <parameter name="trustStorePassword" value="adminadmin"/> + <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/> + <parameter name="keyStorePassword" value="adminadmin"/> + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="Error executing Create vpn rest api" /> + </return> + </outcome> + <outcome value='success'> + <block atomic="true"> + <for index='nidx' start='0' end='`$topology.networks.network_length`' > + <block> + <set> + <parameter name='network.' value='`$topology.networks.network[$nidx].`' /> + </set> + <call module='DataChange' rpc='update-network-to-aai' mode='sync' ></call> + </block> + </for> + </block> + </outcome> + </execute> + </outcome> + <outcome value='Other'> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" /> + <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="get"/> + <parameter name="responsePrefix" value="topology"/> + <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/> + <parameter name="trustStorePassword" value="adminadmin"/> + <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/> + <parameter name="keyStorePassword" value="adminadmin"/> + <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" /> + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="Error executing Create vpn rest api" /> + </return> + </outcome> + <outcome value='success'> + <block atomic="true"> + <for index='nidx' start='0' end='`$topology.networks.network_length`' > + <block> + <set> + <parameter name='network.' value='`$topology.networks.network[$nidx].`' /> + </set> + <call module='DataChange' rpc='update-network-to-aai' mode='sync' ></call> + </block> + </for> + </block> + </outcome> + </execute> + </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="`'Unsupported type = ' + $prop.sdncRestApi.type`" /> + </return> + </outcome> + </switch> + </block> + </outcome> + <outcome value='delete'> + <block atomic="true"></block> + </outcome> + </switch> + </block> + </method> +</service-logic>
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name.json index 4a279f09..4c7c450c 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-generate-name.json @@ -1 +1,2936 @@ -[{"id":"c4ce007.7b129","type":"dgstart","name":"DGSTART","outputs":1,"x":97.14286041259766,"y":40,"z":"b22c2.15bfad3f","wires":[["74a63714.63b758"]]},{"id":"74a63714.63b758","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":360.2857131958008,"y":40.99999237060547,"z":"b22c2.15bfad3f","wires":[["d4c7e1b6.2ad85"]]},{"id":"d4c7e1b6.2ad85","type":"method","name":"self-serve-generate-name","xml":"<method rpc='self-serve-generate-name' mode='sync'>\n","comments":"","outputs":1,"x":181.78575134277344,"y":82.24999237060547,"z":"b22c2.15bfad3f","wires":[["cfe52f65.5535"]]},{"id":"cfe52f65.5535","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":107.57142639160156,"y":129.8571310043335,"z":"b22c2.15bfad3f","wires":[["8099c568.0dd2c8","3e2de6cd.f09e3a","8b25e032.8d67","9ec0993b.7d83a8"]]},{"id":"fdf5e60c.f09e68","type":"execute","name":"execute replace extra comma","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',}' />\n <parameter name='replacement' value='}' />","comments":"","outputs":1,"x":1472.8574142456055,"y":662.9047241210938,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"8099c568.0dd2c8","type":"set","name":"set tmp.naming-data-payload","xml":"<set>\n<parameter name='tmp.naming-data-payload' value='{"elements":[' />\n","comments":"","x":377.2857131958008,"y":130.99999237060547,"z":"b22c2.15bfad3f","wires":[]},{"id":"8db1f1d0.889c2","type":"for","name":"for vnf-parameters-data","xml":"<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n","comments":"","outputs":1,"x":1180.6431884765625,"y":261.9522695541382,"z":"b22c2.15bfad3f","wires":[["76abf200.64f74"]]},{"id":"76abf200.64f74","type":"switchNode","name":"switch capability-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>\n","comments":"","outputs":1,"x":1423.500244140625,"y":261.9522695541382,"z":"b22c2.15bfad3f","wires":[["4fc42546.c7923c"]]},{"id":"4fc42546.c7923c","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1604.214599609375,"y":261.9522542953491,"z":"b22c2.15bfad3f","wires":[["9358aee1.552be"]]},{"id":"44e392ad.5f9e9c","type":"for","name":"for vnf-parameters-data","xml":"<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key_length`' >\n","comments":"","outputs":1,"x":1442.3573760986328,"y":472.2380657196045,"z":"b22c2.15bfad3f","wires":[["442917e.1449de8"]]},{"id":"150413ba.3a991c","type":"set","name":"set payload data","xml":"<set>\n<parameter name=\"tmp.naming-data-payload\" value=\"`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value + '",'`\"/>","comments":"","x":2044.8573760986328,"y":470.2380657196045,"z":"b22c2.15bfad3f","wires":[]},{"id":"fb551b70.bbcfd8","type":"set","name":"set set payload data","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '{'`\" />","comments":"","x":1439.8575286865234,"y":398.09515953063965,"z":"b22c2.15bfad3f","wires":[]},{"id":"84fc62c9.d846d","type":"set","name":"set payload data","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '},'`\" />","comments":"","x":1439.8573760986328,"y":534.2380657196045,"z":"b22c2.15bfad3f","wires":[]},{"id":"2adc5948.429c06","type":"set","name":"set close payload list","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + ']}'`\" />","comments":"","x":1445.8573760986328,"y":599.2380657196045,"z":"b22c2.15bfad3f","wires":[]},{"id":"c86e8ec5.6d05a","type":"execute","name":"execute replace extra comma","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',]' />\n <parameter name='replacement' value=']' />","comments":"","outputs":1,"x":1475.8574142456055,"y":716.9047241210938,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"e7512765.70ab08","type":"execute","name":"execute NameGenerationNode-unassign","xml":"<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.UnAssignNameNode' method='process'>\n <parameter name='payload' value='`$tmp.naming-data-payload`' />\n <parameter name=\"prifix\" value=\"nameGenResponse\" />\n","comments":"","outputs":1,"x":1501.8574600219727,"y":873.9047050476074,"z":"b22c2.15bfad3f","wires":[["4bd0e3a9.e47e4c","b9f63e2.3d0d1c"]]},{"id":"4bd0e3a9.e47e4c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1776.8574600219727,"y":823.9047050476074,"z":"b22c2.15bfad3f","wires":[["3d7f663e.d5a46a"]]},{"id":"66b30001.521a6","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=\"Error from NameGenerationNode Unassign\" />\n","comments":"","x":2141.8574600219727,"y":923.9047050476074,"z":"b22c2.15bfad3f","wires":[]},{"id":"b9f63e2.3d0d1c","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1781.8574600219727,"y":922.9047050476074,"z":"b22c2.15bfad3f","wires":[["3d7f663e.d5a46a"]]},{"id":"3d7f663e.d5a46a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1939.8574600219727,"y":867.9047050476074,"z":"b22c2.15bfad3f","wires":[["e3c19ba8.0685b8","66b30001.521a6"]]},{"id":"e3c19ba8.0685b8","type":"set","name":"set status as FAILED","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />","comments":"","x":2155.8574600219727,"y":814.9047050476074,"z":"b22c2.15bfad3f","wires":[]},{"id":"cfca1bae.4e2338","type":"not-found","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":922.3809585571289,"y":1363.6190185546875,"z":"b22c2.15bfad3f","wires":[["d6788c5c.85547"]]},{"id":"ed79ddfe.5695e","type":"switchNode","name":"switch resource-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].name == $jsonContextPrefix.elements[$n].resource-name`'>\n","comments":"","outputs":1,"x":1698.5241088867188,"y":1172.5715217590332,"z":"b22c2.15bfad3f","wires":[["5bde4585.5c467c"]]},{"id":"5bde4585.5c467c","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1890.5241088867188,"y":1171.5715217590332,"z":"b22c2.15bfad3f","wires":[["73e68674.4f6478"]]},{"id":"73e68674.4f6478","type":"set","name":"set set payload data","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].value`' value=\"`$jsonContextPrefix.elements[$n].resource-value`\" />\n","comments":"","x":2077.0241088867188,"y":1171.5715217590332,"z":"b22c2.15bfad3f","wires":[]},{"id":"af2e44ec.d5ca68","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"nameGenResponse.response-payload\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":1457.5241012573242,"y":1075.5715141296387,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"cfa5bed4.470d4","type":"for","name":"for response elements","xml":"<for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >\n","comments":"","outputs":1,"x":1450.5241012573242,"y":1171.5715141296387,"z":"b22c2.15bfad3f","wires":[["ed79ddfe.5695e"]]},{"id":"9358aee1.552be","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1158.8573837280273,"y":398.23800468444824,"z":"b22c2.15bfad3f","wires":[["fb551b70.bbcfd8","44e392ad.5f9e9c","84fc62c9.d846d","2adc5948.429c06","fdf5e60c.f09e68","e7512765.70ab08","af2e44ec.d5ca68","f8642b4c.442a28","cfa5bed4.470d4","c86e8ec5.6d05a","831182f9.da8ba","6e81bfa6.fad7","e0959eaf.ac5c9"]]},{"id":"f8642b4c.442a28","type":"set","name":"set status as DELETED","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='DELETED' />","comments":"","x":1455.5241012573242,"y":1125.5715141296387,"z":"b22c2.15bfad3f","wires":[]},{"id":"c5bdb33e.c0ce1","type":"execute","name":"execute replace extra comma","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',}' />\n <parameter name='replacement' value='}' />","comments":"","outputs":1,"x":2046.5238075256348,"y":1671.8091049194336,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"1b8fd08a.24f62f","type":"for","name":"for vnf-parameters-data","xml":"<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key_length`' >\n","comments":"","outputs":1,"x":2176.3093032836914,"y":1485.5236206054688,"z":"b22c2.15bfad3f","wires":[["21c8061a.df5eba"]]},{"id":"21c8061a.df5eba","type":"set","name":"set payload data","xml":"<set>\n<parameter name=\"tmp.naming-data-payload\" value=\"`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value + '",'`\"/>","comments":"","x":2405.8093032836914,"y":1485.5236206054688,"z":"b22c2.15bfad3f","wires":[]},{"id":"f50fa797.e44b78","type":"set","name":"set payload data","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '{'`\" />","comments":"","x":2157.2377700805664,"y":1424.238037109375,"z":"b22c2.15bfad3f","wires":[]},{"id":"46bd5518.2d0dbc","type":"set","name":"set payload data","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '},'`\" />","comments":"","x":2158.8093032836914,"y":1541.5236206054688,"z":"b22c2.15bfad3f","wires":[]},{"id":"56eeda86.d5a534","type":"set","name":"set close payload list","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + ']}'`\" />","comments":"","x":2021.5238075256348,"y":1628.8090438842773,"z":"b22c2.15bfad3f","wires":[]},{"id":"41297214.951d5c","type":"execute","name":"execute replace extra comma","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',]' />\n <parameter name='replacement' value=']' />","comments":"","outputs":1,"x":2049.1906089782715,"y":1739.4758129119873,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"f348aff2.4bebc","type":"execute","name":"execute NameGenerationNode-assign","xml":"<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>\n <parameter name='payload' value='`$tmp.naming-data-payload`' />\n <parameter name=\"prifix\" value=\"nameGenResponse\" />\n","comments":"","outputs":1,"x":2078.857265472412,"y":1916.4756526947021,"z":"b22c2.15bfad3f","wires":[["69baa991.fa0e18","553561b9.6046e"]]},{"id":"69baa991.fa0e18","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2353.857265472412,"y":1866.4756526947021,"z":"b22c2.15bfad3f","wires":[["192a1f1f.be0e71"]]},{"id":"e5f50edb.091de","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=\"Error from NameGenerationNode Assign\" />\n","comments":"","x":2718.857265472412,"y":1966.4756526947021,"z":"b22c2.15bfad3f","wires":[]},{"id":"553561b9.6046e","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2358.857265472412,"y":1965.4756526947021,"z":"b22c2.15bfad3f","wires":[["192a1f1f.be0e71"]]},{"id":"192a1f1f.be0e71","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2516.857265472412,"y":1910.4756526947021,"z":"b22c2.15bfad3f","wires":[["2437a7ce.daf3f8","e5f50edb.091de"]]},{"id":"2437a7ce.daf3f8","type":"set","name":"set status as FAILED","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />","comments":"","x":2732.857265472412,"y":1857.4756526947021,"z":"b22c2.15bfad3f","wires":[]},{"id":"ce805e8b.46c19","type":"for","name":"for vnf-parameters-data","xml":"<for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n","comments":"","outputs":1,"x":2274.190517425537,"y":2209.8091365695,"z":"b22c2.15bfad3f","wires":[["b25c5460.a325a8"]]},{"id":"6aa66989.442c08","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"nameGenResponse.response-payload\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":2035.190517425537,"y":2111.8091365695,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"a601321b.c3fb9","type":"for","name":"for response elements","xml":"<for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >\n","comments":"","outputs":1,"x":2027.190517425537,"y":2208.8091365695,"z":"b22c2.15bfad3f","wires":[["ce805e8b.46c19"]]},{"id":"68abb658.8eedd8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1935.9523696899414,"y":1423.8092041015625,"z":"b22c2.15bfad3f","wires":[["f50fa797.e44b78","1b8fd08a.24f62f","46bd5518.2d0dbc"]]},{"id":"442917e.1449de8","type":"switchNode","name":"switch external-key","xml":"<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name == 'external-key'`\">\n","comments":"","outputs":1,"x":1680.8573760986328,"y":471.2380657196045,"z":"b22c2.15bfad3f","wires":[["d7d30379.9fac6"]]},{"id":"d7d30379.9fac6","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1864.8573760986328,"y":471.2380657196045,"z":"b22c2.15bfad3f","wires":[["150413ba.3a991c"]]},{"id":"3e2de6cd.f09e3a","type":"switchNode","name":"switch ss.capability-type","xml":"<switch test=\"`$ss.capability-type`\">\n","comments":"","outputs":1,"x":351.75000762939453,"y":1192.5714111328125,"z":"b22c2.15bfad3f","wires":[["cd6aee2c.8d999","8ae06020.3e6f5"]]},{"id":"cd6aee2c.8d999","type":"not-found","name":"vnf","xml":"<outcome value='vnf'>\n","comments":"","outputs":1,"x":513.3928604125977,"y":261.964262008667,"z":"b22c2.15bfad3f","wires":[["4ff90381.37c6dc"]]},{"id":"4ff90381.37c6dc","type":"switchNode","name":"switch ss.capability-action","xml":"<switch test=\"`$ss.capability-action`\">\n","comments":"","outputs":1,"x":722.2142715454102,"y":262.3214416503906,"z":"b22c2.15bfad3f","wires":[["1e263d13.66ebe3","cfca1bae.4e2338"]]},{"id":"1e263d13.66ebe3","type":"not-found","name":"unassign","xml":"<outcome value='unassign'>\n","comments":"","outputs":1,"x":967.6787261962891,"y":262.7380418777466,"z":"b22c2.15bfad3f","wires":[["8db1f1d0.889c2"]]},{"id":"59168f1e.642f2","type":"for","name":"for vnf-parameters-data","xml":"<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n","comments":"","outputs":1,"x":1331.3573379516602,"y":1423.0238647460938,"z":"b22c2.15bfad3f","wires":[["bf4aa8ff.7fb928"]]},{"id":"bf4aa8ff.7fb928","type":"switchNode","name":"switch capability-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>\n","comments":"","outputs":1,"x":1572.9643936157227,"y":1423.0238647460938,"z":"b22c2.15bfad3f","wires":[["1bade986.1e2976"]]},{"id":"1bade986.1e2976","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1765.6787490844727,"y":1423.0238647460938,"z":"b22c2.15bfad3f","wires":[["68abb658.8eedd8"]]},{"id":"c3399c9e.783d","type":"not-found","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":1015.9524307250977,"y":3454.333984375,"z":"b22c2.15bfad3f","wires":[["7251a52b.599a6c"]]},{"id":"ab99e9fd.1ae708","type":"execute","name":"execute replace extra comma","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',}' />\n <parameter name='replacement' value='}' />","comments":"","outputs":1,"x":1439.0237579345703,"y":3942.870348930359,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"9def63a4.806ca","type":"for","name":"for vf-module-parameters","xml":"<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key_length`' >\n","comments":"","outputs":1,"x":2240.7024307250977,"y":3575.333984375,"z":"b22c2.15bfad3f","wires":[["e34f91dd.a8b49"]]},{"id":"e34f91dd.a8b49","type":"set","name":"set payload data","xml":"<set>\n<parameter name=\"tmp.naming-data-payload\" value=\"`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value + '",'`\"/>","comments":"","x":2474.2024307250977,"y":3574.333984375,"z":"b22c2.15bfad3f","wires":[]},{"id":"20c0f5ca.83d79a","type":"set","name":"set set payload data","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '{'`\" />","comments":"","x":2223.2024307250977,"y":3521.333984375,"z":"b22c2.15bfad3f","wires":[]},{"id":"b6165507.aa3638","type":"set","name":"set payload data","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '},'`\" />","comments":"","x":2229.2024307250977,"y":3637.333984375,"z":"b22c2.15bfad3f","wires":[]},{"id":"fd45754c.3cf118","type":"set","name":"set close payload list","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + ']}'`\" />","comments":"","x":1409.0237579345703,"y":3891.870348930359,"z":"b22c2.15bfad3f","wires":[]},{"id":"3eddc60f.7f892a","type":"execute","name":"execute replace extra comma","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',]' />\n <parameter name='replacement' value=']' />","comments":"","outputs":1,"x":1435.023811340332,"y":3998.536747932434,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"a9a63c2d.dfa8d","type":"execute","name":"execute NameGenerationNode-assign","xml":"<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>\n <parameter name='payload' value='`$tmp.naming-data-payload`' />\n <parameter name=\"prifix\" value=\"nameGenResponse\" />\n","comments":"","outputs":1,"x":1459.3571090698242,"y":4142.203409194946,"z":"b22c2.15bfad3f","wires":[["a51de972.7513d8","f1311e3a.17146"]]},{"id":"a51de972.7513d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1734.3571090698242,"y":4092.2034091949463,"z":"b22c2.15bfad3f","wires":[["7034ba5c.a539b4"]]},{"id":"3115f18a.f319ce","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=\"Error from NameGenerationNode Assign\" />\n","comments":"","x":2099.357109069824,"y":4192.203409194946,"z":"b22c2.15bfad3f","wires":[]},{"id":"f1311e3a.17146","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1739.3571090698242,"y":4191.203409194946,"z":"b22c2.15bfad3f","wires":[["7034ba5c.a539b4"]]},{"id":"7034ba5c.a539b4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1897.3571090698242,"y":4136.203409194946,"z":"b22c2.15bfad3f","wires":[["3115f18a.f319ce","794481c7.a9c3c"]]},{"id":"794481c7.a9c3c","type":"set","name":"set status as FAILED","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />","comments":"","x":2113.357109069824,"y":4083.2034091949463,"z":"b22c2.15bfad3f","wires":[]},{"id":"82619cf0.ed8e5","type":"for","name":"for vf-module-parameters","xml":"<for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n","comments":"","outputs":1,"x":1649.0238189697266,"y":4424.87033367157,"z":"b22c2.15bfad3f","wires":[["95c53568.63cad8"]]},{"id":"1a8b3de8.742382","type":"set","name":"set param value and status","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' value=\"`$jsonContextPrefix.elements[$n].resource-value`\" />\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].resource-resolution-data.status`' value='SUCCESS' />","comments":"","x":2288.095245361328,"y":4423.870002746582,"z":"b22c2.15bfad3f","wires":[]},{"id":"f52fb4f8.3e1228","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"nameGenResponse.response-payload\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":1410.3572158813477,"y":4346.6318359375,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"fb63f3.a26f9c1","type":"for","name":"for response elements","xml":"<for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >\n","comments":"","outputs":1,"x":1408.0238189697266,"y":4424.87033367157,"z":"b22c2.15bfad3f","wires":[["82619cf0.ed8e5"]]},{"id":"7b2c452f.bbed6c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1999.2024307250977,"y":3521.333984375,"z":"b22c2.15bfad3f","wires":[["9def63a4.806ca","20c0f5ca.83d79a","b6165507.aa3638"]]},{"id":"feddb4fb.2f43b8","type":"for","name":"for vnf-parameters-data","xml":"<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n","comments":"","outputs":1,"x":1408.9999771118164,"y":3521.571533203125,"z":"b22c2.15bfad3f","wires":[["a0948cc.d0ac07"]]},{"id":"a0948cc.d0ac07","type":"switchNode","name":"switch capability-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>\n","comments":"","outputs":1,"x":1651.9999771118164,"y":3521.571533203125,"z":"b22c2.15bfad3f","wires":[["304201bb.a6f3ae"]]},{"id":"304201bb.a6f3ae","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1843.000099182129,"y":3521.571533203125,"z":"b22c2.15bfad3f","wires":[["7b2c452f.bbed6c"]]},{"id":"d6788c5c.85547","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1092.3928604125977,"y":1363.4285278320312,"z":"b22c2.15bfad3f","wires":[["59168f1e.642f2","75a1aba5.5433b4","ad773e1d.d8f96"]]},{"id":"75a1aba5.5433b4","type":"set","name":"set payload data","xml":"<set>\n\t<parameter name='tmp.naming-data-payload' value='{"elements":[' />","comments":"","x":1309.5713844299316,"y":1363.8570394515991,"z":"b22c2.15bfad3f","wires":[]},{"id":"ad773e1d.d8f96","type":"switchNode","name":"switch tmp.naming-data-payload is null","xml":"<switch test=\"`$tmp.naming-data-payload == ''`\">\n","comments":"","outputs":1,"x":1371.8572425842285,"y":1628.7141952514648,"z":"b22c2.15bfad3f","wires":[["a94916ca.5c1308"]]},{"id":"a94916ca.5c1308","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1615.8572425842285,"y":1628.7141952514648,"z":"b22c2.15bfad3f","wires":[["8e513724.c4a9b8"]]},{"id":"8e513724.c4a9b8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1782.8573036193848,"y":1628.7141342163086,"z":"b22c2.15bfad3f","wires":[["56eeda86.d5a534","c5bdb33e.c0ce1","41297214.951d5c","f348aff2.4bebc","6aa66989.442c08","a601321b.c3fb9","366bde97.29b202","66ad476.8898eb8","7215a9c2.ed4828"]]},{"id":"7251a52b.599a6c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1173.9999771118164,"y":3454.5712890625,"z":"b22c2.15bfad3f","wires":[["8f0a7d6b.a2582","feddb4fb.2f43b8","348a65da.c2171a"]]},{"id":"8f0a7d6b.a2582","type":"set","name":"set set payload data","xml":"<set>\n\t<parameter name='tmp.naming-data-payload' value='{"elements":[' />","comments":"","x":1396.9999771118164,"y":3453.5712890625,"z":"b22c2.15bfad3f","wires":[]},{"id":"348a65da.c2171a","type":"switchNode","name":"switch tmp.naming-data-payload is null","xml":"<switch test=\"`$tmp.naming-data-payload == ''`\">\n","comments":"","outputs":1,"x":1457.2500076293945,"y":3684.071533203125,"z":"b22c2.15bfad3f","wires":[["a3618e09.0890b"]]},{"id":"a3618e09.0890b","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1691.0000381469727,"y":3683.8212890625,"z":"b22c2.15bfad3f","wires":[["b7e4dbf.88fad28"]]},{"id":"b7e4dbf.88fad28","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1099.3214263916016,"y":3892.3575315475464,"z":"b22c2.15bfad3f","wires":[["fd45754c.3cf118","ab99e9fd.1ae708","3eddc60f.7f892a","a9a63c2d.dfa8d","f52fb4f8.3e1228","fb63f3.a26f9c1","95c6b4d5.214088","2b41e0a2.f2e29","119b4b23.3c64c5"]]},{"id":"831182f9.da8ba","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE namegeneration.node.UnAssignNameNode\"/>\n\n","comments":"","outputs":1,"x":1409.333381652832,"y":799.7619457244873,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"6e81bfa6.fad7","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER namegeneration.node.UnAssignNameNode\"/>\n\n","comments":"","outputs":1,"x":1406.0000495910645,"y":954.7619533538818,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"366bde97.29b202","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE namegeneration.node.AssignNameNode\"/>\n\n","comments":"","outputs":1,"x":1986.0001487731934,"y":1848.4760437011719,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"66ad476.8898eb8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER namegeneration.node.AssignNameNode\"/>\n\n","comments":"","outputs":1,"x":1982.6668167114258,"y":2003.4760513305664,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"2b41e0a2.f2e29","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER namegeneration.node.AssignNameNode\"/>\n\n","comments":"","outputs":1,"x":1362.9044876098633,"y":4237.619207382202,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"95c6b4d5.214088","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE namegeneration.node.AssignNameNode\"/>\n\n","comments":"","outputs":1,"x":1361.2380676269531,"y":4077.6190366744995,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"95c53568.63cad8","type":"switchNode","name":"switch resource-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].name == $jsonContextPrefix.elements[$n].resource-name`'>\n","comments":"","outputs":1,"x":1896.2857666015625,"y":4425.285499572754,"z":"b22c2.15bfad3f","wires":[["82128c8f.fd3b2"]]},{"id":"b25c5460.a325a8","type":"switchNode","name":"switch resource-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].name == $jsonContextPrefix.elements[$n].resource-name`'>\n","comments":"","outputs":1,"x":2521.2857704162598,"y":2209.571111679077,"z":"b22c2.15bfad3f","wires":[["dcd1a528.fd73b8"]]},{"id":"200df204.d45b3e","type":"set","name":"set param value and status","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' value=\"`$jsonContextPrefix.elements[$n].resource-value`\" />\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.status`' value='SUCCESS' />","comments":"","x":2908.8096885681152,"y":2208.2984409332275,"z":"b22c2.15bfad3f","wires":[]},{"id":"dcd1a528.fd73b8","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2705.57137298584,"y":2209.1425743103027,"z":"b22c2.15bfad3f","wires":[["200df204.d45b3e"]]},{"id":"82128c8f.fd3b2","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2086.285675048828,"y":4424.285530090332,"z":"b22c2.15bfad3f","wires":[["1a8b3de8.742382"]]},{"id":"c800abc8.8cf708","type":"execute","name":"execute replace extra comma","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',}' />\n <parameter name='replacement' value='}' />","comments":"","outputs":1,"x":1482.2857818603516,"y":2795.999464035034,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"234dc037.18d2d","type":"for","name":"for vnf-parameters-data","xml":"<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n","comments":"","outputs":1,"x":1250.4047622680664,"y":2359.3336181640625,"z":"b22c2.15bfad3f","wires":[["d9940efc.eae25"]]},{"id":"d9940efc.eae25","type":"switchNode","name":"switch capability-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>\n","comments":"","outputs":1,"x":1500.4047012329102,"y":2359.33349609375,"z":"b22c2.15bfad3f","wires":[["86e4dddd.844ea"]]},{"id":"86e4dddd.844ea","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1709.4048233032227,"y":2359.33349609375,"z":"b22c2.15bfad3f","wires":[["651d0c9e.3f6c74"]]},{"id":"f74e5c96.bb387","type":"for","name":"for vf-module-parameters","xml":"<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key_length`' >\n","comments":"","outputs":1,"x":1455.1190567016602,"y":2610.3330078125,"z":"b22c2.15bfad3f","wires":[["9023139f.bc3e1"]]},{"id":"f6f22c3.9d7f6d","type":"set","name":"set payload data","xml":"<set>\n<parameter name=\"tmp.naming-data-payload\" value=\"`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value + '",'`\"/>","comments":"","x":2057.61905670166,"y":2608.3330078125,"z":"b22c2.15bfad3f","wires":[]},{"id":"c007726a.119db","type":"set","name":"set set payload data","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '{'`\" />","comments":"","x":1452.6190567016602,"y":2533.3330078125,"z":"b22c2.15bfad3f","wires":[]},{"id":"f3b25876.a9cec8","type":"set","name":"set payload data","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '},'`\" />","comments":"","x":1452.6190567016602,"y":2672.3330078125,"z":"b22c2.15bfad3f","wires":[]},{"id":"73046d7d.c3e4d4","type":"set","name":"set close payload list","xml":"<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + ']}'`\" />","comments":"","x":1458.6190567016602,"y":2737.3330078125,"z":"b22c2.15bfad3f","wires":[]},{"id":"2774ec69.79d6a4","type":"execute","name":"execute replace extra comma","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',]' />\n <parameter name='replacement' value=']' />","comments":"","outputs":1,"x":1485.2857818603516,"y":2849.999464035034,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"a8204dd6.5c406","type":"execute","name":"execute NameGenerationNode-unassign","xml":"<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.UnAssignNameNode' method='process'>\n <parameter name='payload' value='`$tmp.naming-data-payload`' />\n <parameter name=\"prifix\" value=\"nameGenResponse\" />\n","comments":"","outputs":1,"x":1514.619125366211,"y":3008.6661348342896,"z":"b22c2.15bfad3f","wires":[["b9422270.f648e","21cb01d.494cbfe"]]},{"id":"b9422270.f648e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1789.619125366211,"y":2958.6661348342896,"z":"b22c2.15bfad3f","wires":[["f52add29.a2116"]]},{"id":"ababb3ad.ac03b","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=\"Error from NameGenerationNode Unassign\" />\n","comments":"","x":2140.333568572998,"y":3027.665928840637,"z":"b22c2.15bfad3f","wires":[]},{"id":"21cb01d.494cbfe","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1794.619125366211,"y":3057.6661348342896,"z":"b22c2.15bfad3f","wires":[["f52add29.a2116"]]},{"id":"f52add29.a2116","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1952.619125366211,"y":3002.6661348342896,"z":"b22c2.15bfad3f","wires":[["ababb3ad.ac03b","c3cb04de.fd9788"]]},{"id":"c3cb04de.fd9788","type":"set","name":"set status as FAILED","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />","comments":"","x":2161.9524536132812,"y":2981.3329582214355,"z":"b22c2.15bfad3f","wires":[]},{"id":"6820e3be.5057ec","type":"switchNode","name":"switch resource-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].name == $jsonContextPrefix.elements[$n].resource-name`'>\n","comments":"","outputs":1,"x":1693.9523696899414,"y":3283.3331146240234,"z":"b22c2.15bfad3f","wires":[["27271b05.86aae4"]]},{"id":"27271b05.86aae4","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1893.9523696899414,"y":3283.3331146240234,"z":"b22c2.15bfad3f","wires":[["80fd2782.c3fce8"]]},{"id":"80fd2782.c3fce8","type":"set","name":"set set payload data","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].value`' value=\"`$jsonContextPrefix.elements[$n].resource-value`\" />\n","comments":"","x":2078.4523696899414,"y":3282.3331146240234,"z":"b22c2.15bfad3f","wires":[]},{"id":"cae5c10b.76f3b","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"nameGenResponse.response-payload\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":1462.9524536132812,"y":3188.3329582214355,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"7faa9a58.393004","type":"for","name":"for response elements","xml":"<for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >\n","comments":"","outputs":1,"x":1455.9524536132812,"y":3284.3329582214355,"z":"b22c2.15bfad3f","wires":[["6820e3be.5057ec"]]},{"id":"651d0c9e.3f6c74","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1197.6190567016602,"y":2534.3330078125,"z":"b22c2.15bfad3f","wires":[["c800abc8.8cf708","f74e5c96.bb387","c007726a.119db","f3b25876.a9cec8","73046d7d.c3e4d4","2774ec69.79d6a4","a8204dd6.5c406","cae5c10b.76f3b","7faa9a58.393004","43c8e7ca.1e08f8","1ec7db32.2779a5","43c6ae1c.02963","83dcda26.f10518"]]},{"id":"43c8e7ca.1e08f8","type":"set","name":"set status as DELETED","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='DELETED' />","comments":"","x":1460.9524536132812,"y":3238.3329582214355,"z":"b22c2.15bfad3f","wires":[]},{"id":"9023139f.bc3e1","type":"switchNode","name":"switch external-key","xml":"<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name == 'external-key'`\">\n","comments":"","outputs":1,"x":1693.6190567016602,"y":2609.3330078125,"z":"b22c2.15bfad3f","wires":[["7838892.d26f278"]]},{"id":"7838892.d26f278","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1877.6190567016602,"y":2609.3330078125,"z":"b22c2.15bfad3f","wires":[["f6f22c3.9d7f6d"]]},{"id":"8ae06020.3e6f5","type":"not-found","name":"vf-module","xml":"<outcome value='vf-module'>\n","comments":"","outputs":1,"x":559.6190567016602,"y":2358.0479736328125,"z":"b22c2.15bfad3f","wires":[["8e070240.cce94"]]},{"id":"b8f45568.78bec8","type":"not-found","name":"unassign","xml":"<outcome value='unassign'>\n","comments":"","outputs":1,"x":1031.2858657836914,"y":2359.5716552734375,"z":"b22c2.15bfad3f","wires":[["234dc037.18d2d"]]},{"id":"8e070240.cce94","type":"switchNode","name":"switch ss.capability-action","xml":"<switch test=\"`$ss.capability-action`\">\n","comments":"","outputs":1,"x":795.2856216430664,"y":2358.5716552734375,"z":"b22c2.15bfad3f","wires":[["b8f45568.78bec8","c3399c9e.783d"]]},{"id":"1ec7db32.2779a5","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE namegeneration.node.UnAssignNameNode\"/>\n\n","comments":"","outputs":1,"x":1414.4759902954102,"y":2920,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"43c6ae1c.02963","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER namegeneration.node.UnAssignNameNode\"/>\n\n","comments":"","outputs":1,"x":1411.1427383422852,"y":3077,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"8b25e032.8d67","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='`$pathname`' />\n","comments":"","outputs":1,"x":324.39286041259766,"y":4374.75,"z":"b22c2.15bfad3f","wires":[[]]},{"id":"e0959eaf.ac5c9","type":"set","name":"set vnf pathname for context logging","xml":"<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-gen-name-' + \n\t$ss.capability-type + '-' + $ss.capability-action + '-' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id + '.log'`\" />\n","comments":"","x":1494.3095474243164,"y":1019.6666736602783,"z":"b22c2.15bfad3f","wires":[]},{"id":"83dcda26.f10518","type":"set","name":"set vf-module pathname for context logging","xml":"<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-gen-name-' + \n\t$ss.capability-type + '-' + $ss.capability-action + '-' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.vf-module-id + '.log'`\" />\n","comments":"","x":1522.3928604125977,"y":3128.75,"z":"b22c2.15bfad3f","wires":[]},{"id":"119b4b23.3c64c5","type":"set","name":"set vf-module pathname for context logging","xml":"<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-gen-name-' + \n\t$ss.capability-type + '-' + $ss.capability-action + '-' +\n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.vf-module-id + '.log'`\" />\n","comments":"","x":1474.3928298950195,"y":4296.083665847778,"z":"b22c2.15bfad3f","wires":[]},{"id":"7215a9c2.ed4828","type":"set","name":"set vnf pathname for context logging","xml":"<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-gen-name-' + \n\t$ss.capability-type + '-' + $ss.capability-action + '-' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id + '.log'`\" />\n","comments":"","x":2075.0593643188477,"y":2058.75,"z":"b22c2.15bfad3f","wires":[]},{"id":"9ec0993b.7d83a8","type":"call","name":"call self-serve-capability-param-resolution","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n","comments":"","outputs":1,"x":411.42860412597656,"y":181.42858695983887,"z":"b22c2.15bfad3f","wires":[[]]}]
\ No newline at end of file +[ + { + "id": "9d01f665.242718", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 120, + "y": 60, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "8d2cd10d.7836b8" + ] + ] + }, + { + "id": "8d2cd10d.7836b8", + "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": 368.5713806152344, + "y": 62.428558349609375, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "3bb04424.165b2c" + ] + ] + }, + { + "id": "3bb04424.165b2c", + "type": "method", + "name": "self-serve-generate-name", + "xml": "<method rpc='self-serve-generate-name' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 672.1428527832031, + "y": 60.99999237060547, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "f544f42f.79e4c8" + ] + ] + }, + { + "id": "f544f42f.79e4c8", + "type": "block", + "name": "block atomic", + "xml": "<block atomic=\"true\">\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 171.14285278320312, + "y": 146.99999237060547, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "af15506f.05852", + "d5abcd9b.9745b", + "9587cb6f.6286", + "c8c9dba8.4a219", + "c465ea91.13fb38" + ] + ] + }, + { + "id": "8b3cd365.e1b4c", + "type": "execute", + "name": "execute replace extra comma", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',}' />\n <parameter name='replacement' value='}' />", + "comments": "", + "outputs": 1, + "x": 1736.8572082519531, + "y": 873.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "af15506f.05852", + "type": "set", + "name": "set capability-name", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value='{"elements":[' />\n", + "comments": "", + "x": 370.1428527832031, + "y": 147.99999237060547, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "d5abcd9b.9745b", + "type": "call", + "name": "call capability-param-resolution", + "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n", + "comments": "", + "outputs": 1, + "x": 399.1428527832031, + "y": 239, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "7aabee17.1c5ba8", + "8a0a976d.bb54a" + ] + ] + }, + { + "id": "57f8f575.c14294", + "type": "for", + "name": "for vnf-parameters-data", + "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1170.6430053710938, + "y": 504.4285125732422, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "45ec186d.6638d8" + ] + ] + }, + { + "id": "45ec186d.6638d8", + "type": "switchNode", + "name": "switch capability-name", + "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>\n", + "comments": "", + "outputs": 1, + "x": 1413.5000610351562, + "y": 504.4285125732422, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "c34ee0d3.7925f8" + ] + ] + }, + { + "id": "c34ee0d3.7925f8", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1594.2144165039062, + "y": 504.4284973144531, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "fbccf37.88f999" + ] + ] + }, + { + "id": "d539f25c.c0e5b8", + "type": "for", + "name": "for vnf-parameters-data", + "xml": "<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1706.3572082519531, + "y": 674.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "59762169.0b874" + ] + ] + }, + { + "id": "7aabee17.1c5ba8", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 622.1428527832031, + "y": 207, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "1370aa99.4464d5" + ] + ] + }, + { + "id": "8a0a976d.bb54a", + "type": "failure", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 631.1428527832031, + "y": 273, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "1370aa99.4464d5" + ] + ] + }, + { + "id": "1370aa99.4464d5", + "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=\"Error from capability-param-resolution\" />\n", + "comments": "", + "x": 824.1428527832031, + "y": 207, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "c41bbe96.bcfb", + "type": "set", + "name": "set payload data", + "xml": "<set>\n<parameter name=\"tmp.naming-data-payload\" value=\"`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value + '",'`\"/>\n<parameter name=\"`tmp.gen-name[0].element[$j].name`\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name`\"/>\n<parameter name=\"`tmp.gen-name[0].element[$j].value`\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value`\"/>\n<parameter name=\"`tmp.gen-name[0].element_length`\" value='`$j + 1`' />", + "comments": "", + "x": 2308.857208251953, + "y": 672.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "5ed4030d.2a373c", + "type": "set", + "name": "set set payload data", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '{'`\" />\n<parameter name='tmp.gen-name_length' value='1' />", + "comments": "", + "x": 1703.8573608398438, + "y": 599.9998626708984, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "5c5e5f8.5a649a", + "type": "set", + "name": "set payload data", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '},'`\" />", + "comments": "", + "x": 1703.8572082519531, + "y": 736.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "30621c93.731054", + "type": "set", + "name": "set close payload list", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + ']}'`\" />", + "comments": "", + "x": 1709.8572082519531, + "y": 801.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "ea2a8ca.3b9d37", + "type": "execute", + "name": "execute replace extra comma", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',]' />\n <parameter name='replacement' value=']' />", + "comments": "", + "outputs": 1, + "x": 1739.8572082519531, + "y": 927.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "97b12709.514e68", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 2105.857177734375, + "y": 949.1427612304688, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "718393eb.a09b34" + ] + ] + }, + { + "id": "f738cd51.cd41e", + "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=\"Error from NameGenerationNode Unassign\" />\n", + "comments": "", + "x": 2470.857177734375, + "y": 1049.1427612304688, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "d0e601f9.671c6", + "type": "failure", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 2110.857177734375, + "y": 1048.1427612304688, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "718393eb.a09b34" + ] + ] + }, + { + "id": "718393eb.a09b34", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2268.857177734375, + "y": 993.1427612304688, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "bcc4f011.c46088", + "f738cd51.cd41e" + ] + ] + }, + { + "id": "bcc4f011.c46088", + "type": "set", + "name": "set status as FAILED", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />", + "comments": "", + "x": 2484.857177734375, + "y": 940.1427612304688, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "d674890d.0b54b8", + "type": "switchNode", + "name": "switch capability action assign", + "xml": "<switch test=\"`$ss.capability-action == 'assign'`\">", + "comments": "", + "outputs": 1, + "x": 794.3809204101562, + "y": 1631.7618560791016, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "20e0c70b.391c68" + ] + ] + }, + { + "id": "20e0c70b.391c68", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1049.0951538085938, + "y": 1631.7618560791016, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "e6d807c0.e53738" + ] + ] + }, + { + "id": "c101db98.1e6f7", + "type": "for", + "name": "for vnf-parameters-data", + "xml": "<for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1951.8572082519531, + "y": 1229.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "c97cd966.464808" + ] + ] + }, + { + "id": "16707bfd.c97154", + "type": "switchNode", + "name": "switch capability-name", + "xml": "<switch test='`$s2[0] == $jsonContextPrefix.elements[$n].resource-name`'>\n", + "comments": "", + "outputs": 1, + "x": 2154.857208251953, + "y": 1447.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "a824ee12.8cc8e8" + ] + ] + }, + { + "id": "a824ee12.8cc8e8", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2364.857208251953, + "y": 1447.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "c872b3d2.2f9e08" + ] + ] + }, + { + "id": "8cb3cf6f.94a54", + "type": "set", + "name": "set set payload data", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' value=\"`$jsonContextPrefix.elements[$n].resource-value`\" />\n", + "comments": "", + "x": 2678.0235595703125, + "y": 1425.9205322265625, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "b9d7571b.298638", + "type": "execute", + "name": "execute jsonStringToCtx", + "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"nameGenResponse.httpResponse\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n", + "comments": "", + "outputs": 1, + "x": 1720.8572082519531, + "y": 1132.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "f2cc0f54.bb60e8", + "type": "for", + "name": "for response elements", + "xml": "<for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1713.8572082519531, + "y": 1228.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "c101db98.1e6f7" + ] + ] + }, + { + "id": "c97cd966.464808", + "type": "execute", + "name": "slistringUtils - check value for $", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`\" />\n <parameter name=\"target\" value=\"$\"/>\n \n", + "comments": "", + "outputs": 1, + "x": 2255.857208251953, + "y": 1229.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "bad123a5.0894c8" + ] + ] + }, + { + "id": "bad123a5.0894c8", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2495.857208251953, + "y": 1228.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "be18f58.a0ee008" + ] + ] + }, + { + "id": "1bb7fc63.6e9f3c", + "type": "execute", + "name": "split resource-resolution-data", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='resource-resolution-split' />\n <parameter name='original_string' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' />\n <parameter name='regex' value='\\$\\{' />\n", + "comments": "", + "outputs": 1, + "x": 2162.857208251953, + "y": 1299.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "d888d83a.b7d8", + "type": "execute", + "name": "split resource-resolution-split-1", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='s2' />\n <parameter name='original_string' value='`$resource-resolution-split[1]`' />\n <parameter name='regex' value='\\}' />\n", + "comments": "", + "outputs": 1, + "x": 2177.857208251953, + "y": 1382.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "fbccf37.88f999", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1496.8572082519531, + "y": 600.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "5ed4030d.2a373c", + "d539f25c.c0e5b8", + "5c5e5f8.5a649a", + "30621c93.731054", + "8b3cd365.e1b4c", + "b9d7571b.298638", + "f2cc0f54.bb60e8", + "ea2a8ca.3b9d37", + "4379c30d.8a80a4" + ] + ] + }, + { + "id": "ef4a1fc.34c336", + "type": "execute", + "name": "execute replace extra comma", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',}' />\n <parameter name='replacement' value='}' />", + "comments": "", + "outputs": 1, + "x": 1635.5236206054688, + "y": 2116.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "90f9be75.fa811", + "type": "for", + "name": "for vnf-parameters-data", + "xml": "<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1743.0236206054688, + "y": 1932.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "89254dc2.7f4cd8" + ] + ] + }, + { + "id": "89254dc2.7f4cd8", + "type": "set", + "name": "set payload data", + "xml": "<set>\n<parameter name=\"tmp.naming-data-payload\" value=\"`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value + '",'`\"/>\n<parameter name=\"`tmp.gen-name[$tmp.gen-name_length].element[$j].name`\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name`\"/>\n<parameter name=\"`tmp.gen-name[$tmp.gen-name_length].element[$j].value`\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value`\"/>\n<parameter name=\"`tmp.gen-name[$tmp.gen-name_length].element_length`\" value='`$j + 1`' />", + "comments": "", + "x": 1995.5236206054688, + "y": 1932.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "3d749bd0.06285c", + "type": "set", + "name": "set payload data", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '{'`\" />\n", + "comments": "", + "x": 1723.9520874023438, + "y": 1871.3808135986328, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "3a35a7fe.ef5ea8", + "type": "set", + "name": "set payload data", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '},'`\" />\n<parameter name='tmp.gen-name_length' value='`$tmp.gen-name_length + 1`' />", + "comments": "", + "x": 1725.5236206054688, + "y": 1988.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "85561c80.3ef308", + "type": "set", + "name": "set close payload list", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + ']}'`\" />", + "comments": "", + "x": 1610.5236206054688, + "y": 2073.6663360595703, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "4c175841.300a1", + "type": "execute", + "name": "execute replace extra comma", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',]' />\n <parameter name='replacement' value=']' />", + "comments": "", + "outputs": 1, + "x": 1636.5236206054688, + "y": 2167.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "88d774fa.1d1a38", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1977.523681640625, + "y": 2201.66650390625, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "c5c5c44f.80e79" + ] + ] + }, + { + "id": "1dbcec72.a673cc", + "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=\"Error from NameGenerationNode Assign\" />\n", + "comments": "", + "x": 2342.523681640625, + "y": 2301.66650390625, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "157b3125.a0ffff", + "type": "failure", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 1982.523681640625, + "y": 2300.66650390625, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "c5c5c44f.80e79" + ] + ] + }, + { + "id": "c5c5c44f.80e79", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2140.523681640625, + "y": 2245.66650390625, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "24a305ec.7924e2", + "1dbcec72.a673cc" + ] + ] + }, + { + "id": "24a305ec.7924e2", + "type": "set", + "name": "set status as FAILED", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />", + "comments": "", + "x": 2356.523681640625, + "y": 2192.66650390625, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "76848f5c.5c31a", + "type": "for", + "name": "for vnf-parameters-data", + "xml": "<for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1856.5236206054688, + "y": 2424.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "d362ce7b.44bc4" + ] + ] + }, + { + "id": "6e2978a6.3a8118", + "type": "switchNode", + "name": "switch capability-name", + "xml": "<switch test='`$s2[0] == $jsonContextPrefix.elements[$n].resource-name`'>\n", + "comments": "", + "outputs": 1, + "x": 2059.5236206054688, + "y": 2642.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "6be9a784.88ae8" + ] + ] + }, + { + "id": "6be9a784.88ae8", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2269.5236206054688, + "y": 2642.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "88e1aa71.08c4d" + ] + ] + }, + { + "id": "d351c878.19363", + "type": "set", + "name": "set set payload data", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' value=\"`$jsonContextPrefix.elements[$n].resource-value`\" />\n", + "comments": "", + "x": 2622.6903076171875, + "y": 2611.4442138671875, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "333a840.1d25d7c", + "type": "execute", + "name": "execute jsonStringToCtx", + "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"nameGenResponse.httpResponse\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n", + "comments": "", + "outputs": 1, + "x": 1617.5236206054688, + "y": 2326.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "f671137e.43c9", + "type": "for", + "name": "for response elements", + "xml": "<for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1609.5236206054688, + "y": 2423.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "76848f5c.5c31a" + ] + ] + }, + { + "id": "d362ce7b.44bc4", + "type": "execute", + "name": "slistringUtils - check value for $", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`\" />\n <parameter name=\"target\" value=\"$\"/>\n \n", + "comments": "", + "outputs": 1, + "x": 2160.5236206054688, + "y": 2424.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "9fd05568.528db8" + ] + ] + }, + { + "id": "9fd05568.528db8", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2400.5236206054688, + "y": 2423.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "70491a0a.6a6a24" + ] + ] + }, + { + "id": "925d0988.c8bd58", + "type": "execute", + "name": "split resource-resolution-data", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='resource-resolution-split' />\n <parameter name='original_string' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' />\n <parameter name='regex' value='\\$\\{' />\n", + "comments": "", + "outputs": 1, + "x": 2067.5236206054688, + "y": 2494.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "3d173098.20141", + "type": "execute", + "name": "split resource-resolution-split-1", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='s2' />\n <parameter name='original_string' value='`$resource-resolution-split[1]`' />\n <parameter name='regex' value='\\}' />\n", + "comments": "", + "outputs": 1, + "x": 2082.5236206054688, + "y": 2577.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "70491a0a.6a6a24", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1851.5236206054688, + "y": 2494.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "925d0988.c8bd58", + "3d173098.20141", + "6e2978a6.3a8118" + ] + ] + }, + { + "id": "94a9278.dd98e58", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1520.6666870117188, + "y": 1850.9520416259766, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "3d749bd0.06285c", + "90f9be75.fa811", + "3a35a7fe.ef5ea8" + ] + ] + }, + { + "id": "59762169.0b874", + "type": "switchNode", + "name": "switch external-key", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name == 'external-key'`\">\n", + "comments": "", + "outputs": 1, + "x": 1944.8572082519531, + "y": 673.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "3be873de.5f56e4" + ] + ] + }, + { + "id": "3be873de.5f56e4", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2128.857208251953, + "y": 673.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "c41bbe96.bcfb" + ] + ] + }, + { + "id": "a56c2f8a.64a94", + "type": "execute", + "name": "execute replace extra comma", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',}' />\n <parameter name='replacement' value='}' />", + "comments": "", + "outputs": 1, + "x": 1856.4762573242188, + "y": 4087.3329010009766, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "75bd0dd1.6885f4", + "type": "for", + "name": "for vnf-parameters-data", + "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1144.9761352539062, + "y": 3699.3333892822266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "1a936a5a.dcff5e" + ] + ] + }, + { + "id": "1a936a5a.dcff5e", + "type": "switchNode", + "name": "switch capability-name", + "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>\n", + "comments": "", + "outputs": 1, + "x": 1424.9761352539062, + "y": 3699.3333892822266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "d02ebe6c.238e3" + ] + ] + }, + { + "id": "d02ebe6c.238e3", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1633.9762573242188, + "y": 3699.3333892822266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "17f1cb31.5694ed" + ] + ] + }, + { + "id": "a4f0128d.13f6b", + "type": "for", + "name": "for vf-module-parameters", + "xml": "<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1825.9762573242188, + "y": 3888.3329010009766, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "206ac6d4.7ae67a" + ] + ] + }, + { + "id": "e421640.8a1ea2", + "type": "set", + "name": "set payload data", + "xml": "<set>\n<parameter name=\"tmp.naming-data-payload\" value=\"`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value + '",'`\"/>\n<parameter name=\"`tmp.gen-name[0].element[$j].name`\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name`\"/>\n<parameter name=\"`tmp.gen-name[0].element[$j].value`\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value`\"/>\n<parameter name=\"`tmp.gen-name[0].element_length`\" value='`$j + 1`' />", + "comments": "", + "x": 2428.4762573242188, + "y": 3886.3329010009766, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "2167bfb4.daf4d", + "type": "set", + "name": "set set payload data", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '{'`\" />\n<parameter name='tmp.gen-name_length' value='1' />", + "comments": "", + "x": 1823.4762573242188, + "y": 3811.3329010009766, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "b585badd.35b568", + "type": "set", + "name": "set payload data", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '},'`\" />", + "comments": "", + "x": 1823.4762573242188, + "y": 3950.3329010009766, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "bb4dfba2.da8018", + "type": "set", + "name": "set close payload list", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + ']}'`\" />", + "comments": "", + "x": 1829.4762573242188, + "y": 4015.3329010009766, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "73f361ac.bbceb8", + "type": "execute", + "name": "execute replace extra comma", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',]' />\n <parameter name='replacement' value=']' />", + "comments": "", + "outputs": 1, + "x": 1859.4762573242188, + "y": 4141.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "cb05a44b.81acd", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 2189.476318359375, + "y": 4163.3330078125, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "53f184d5.f04db4" + ] + ] + }, + { + "id": "ac469966.f9f0b", + "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=\"Error from NameGenerationNode Unassign\" />\n", + "comments": "", + "x": 2554.476318359375, + "y": 4263.3330078125, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "ba1d7d79.ebca9", + "type": "failure", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 2194.476318359375, + "y": 4262.3330078125, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "53f184d5.f04db4" + ] + ] + }, + { + "id": "53f184d5.f04db4", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2352.476318359375, + "y": 4207.3330078125, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "d5a758ad.0c7368", + "ac469966.f9f0b" + ] + ] + }, + { + "id": "d5a758ad.0c7368", + "type": "set", + "name": "set status as FAILED", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />", + "comments": "", + "x": 2568.476318359375, + "y": 4154.3330078125, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "8566b45.4555748", + "type": "for", + "name": "for vf-module-parameters", + "xml": "<for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 2071.4762573242188, + "y": 4443.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "bcafdf43.c97df8" + ] + ] + }, + { + "id": "bfa1ad98.e1291", + "type": "switchNode", + "name": "switch capability-name", + "xml": "<switch test='`$s2[0] == $jsonContextPrefix.elements[$n].resource-name`'>\n", + "comments": "", + "outputs": 1, + "x": 2274.4762573242188, + "y": 4661.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "1695dfe6.8492a" + ] + ] + }, + { + "id": "1695dfe6.8492a", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2484.4762573242188, + "y": 4661.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "29601f42.c65388" + ] + ] + }, + { + "id": "29601f42.c65388", + "type": "set", + "name": "set set payload data", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' value=\"`$jsonContextPrefix.elements[$n].resource-value`\" />\n", + "comments": "", + "x": 2680.9762573242188, + "y": 4662.332901000977, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "e7b4e270.a2e688", + "type": "execute", + "name": "execute jsonStringToCtx", + "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"nameGenResponse.httpResponse\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n", + "comments": "", + "outputs": 1, + "x": 1840.4762573242188, + "y": 4346.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "dc4b9b10.f541", + "type": "for", + "name": "for response elements", + "xml": "<for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1833.4762573242188, + "y": 4442.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "8566b45.4555748" + ] + ] + }, + { + "id": "bcafdf43.c97df8", + "type": "execute", + "name": "slistringUtils - check value for $", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`\" />\n <parameter name=\"target\" value=\"$\"/>\n \n", + "comments": "", + "outputs": 1, + "x": 2375.4762573242188, + "y": 4443.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "576f293f.cd5a6" + ] + ] + }, + { + "id": "576f293f.cd5a6", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2615.4762573242188, + "y": 4442.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "7103d8d3.c872d8" + ] + ] + }, + { + "id": "3a69492f.bb2bae", + "type": "execute", + "name": "split resource-resolution-data", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='resource-resolution-split' />\n <parameter name='original_string' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' />\n <parameter name='regex' value='\\$\\{' />\n", + "comments": "", + "outputs": 1, + "x": 2282.4762573242188, + "y": 4513.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "c5cb3ca9.bf8848", + "type": "execute", + "name": "split resource-resolution-split-1", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='s2' />\n <parameter name='original_string' value='`$resource-resolution-split[1]`' />\n <parameter name='regex' value='\\}' />\n", + "comments": "", + "outputs": 1, + "x": 2297.4762573242188, + "y": 4596.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "7103d8d3.c872d8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2066.4762573242188, + "y": 4513.332901000977, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "3a69492f.bb2bae", + "c5cb3ca9.bf8848", + "bfa1ad98.e1291" + ] + ] + }, + { + "id": "17f1cb31.5694ed", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1616.4762573242188, + "y": 3814.3329010009766, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "2167bfb4.daf4d", + "a4f0128d.13f6b", + "b585badd.35b568", + "bb4dfba2.da8018", + "a56c2f8a.64a94", + "e7b4e270.a2e688", + "50a18ce1.97fc1c", + "dc4b9b10.f541", + "73f361ac.bbceb8", + "40117641.f32018" + ] + ] + }, + { + "id": "50a18ce1.97fc1c", + "type": "set", + "name": "set status as DELETED", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='DELETED' />", + "comments": "", + "x": 1838.4762573242188, + "y": 4396.332901000977, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "206ac6d4.7ae67a", + "type": "switchNode", + "name": "switch external-key", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name == 'external-key'`\">\n", + "comments": "", + "outputs": 1, + "x": 2064.4762573242188, + "y": 3887.3329010009766, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "5fae231d.5272ac" + ] + ] + }, + { + "id": "5fae231d.5272ac", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2248.4762573242188, + "y": 3887.3329010009766, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "e421640.8a1ea2" + ] + ] + }, + { + "id": "9587cb6f.6286", + "type": "switchNode", + "name": "switch capability-type. vnf", + "xml": "<switch test=\"`$ss.capability-type == 'vnf'`\">\n", + "comments": "", + "outputs": 1, + "x": 380.1428527832031, + "y": 317.99999237060547, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "aad954ce.802738" + ] + ] + }, + { + "id": "aad954ce.802738", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 583.5714111328125, + "y": 317.2857208251953, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "d4962dde.7144a8" + ] + ] + }, + { + "id": "c8c9dba8.4a219", + "type": "switchNode", + "name": "switch capability-type vf-module", + "xml": "<switch test=\"`$ss.capability-type == 'vf-module'`\">\n", + "comments": "", + "outputs": 1, + "x": 509.4761962890625, + "y": 3481.3333282470703, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "8771ea99.a3f9d" + ] + ] + }, + { + "id": "8771ea99.a3f9d", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 728.4761962890625, + "y": 3482.3333892822266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "52b0c642.e848e8" + ] + ] + }, + { + "id": "99f26ef3.280eb", + "type": "for", + "name": "for vnf-parameters data", + "xml": "<for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1621.5236206054688, + "y": 2603.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "442eaa12.f66c1c" + ] + ] + }, + { + "id": "442eaa12.f66c1c", + "type": "execute", + "name": "slistringUtils - check value for $", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`\" />\n <parameter name=\"target\" value=\"$\"/>\n \n", + "comments": "", + "outputs": 1, + "x": 1747.1902465820312, + "y": 2734.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "b6eb4a26.4fec" + ] + ] + }, + { + "id": "b6eb4a26.4fec", + "type": "failure", + "name": "false", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 2009.1902465820312, + "y": 2790.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "67977d8b.c5df04" + ] + ] + }, + { + "id": "67977d8b.c5df04", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2225.1902465820312, + "y": 2790.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "829756fc.3cfc5", + "5eef2fa5.addbc8" + ] + ] + }, + { + "id": "829756fc.3cfc5", + "type": "set", + "name": "set capability name", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.capability-name`' value='INPUT' />", + "comments": "", + "x": 2451.8568115234375, + "y": 2766.4444580078125, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "5eef2fa5.addbc8", + "type": "set", + "name": "set status SUCCESS", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.status`' value='SUCCESS' />\n", + "comments": "", + "x": 2455.1902465820312, + "y": 2836.6663970947266, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "1fbc0bf7.d9d60c", + "type": "switchNode", + "name": "switch capability action unassign", + "xml": "<switch test=\"`$ss.capability-action == 'unassign'`\">\n", + "comments": "", + "outputs": 1, + "x": 837.7142333984375, + "y": 408.1428680419922, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "efd6575c.f07d5" + ] + ] + }, + { + "id": "efd6575c.f07d5", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1123.4285278320312, + "y": 406.7142791748047, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "57f8f575.c14294" + ] + ] + }, + { + "id": "d4962dde.7144a8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 587.7142944335938, + "y": 382.42860412597656, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "1fbc0bf7.d9d60c", + "d674890d.0b54b8" + ] + ] + }, + { + "id": "177385a3.c043a2", + "type": "for", + "name": "for vnf-parameters-data", + "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1062.0715942382812, + "y": 1794.166763305664, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "30d24fbb.704358" + ] + ] + }, + { + "id": "30d24fbb.704358", + "type": "switchNode", + "name": "switch capability-name", + "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>\n", + "comments": "", + "outputs": 1, + "x": 1303.6786499023438, + "y": 1794.166763305664, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "a88e7b27.acd89" + ] + ] + }, + { + "id": "a88e7b27.acd89", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1484.3930053710938, + "y": 1794.166763305664, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "94a9278.dd98e58" + ] + ] + }, + { + "id": "1954307b.1b2ba8", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1216.8572387695312, + "y": 3610.5714263916016, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "75bd0dd1.6885f4" + ] + ] + }, + { + "id": "dcef770e.c6ccf8", + "type": "switchNode", + "name": "switch capability action unassign", + "xml": "<switch test=\"`$ss.capability-action == 'unassign'`\">\n", + "comments": "", + "outputs": 1, + "x": 975.8569946289062, + "y": 3610.5714263916016, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "1954307b.1b2ba8" + ] + ] + }, + { + "id": "52b0c642.e848e8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 732.8571166992188, + "y": 3547.5714263916016, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "dcef770e.c6ccf8", + "ef3aabef.23d1a8" + ] + ] + }, + { + "id": "ef3aabef.23d1a8", + "type": "switchNode", + "name": "switch capability action assign", + "xml": "<switch test=\"`$ss.capability-action == 'assign'`\">", + "comments": "", + "outputs": 1, + "x": 952.8096313476562, + "y": 5218.334121704102, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "83323826.8871c8" + ] + ] + }, + { + "id": "83323826.8871c8", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1181.8096313476562, + "y": 5218.334121704102, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "b2d3cc7b.89669" + ] + ] + }, + { + "id": "9f73d864.8536d8", + "type": "execute", + "name": "execute replace extra comma", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',}' />\n <parameter name='replacement' value='}' />", + "comments": "", + "outputs": 1, + "x": 1730.3095092773438, + "y": 5688.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "e105813.22ffe8", + "type": "for", + "name": "for vf-module-parameters", + "xml": "<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key_length`' >\n", + "comments": "", + "outputs": 1, + "x": 2048.5595092773438, + "y": 5496.334121704102, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "9ebe174c.cca8f8" + ] + ] + }, + { + "id": "9ebe174c.cca8f8", + "type": "set", + "name": "set payload data", + "xml": "<set>\n<parameter name=\"tmp.naming-data-payload\" value=\"`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value + '",'`\"/>\n<parameter name=\"`tmp.gen-name[$tmp.gen-name_length].element[$j].name`\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name`\"/>\n<parameter name=\"`tmp.gen-name[$tmp.gen-name_length].element[$j].value`\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value`\"/>\n<parameter name=\"`tmp.gen-name[$tmp.gen-name_length].element_length`\" value='`$j + 1`' />", + "comments": "", + "x": 2305.0595092773438, + "y": 5496.334121704102, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "89efd59e.cf284", + "type": "set", + "name": "set set payload data", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '{'`\" />", + "comments": "", + "x": 2031.0595092773438, + "y": 5442.334121704102, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "4f8d850b.bbbc44", + "type": "set", + "name": "set payload data", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + '},'`\" />\n<parameter name='tmp.gen-name_length' value='`$tmp.gen-name_length + 1`' />", + "comments": "", + "x": 2037.0595092773438, + "y": 5558.334121704102, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "98c04a64.a011c", + "type": "set", + "name": "set close payload list", + "xml": "<set>\n<parameter name='tmp.naming-data-payload' value=\"`$tmp.naming-data-payload + ']}'`\" />", + "comments": "", + "x": 1700.3095092773438, + "y": 5637.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "d2f1471f.d735d", + "type": "execute", + "name": "execute replace extra comma", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>\n <parameter name='outputPath' value='tmp.naming-data-payload' />\n <parameter name='source' value='`$tmp.naming-data-payload`' />\n <parameter name='target' value=',]' />\n <parameter name='replacement' value=']' />", + "comments": "", + "outputs": 1, + "x": 1733.3095092773438, + "y": 5742.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "7e5bd1ab.209ca", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 2036.3095703125, + "y": 5756.58447265625, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "42fc5b6c.345bdc" + ] + ] + }, + { + "id": "1e009a1e.612266", + "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=\"Error from NameGenerationNode Assign\" />\n", + "comments": "", + "x": 2401.3095703125, + "y": 5856.58447265625, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "90a92735.264c5", + "type": "failure", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 2041.3095703125, + "y": 5855.58447265625, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "42fc5b6c.345bdc" + ] + ] + }, + { + "id": "42fc5b6c.345bdc", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2199.3095703125, + "y": 5800.58447265625, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "1e009a1e.612266", + "91ff7811.5db32" + ] + ] + }, + { + "id": "91ff7811.5db32", + "type": "set", + "name": "set status as FAILED", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />", + "comments": "", + "x": 2415.3095703125, + "y": 5747.58447265625, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "9626c789.309858", + "type": "for", + "name": "for vf-module-parameters", + "xml": "<for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 2011.3095092773438, + "y": 6332.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "df02f986.45d718" + ] + ] + }, + { + "id": "1035d4b9.e79303", + "type": "switchNode", + "name": "switch capability-name", + "xml": "<switch test='`$s2[0] == $jsonContextPrefix.elements[$n].resource-name`'>\n", + "comments": "", + "outputs": 1, + "x": 2182.3095092773438, + "y": 6490.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "d32665c0.ffe428" + ] + ] + }, + { + "id": "d32665c0.ffe428", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2386.3095092773438, + "y": 6488.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "24aa734a.87d674" + ] + ] + }, + { + "id": "24aa734a.87d674", + "type": "set", + "name": "set set payload data", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' value=\"`$jsonContextPrefix.elements[$n].resource-value`\" />\n", + "comments": "", + "x": 2580.8095092773438, + "y": 6421.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "b6489347.bb4308", + "type": "execute", + "name": "execute jsonStringToCtx", + "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"nameGenResponse.httpResponse\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n", + "comments": "", + "outputs": 1, + "x": 1714.3095092773438, + "y": 5855.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "c7bfb325.ec2d98", + "type": "for", + "name": "for response elements", + "xml": "<for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1743.3095092773438, + "y": 6333.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "9626c789.309858" + ] + ] + }, + { + "id": "df02f986.45d718", + "type": "execute", + "name": "slistringUtils - check value for $", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`\" />\n <parameter name=\"target\" value=\"$\"/>\n \n", + "comments": "", + "outputs": 1, + "x": 2295.3095092773438, + "y": 6336.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "c66b75af.b35668" + ] + ] + }, + { + "id": "c66b75af.b35668", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2523.3095092773438, + "y": 6333.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "a8f90ed5.c9b5a8" + ] + ] + }, + { + "id": "a4a7fab0.32e9b8", + "type": "execute", + "name": "split resource-resolution-data", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='resource-resolution-split' />\n <parameter name='original_string' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' />\n <parameter name='regex' value='\\$\\{' />\n", + "comments": "", + "outputs": 1, + "x": 2190.3095092773438, + "y": 6386.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "b57bbec9.12ea6", + "type": "execute", + "name": "split resource-resolution-split-1", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='s2' />\n <parameter name='original_string' value='`$resource-resolution-split[1]`' />\n <parameter name='regex' value='\\}' />\n", + "comments": "", + "outputs": 1, + "x": 2203.3095092773438, + "y": 6445.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "a8f90ed5.c9b5a8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1950.3095092773438, + "y": 6412.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "1035d4b9.e79303", + "a4a7fab0.32e9b8", + "b57bbec9.12ea6" + ] + ] + }, + { + "id": "9c309af6.f7e4a", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1824.0595092773438, + "y": 5445.334121704102, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "e105813.22ffe8", + "89efd59e.cf284", + "4f8d850b.bbbc44" + ] + ] + }, + { + "id": "3caf0f0c.12a5b8", + "type": "set", + "name": "set status as SUCCESS", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='SUCCESS' />", + "comments": "", + "x": 1716.3095092773438, + "y": 5907.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "267d42ee.73dbde", + "type": "for", + "name": "for vnf parameters data", + "xml": "<for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1738.3095092773438, + "y": 6555.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "8fcead9b.0e0b8" + ] + ] + }, + { + "id": "8fcead9b.0e0b8", + "type": "execute", + "name": "slistringUtils - check value for $", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`\" />\n <parameter name=\"target\" value=\"$\"/>\n \n", + "comments": "", + "outputs": 1, + "x": 2044.3095092773438, + "y": 6553.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "f158d276.0d8658" + ] + ] + }, + { + "id": "f158d276.0d8658", + "type": "failure", + "name": "false", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 2282.3095092773438, + "y": 6553.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "3621a169.1458b6" + ] + ] + }, + { + "id": "3621a169.1458b6", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2444.3095092773438, + "y": 6547.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "fef37cdf.87178", + "157e032d.744875" + ] + ] + }, + { + "id": "fef37cdf.87178", + "type": "set", + "name": "set capability name", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].resource-resolution-data.capability-name`' value='INPUT' />\n", + "comments": "", + "x": 2668.3095092773438, + "y": 6513.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "157e032d.744875", + "type": "set", + "name": "set status SUCCESS", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].resource-resolution-data.status`' value='SUCCESS' />\n\t", + "comments": "", + "x": 2656.3095092773438, + "y": 6613.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "8a66938a.1460b", + "type": "for", + "name": "for vnf-parameters data", + "xml": "<for index='cn' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1726.3095092773438, + "y": 6013.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "e7e744c9.85b75" + ] + ] + }, + { + "id": "e7e744c9.85b75", + "type": "switchNode", + "name": "switch param[] name", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].name == 'vnfc-name'`\">\n", + "comments": "", + "outputs": 1, + "x": 1979.8095092773438, + "y": 6014.584854125977, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "2a4c76d1.47e9a2" + ] + ] + }, + { + "id": "2a4c76d1.47e9a2", + "type": "success", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2172.8095092773438, + "y": 6015.084732055664, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "2c6b125a.5ec166" + ] + ] + }, + { + "id": "2c6b125a.5ec166", + "type": "for", + "name": "for j in resource key", + "xml": "<for silentFailure='true' index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1820.0238647460938, + "y": 6123.870666503906, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "eb80eaa0.5a981" + ] + ] + }, + { + "id": "eb80eaa0.5a981", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2090.5953369140625, + "y": 6125.584655761719, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "e4d68431.8d96a8", + "ecab974a.9bbd78", + "314dd1f2.f106d6", + "435ecba0.88a2c4", + "18703684.a36359", + "5a418843.fb8ce", + "658b4432.deae1c" + ] + ] + }, + { + "id": "ecab974a.9bbd78", + "type": "switchNode", + "name": "switch model-invariant-uuid", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-invariant-uuid'`\">\n\n", + "comments": "", + "outputs": 1, + "x": 2524.3095092773438, + "y": 6001.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "cf5cb0c4.d1ede8" + ] + ] + }, + { + "id": "314dd1f2.f106d6", + "type": "switchNode", + "name": "switch model-customization-uuid", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-customization-uuid'`\">\n\n", + "comments": "", + "outputs": 1, + "x": 2492.3095092773438, + "y": 6059.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "70feaf3a.73ab2" + ] + ] + }, + { + "id": "435ecba0.88a2c4", + "type": "switchNode", + "name": "switch model-uuid", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-uuid'`\">\n\n", + "comments": "", + "outputs": 1, + "x": 2490.3095092773438, + "y": 6121.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "40b980ec.ac6338" + ] + ] + }, + { + "id": "18703684.a36359", + "type": "switchNode", + "name": "switch model-version", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-version'`\">\n", + "comments": "", + "outputs": 1, + "x": 2498.3095092773438, + "y": 6183.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "3405bb1d.191ce4" + ] + ] + }, + { + "id": "e4d68431.8d96a8", + "type": "switchNode", + "name": "switch vm-type", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'vm-type'`\">\n\n", + "comments": "", + "outputs": 1, + "x": 2514.3095092773438, + "y": 5929.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "8cbeeb62.d5961" + ] + ] + }, + { + "id": "8cbeeb62.d5961", + "type": "success", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2718.3095092773438, + "y": 5925.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "57750a1a.165544" + ] + ] + }, + { + "id": "cf5cb0c4.d1ede8", + "type": "success", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2718.3095092773438, + "y": 5999.834487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "57206663.d5c56" + ] + ] + }, + { + "id": "70feaf3a.73ab2", + "type": "success", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2724.3095092773438, + "y": 6055.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "b4b44bc3.5bb8a8" + ] + ] + }, + { + "id": "40b980ec.ac6338", + "type": "success", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2728.3095092773438, + "y": 6113.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "8cc0d8fe.d3593" + ] + ] + }, + { + "id": "3405bb1d.191ce4", + "type": "success", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2734.3095092773438, + "y": 6179.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "f57a9876.705b68" + ] + ] + }, + { + "id": "57750a1a.165544", + "type": "set", + "name": "set vm-type", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-type`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />\n", + "comments": "", + "x": 2882.3095092773438, + "y": 5927.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "57206663.d5c56", + "type": "set", + "name": "set model-invariant-uuid", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-invariant-uuid`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />\n", + "comments": "", + "x": 2928.3095092773438, + "y": 5993.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "b4b44bc3.5bb8a8", + "type": "set", + "name": "set model-customization-uuid", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-customization-uuid`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />\n", + "comments": "", + "x": 2972.3095092773438, + "y": 6057.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "8cc0d8fe.d3593", + "type": "set", + "name": "set model-uuid", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-uuid`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />\n", + "comments": "", + "x": 2948.3095092773438, + "y": 6111.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "f57a9876.705b68", + "type": "set", + "name": "set model-version", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-version`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[j].value`' />\n", + "comments": "", + "x": 2894.3095092773438, + "y": 6177.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "ec4b72ee.0d91e8", + "type": "set", + "name": "set model-name", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-name`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />\n", + "comments": "", + "x": 2900.3095092773438, + "y": 6233.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "c2128119.3c59c8", + "type": "set", + "name": "set vnfc-name", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-name`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />\n", + "comments": "", + "x": 2918.3095092773438, + "y": 6289.584487915039, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "5a418843.fb8ce", + "type": "switchNode", + "name": "switch model-name", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-name'`\">\n", + "comments": "", + "outputs": 1, + "x": 2498.3095092773438, + "y": 6235.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "2b96a377.785aec" + ] + ] + }, + { + "id": "658b4432.deae1c", + "type": "switchNode", + "name": "switch vnfc-name", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'vnfc-name'`\">\n", + "comments": "", + "outputs": 1, + "x": 2496.3095092773438, + "y": 6289.584487915039, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "2a2a4a91.63c3f6" + ] + ] + }, + { + "id": "2b96a377.785aec", + "type": "success", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2732.3095092773438, + "y": 6233.584487915038, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "ec4b72ee.0d91e8" + ] + ] + }, + { + "id": "2a2a4a91.63c3f6", + "type": "success", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2726.3095092773438, + "y": 6287.584487915038, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "c2128119.3c59c8" + ] + ] + }, + { + "id": "b9630ea3.d96b18", + "type": "for", + "name": "for vnf-parameters-data", + "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 1266.8571166992188, + "y": 5391.571670532227, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "bd4ce803.509a98" + ] + ] + }, + { + "id": "bd4ce803.509a98", + "type": "switchNode", + "name": "switch capability-name", + "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>\n", + "comments": "", + "outputs": 1, + "x": 1546.8571166992188, + "y": 5391.571670532227, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "a5d1018e.3683e" + ] + ] + }, + { + "id": "a5d1018e.3683e", + "type": "not-found", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1755.8572387695312, + "y": 5391.571670532227, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "9c309af6.f7e4a" + ] + ] + }, + { + "id": "e6d807c0.e53738", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 841.1071166992188, + "y": 1734.5714263916016, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "177385a3.c043a2", + "ff615e80.275a08", + "39178dc5.011a9a" + ] + ] + }, + { + "id": "ff615e80.275a08", + "type": "set", + "name": "set payload data", + "xml": "<set>\n\t<parameter name='tmp.naming-data-payload' value='{"elements":[' />\n\t<parameter name='tmp.gen-name_length' value='0' />", + "comments": "", + "x": 1048.8571166992188, + "y": 1735.5714263916016, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "39178dc5.011a9a", + "type": "switchNode", + "name": "switch tmp.naming-data-payload is null", + "xml": "<switch test=\"`$tmp.naming-data-payload == ''`\">\n", + "comments": "", + "outputs": 1, + "x": 1096.8571166992188, + "y": 2014.5714263916016, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "781da2e9.01d83c" + ] + ] + }, + { + "id": "781da2e9.01d83c", + "type": "not-found", + "name": "false", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 1333.8571166992188, + "y": 2015.5714263916016, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "600486cd.2b6308" + ] + ] + }, + { + "id": "600486cd.2b6308", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1371.8571166992188, + "y": 2073.5714263916016, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "85561c80.3ef308", + "ef4a1fc.34c336", + "4c175841.300a1", + "333a840.1d25d7c", + "f671137e.43c9", + "99f26ef3.280eb", + "80fef6f4.c675b" + ] + ] + }, + { + "id": "b2d3cc7b.89669", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1017.8571166992188, + "y": 5324.571426391602, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "6a40e563.5a14a4", + "b9630ea3.d96b18", + "7640b347.b23714" + ] + ] + }, + { + "id": "6a40e563.5a14a4", + "type": "set", + "name": "set set payload data", + "xml": "<set>\n\t<parameter name='tmp.naming-data-payload' value='{"elements":[' />\n\t<parameter name='tmp.gen-name_length' value='0' />", + "comments": "", + "x": 1254.8571166992188, + "y": 5323.571426391602, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "7640b347.b23714", + "type": "switchNode", + "name": "switch tmp.naming-data-payload is null", + "xml": "<switch test=\"`$tmp.naming-data-payload == ''`\">\n", + "comments": "", + "outputs": 1, + "x": 1297.1071472167969, + "y": 5514.071548461914, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "48235ce0.3408cc" + ] + ] + }, + { + "id": "48235ce0.3408cc", + "type": "not-found", + "name": "false", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 1530.857177734375, + "y": 5513.821304321289, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "7c76786f.4904" + ] + ] + }, + { + "id": "7c76786f.4904", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1518.607177734375, + "y": 5591.071670532227, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "98c04a64.a011c", + "9f73d864.8536d8", + "d2f1471f.d735d", + "b6489347.bb4308", + "3caf0f0c.12a5b8", + "8a66938a.1460b", + "c7bfb325.ec2d98", + "267d42ee.73dbde", + "90b8bf99.7de998" + ] + ] + }, + { + "id": "c465ea91.13fb38", + "type": "execute", + "name": "execute readProperties", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n", + "comments": "", + "outputs": 1, + "x": 383, + "y": 193, + "z": "8ffa18ff.21a748", + "wires": [ + [] + ] + }, + { + "id": "90b8bf99.7de998", + "type": "execute", + "name": "execute RestApiCallNode - POST gen-name", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > \n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.naming.gen-name.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.naming.gen-name.url + $prop.restapi.naming.gen-name.service`' />\n <parameter name='restapiUser' value='`$prop.naming.gen-name.user`' />\n <parameter name='restapiPassword' value='`$prop.naming.gen-name.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name=\"responsePrefix\" value=\"nameGenResponse\" />\n\n\n", + "comments": "", + "outputs": 1, + "x": 1779, + "y": 5804, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "7e5bd1ab.209ca", + "90a92735.264c5" + ] + ] + }, + { + "id": "80fef6f4.c675b", + "type": "execute", + "name": "execute RestApiCallNode - POST gen-name", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > \n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.naming.gen-name.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.naming.gen-name.url + $prop.restapi.naming.gen-name.service`' />\n <parameter name='restapiUser' value='`$prop.naming.gen-name.user`' />\n <parameter name='restapiPassword' value='`$prop.naming.gen-name.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name=\"responsePrefix\" value=\"nameGenResponse\" />\n\n\n", + "comments": "", + "outputs": 1, + "x": 1682, + "y": 2246, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "88d774fa.1d1a38", + "157b3125.a0ffff" + ] + ] + }, + { + "id": "40117641.f32018", + "type": "execute", + "name": "execute RestApiCallNode - DELETE gen-name", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > \n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.naming.gen-name.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.naming.gen-name.url + $prop.restapi.naming.gen-name.service`' />\n <parameter name='restapiUser' value='`$prop.naming.gen-name.user`' />\n <parameter name='restapiPassword' value='`$prop.naming.gen-name.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"nameGenResponse\" />\n\n\n", + "comments": "", + "outputs": 1, + "x": 1899, + "y": 4211, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "cb05a44b.81acd", + "ba1d7d79.ebca9" + ] + ] + }, + { + "id": "4379c30d.8a80a4", + "type": "execute", + "name": "execute RestApiCallNode - DELETE gen-name", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > \n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.naming.gen-name.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.naming.gen-name.url + $prop.restapi.naming.gen-name.service`' />\n <parameter name='restapiUser' value='`$prop.naming.gen-name.user`' />\n <parameter name='restapiPassword' value='`$prop.naming.gen-name.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"nameGenResponse\" />\n\n\n", + "comments": "", + "outputs": 1, + "x": 1792, + "y": 996, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "97b12709.514e68", + "d0e601f9.671c6" + ] + ] + }, + { + "id": "de7f57d6.741e4", + "type": "comment", + "name": "For Generate Name DG Capability ", + "info": "Support Bulk assign and single delete\nAlso calls Naming gen mS for assign/un-assign\n\nAdded by Ajay Singh(as396y)", + "comments": "", + "x": 846, + "y": 123, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "169273ad.322bdc", + "type": "set", + "name": "set status as DELETED", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.status`' value='DELETED' />", + "comments": "", + "x": 2691.1112060546875, + "y": 1477.7779541015625, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "24da0c57.b0398c", + "type": "set", + "name": "set status SUCCESS", + "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.status`' value='SUCCESS' />\n", + "comments": "", + "x": 2624.44482421875, + "y": 2671.1112670898438, + "z": "8ffa18ff.21a748", + "wires": [] + }, + { + "id": "be18f58.a0ee008", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1946.8572082519531, + "y": 1299.1427688598633, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "1bb7fc63.6e9f3c", + "d888d83a.b7d8", + "16707bfd.c97154" + ] + ] + }, + { + "id": "c872b3d2.2f9e08", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2498.888916015625, + "y": 1444.4444580078125, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "169273ad.322bdc", + "8cb3cf6f.94a54" + ] + ] + }, + { + "id": "88e1aa71.08c4d", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2417.77783203125, + "y": 2640.0000610351562, + "z": "8ffa18ff.21a748", + "wires": [ + [ + "d351c878.19363", + "24da0c57.b0398c" + ] + ] + } +]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-mS-mac-address-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-mS-mac-address-assign.json index e8c62c80..9cf0bf41 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-mS-mac-address-assign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-mS-mac-address-assign.json @@ -1 +1 @@ -[{"id":"7bf4d1a4.19d72","type":"dgstart","name":"DGSTART","outputs":1,"x":120,"y":36,"z":"49f11553.28c29c","wires":[["4d0677c6.367138"]]},{"id":"4d0677c6.367138","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":378.9403991699219,"y":36.32145690917969,"z":"49f11553.28c29c","wires":[["41de3cd3.931d34"]]},{"id":"ce021d20.bb75e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":120,"y":91,"z":"49f11553.28c29c","wires":[["3a55a76e.5fcb98","ea86d577.27bfa8","c740ee24.70b1c","8de816b3.3b10d8","4cffbb79.37f154","937a5b68.3f7018","1517a6d1.e2b0c9"]]},{"id":"b97b03f1.6a8c","type":"comment","name":"Validate inputs","info":"ss.capability-action should be \"ASSIGN\" or \"\"UNASSIGN\"","comments":"","x":249,"y":130,"z":"49f11553.28c29c","wires":[]},{"id":"1517a6d1.e2b0c9","type":"switchNode","name":"switch ss.capability-action (assign| unassign)","xml":"<switch test='`$ss.capability-action`'>\n","comments":"","outputs":1,"x":321,"y":3096,"z":"49f11553.28c29c","wires":[["97880e7a.706b9","6e59c5de.77ff3c"]]},{"id":"97880e7a.706b9","type":"outcome","name":"assign","xml":"<outcome value='assign'>","comments":"","outputs":1,"x":284.25006103515625,"y":3164.75,"z":"49f11553.28c29c","wires":[["6466676a.e4e518"]]},{"id":"6e59c5de.77ff3c","type":"outcome","name":"unassign","xml":"<outcome value='unassign'>","comments":"","outputs":1,"x":324,"y":3778,"z":"49f11553.28c29c","wires":[["9890fe8e.13a7a"]]},{"id":"c66abc48.0cf27","type":"comment","name":"Call self-service-capability-param-resolution DG to resolve all resource-keys","info":"","comments":"","x":432,"y":493,"z":"49f11553.28c29c","wires":[]},{"id":"3a55a76e.5fcb98","type":"switchNode","name":"switch ss.capability-name","xml":"<switch test=\"`$ss.capability-name`\">\n","comments":"","outputs":1,"x":286,"y":173,"z":"49f11553.28c29c","wires":[["88e6e51d.69fea8","3285fa47.677276","51c348b8.5400f8","98462d6a.386e1"]]},{"id":"88e6e51d.69fea8","type":"not-found","name":"not-found","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":560,"y":146,"z":"49f11553.28c29c","wires":[["f8ba93eb.3b672"]]},{"id":"3285fa47.677276","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":550,"y":186,"z":"49f11553.28c29c","wires":[["f8ba93eb.3b672"]]},{"id":"51c348b8.5400f8","type":"other","name":"mS-mac-address-assign ","xml":"<outcome value='mS-mac-address-assign'>\n","comments":"","outputs":1,"x":603,"y":227,"z":"49f11553.28c29c","wires":[["cbe46562.045fc8"]]},{"id":"6164f080.f1d8d","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='ss.capability-name is not set' />\n","comments":"","x":862,"y":182,"z":"49f11553.28c29c","wires":[]},{"id":"98462d6a.386e1","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":553,"y":106,"z":"49f11553.28c29c","wires":[["f8ba93eb.3b672"]]},{"id":"cbe46562.045fc8","type":"record","name":"record","xml":"<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-name is mS-mac-address-assign\"/>","comments":"","outputs":1,"x":845,"y":227,"z":"49f11553.28c29c","wires":[[]]},{"id":"ea86d577.27bfa8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":244,"y":539,"z":"49f11553.28c29c","wires":[["a108bc30.a26be","a1865f04.1684b","e6533a36.caa458"]]},{"id":"a1865f04.1684b","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: call self-service-capability-param-resolution DG\"/>","comments":"","outputs":1,"x":271,"y":597,"z":"49f11553.28c29c","wires":[[]]},{"id":"a108bc30.a26be","type":"set","name":"set variables for calling capability-param-resolution","xml":"<set>\n<!--<parameter name='name' value='value' />-->","comments":"","x":407.6904296875,"y":642.3095703125,"z":"49f11553.28c29c","wires":[]},{"id":"e6533a36.caa458","type":"call","name":"call GR-API:self-serve-capability-param-resolution","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n","comments":"","outputs":1,"x":404.023681640625,"y":688.976318359375,"z":"49f11553.28c29c","wires":[["b5b8fd64.0f6ed","1d8c4d61.457f73"]]},{"id":"b5b8fd64.0f6ed","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":718.7379760742188,"y":665.83349609375,"z":"49f11553.28c29c","wires":[["3284ee31.dbd392"]]},{"id":"1d8c4d61.457f73","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":722.0713259379067,"y":717.5001392364502,"z":"49f11553.28c29c","wires":[[]]},{"id":"adf382f0.6b643","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='402' />\n<parameter name='error-message' value='Failure calling self-service-capability-param-resolution' />\n","comments":"","x":1005,"y":688,"z":"49f11553.28c29c","wires":[]},{"id":"81f4dee7.0c2ed","type":"comment","name":"Loop thru vf-module-params for ALL matches with ss.capability-name","info":"","comments":"","x":411,"y":758,"z":"49f11553.28c29c","wires":[]},{"id":"557b99b5.739db8","type":"for","name":"for each vf-module-parameters","xml":"<for index='vf-module-param-index' start='0' end='`$tmp.vf-module-parameters-length`' >\n","comments":"","outputs":1,"x":373,"y":942,"z":"49f11553.28c29c","wires":[["d0ca161f.60d4d8","18493294.3b694d"]]},{"id":"18493294.3b694d","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: vf-module-param-index\"/>\n<parameter name=\"field3\" value='`$vf-module-param-index`'/>","comments":"","outputs":1,"x":586,"y":942,"z":"49f11553.28c29c","wires":[[]]},{"id":"d0ca161f.60d4d8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":355,"y":991,"z":"49f11553.28c29c","wires":[["15a20296.9654bd","ff0ba945.2b7078"]]},{"id":"c740ee24.70b1c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":244,"y":804,"z":"49f11553.28c29c","wires":[["35627889.198308","557b99b5.739db8","f76a923e.1777d"]]},{"id":"35627889.198308","type":"set","name":"set vf-module-parameters-length","xml":"<set>\n<parameter name='tmp.vf-module-parameters-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' />\n","comments":"","x":380,"y":898,"z":"49f11553.28c29c","wires":[]},{"id":"15a20296.9654bd","type":"set","name":"set vfModuleParamsCapabilityName and intiailize tmp.* mS input params","xml":"<set>\n<parameter name='vfModuleParamsCapabilityName' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.capability-name`' />\n<parameter name='tmp.vnfHostName' value='' />\n<parameter name='tmp.policyInstanceName' value='' />\n<parameter name='tmp.cloudParamName' value='' />\n<parameter name='tmp.swName' value='' />\n<parameter name='tmp.resourceValue' value='' />","comments":"","x":579,"y":1080,"z":"49f11553.28c29c","wires":[]},{"id":"ff0ba945.2b7078","type":"switchNode","name":"switch compare vfModuleParamsCapabilityName and ss.capability-name","xml":"<switch test=\"`$ss.capability-name == $vfModuleParamsCapabilityName`\">","comments":"","outputs":1,"x":578,"y":1125,"z":"49f11553.28c29c","wires":[["64a2b02f.091b6","5b2a978e.33ad68"]]},{"id":"8de816b3.3b10d8","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/self-serve-mS-mac-address-assign.log' />\n","comments":"","outputs":1,"x":214,"y":4795,"z":"49f11553.28c29c","wires":[[]]},{"id":"4cffbb79.37f154","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-parameters-index].resource-resolution-data.status`\" value='SUCCESS' />","comments":"","x":221,"y":4850,"z":"49f11553.28c29c","wires":[]},{"id":"64a2b02f.091b6","type":"outcome","name":"outcome:ss.capability-name match","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":477,"y":1173,"z":"49f11553.28c29c","wires":[["a5d9689a.f6d4b8"]]},{"id":"5b2a978e.33ad68","type":"other","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":387,"y":1214,"z":"49f11553.28c29c","wires":[[]]},{"id":"b765058d.012728","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Found ss.capability-name MATCH\"/>","comments":"","outputs":1,"x":823,"y":1173,"z":"49f11553.28c29c","wires":[[]]},{"id":"a5d9689a.f6d4b8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":691,"y":1173,"z":"49f11553.28c29c","wires":[["b765058d.012728","f8298f45.6dd8f","e795d2b2.de9ea"]]},{"id":"b833668a.32a2e8","type":"set","name":"set resource-resolution-data","xml":"<set>\n<parameter name='tmp.resource-resolution-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.`' />\n","comments":"","x":814,"y":1483,"z":"49f11553.28c29c","wires":[]},{"id":"f8298f45.6dd8f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":729,"y":1708,"z":"49f11553.28c29c","wires":[["d8a79021.ada8a","efb6904c.0b132","32ffaea4.ebf822","3f4780f3.5b1af","fc695bea.55efa8","7ee831e2.82547","98494924.3c42c8","b1f621f4.2d574","dcd2ceec.8e369","7c75bd8a.d2b754"]]},{"id":"f192106f.aba0a","type":"comment","name":"Resolve hostname, policy-instance-name, cloud-param-name and sw-name from resource-resolution-data","info":"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters[$vf-module-params-index].param.resource-resolution-data.resource-key[$key-index].value \nwhere its corresponding resource-key[$key-index].name=vnf-name","comments":"","x":997,"y":1662,"z":"49f11553.28c29c","wires":[]},{"id":"d8a79021.ada8a","type":"set","name":"set resource-key-length","xml":"<set>\n<parameter name='tmp.resource-key-length' value='`$tmp.resource-resolution-data.resource-key_length`' />\n","comments":"","x":803,"y":1768,"z":"49f11553.28c29c","wires":[]},{"id":"efb6904c.0b132","type":"for","name":"for each resource-resolution-data.resource-key","xml":"<for index='key-index' start='0' end='`$tmp.resource-resolution-data.resource-key_length`' >\n","comments":"","outputs":1,"x":878,"y":1813,"z":"49f11553.28c29c","wires":[["45cc14c2.4d9acc","529acf7f.f236"]]},{"id":"529acf7f.f236","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: key-index\"/>\n<parameter name=\"field3\" value='`$key-index`'/>","comments":"","outputs":1,"x":1145,"y":1813,"z":"49f11553.28c29c","wires":[[]]},{"id":"45cc14c2.4d9acc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":808,"y":1862,"z":"49f11553.28c29c","wires":[["a9f4ffa9.145ae"]]},{"id":"a9f4ffa9.145ae","type":"switchNode","name":"switch compare resource-key.name","xml":"<switch test=\"`$tmp.resource-resolution-data.resource-key[$key-index].name`\">","comments":"","outputs":1,"x":904,"y":1909,"z":"49f11553.28c29c","wires":[["e48f84f.8010178","3365afc0.b8aeb","77756d7a.b7d954"]]},{"id":"e48f84f.8010178","type":"outcome","name":"key resource key","xml":"<outcome value='key'>\n","comments":"","outputs":1,"x":910,"y":1995,"z":"49f11553.28c29c","wires":[["74c1a54.475825c"]]},{"id":"74c1a54.475825c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1180,"y":1995,"z":"49f11553.28c29c","wires":[["16486832.4d3a98","5950731f.f665bc","956ecb72.c0aa28"]]},{"id":"16486832.4d3a98","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Found resource-resolution-data.name = vnf-name\"/>","comments":"","outputs":1,"x":1312,"y":1994,"z":"49f11553.28c29c","wires":[[]]},{"id":"5950731f.f665bc","type":"set","name":"set vnfHostName","xml":"<set>\n<parameter name='tmp.vnfHostName' value='`$tmp.resource-resolution-data.resource-key[$key-index].value`' />\n","comments":"","x":1215,"y":2043,"z":"49f11553.28c29c","wires":[]},{"id":"32ffaea4.ebf822","type":"switchNode","name":"switch validate resolved vnfHostNamne","xml":"<switch test=\"`$tmp.vnfHostName`\">\n","comments":"","outputs":1,"x":863,"y":2290,"z":"49f11553.28c29c","wires":[["1e03d899.4d5c37","b455d9e7.cd4de8"]]},{"id":"1e03d899.4d5c37","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1153,"y":2264,"z":"49f11553.28c29c","wires":[["13ad3ae1.dd3895"]]},{"id":"b455d9e7.cd4de8","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1152,"y":2310,"z":"49f11553.28c29c","wires":[["13ad3ae1.dd3895"]]},{"id":"31e2f8be.f33c18","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='403' />\n<parameter name='error-message' value='vnfHostName is not set' />\n","comments":"","x":1446,"y":2330,"z":"49f11553.28c29c","wires":[]},{"id":"df14baa.538b448","type":"set","name":"set resource-resolution-data.status to SUCCESS","xml":"<set>\n<parameter name=\"`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status`\" value='SUCCESS' />\n","comments":"","x":738,"y":3618,"z":"49f11553.28c29c","wires":[]},{"id":"83429548.44e578","type":"for","name":"for each vf-module-parameters","xml":"<for index='vf-module-param-index' start='0' end='`$tmp.vf-module-parameters-length`' >\n","comments":"","outputs":1,"x":620,"y":3473,"z":"49f11553.28c29c","wires":[["5dc9240c.a731ac","e32c2884.0da7f8"]]},{"id":"e32c2884.0da7f8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: vf-module-param-index\"/>\n<parameter name=\"field3\" value='`$vf-module-param-index`'/>","comments":"","outputs":1,"x":832,"y":3473,"z":"49f11553.28c29c","wires":[[]]},{"id":"5dc9240c.a731ac","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":604,"y":3522,"z":"49f11553.28c29c","wires":[["e0e1ff6c.f9e59","df14baa.538b448"]]},{"id":"d7a94ac5.4ee0d8","type":"set","name":"set mac-address-assign test data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length' value='4' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].name' value='vmxvpfe_sriov41_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].value' value='${vmxvpfe_sriov41_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].name' value='vmxvpfe_sriov42_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].value' value='somevalue-already-assigned' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].name' value='vmxvpfe_sriov43_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].value' value='${vmxvpfe_sriov43_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].name' value='vmxvpfe_sriov44_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].value' value='${vmxvpfe_sriov44_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[2].value' value='JUNOS' />","comments":"","x":1113,"y":533,"z":"49f11553.28c29c","wires":[]},{"id":"83d65996.c3dca8","type":"comment","name":"Set temporary test data * TEST-ONLY *","info":"","comments":"","x":552,"y":528,"z":"49f11553.28c29c","wires":[]},{"id":"956ecb72.c0aa28","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: resolved vnfHostName: \"/>\n<parameter name=\"field3\" value='`$tmp.vnfHostName`'/>","comments":"","outputs":1,"x":1184,"y":2089,"z":"49f11553.28c29c","wires":[[]]},{"id":"937a5b68.3f7018","type":"switchNode","name":"switch ss.capability-action","xml":"<switch test=\"`$ss.capability-action`\">\n","comments":"","outputs":1,"x":283,"y":292,"z":"49f11553.28c29c","wires":[["4762a00.1cbdf6","d346113b.662b8","ae2cd0b9.c0e3f","2a86c91f.d1ce56","48302673.00a098"]]},{"id":"4762a00.1cbdf6","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":549,"y":275,"z":"49f11553.28c29c","wires":[[]]},{"id":"d346113b.662b8","type":"not-found","name":"not-found","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":556,"y":315,"z":"49f11553.28c29c","wires":[["c6c42ae2.eff988"]]},{"id":"ae2cd0b9.c0e3f","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":546,"y":355,"z":"49f11553.28c29c","wires":[[]]},{"id":"2a86c91f.d1ce56","type":"other","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":547,"y":396,"z":"49f11553.28c29c","wires":[["a6ed29e1.6f6f38"]]},{"id":"2a58f163.5019be","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='ss.capability-action is not set' />\n","comments":"","x":865,"y":351,"z":"49f11553.28c29c","wires":[]},{"id":"48302673.00a098","type":"other","name":"unassign","xml":"<outcome value='unassign'>\n","comments":"","outputs":1,"x":556,"y":439,"z":"49f11553.28c29c","wires":[["bd0f2ac4.457a68"]]},{"id":"a6ed29e1.6f6f38","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-action is assign\"/>","comments":"","outputs":1,"x":706,"y":396,"z":"49f11553.28c29c","wires":[[]]},{"id":"bd0f2ac4.457a68","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-action is unassign\"/>","comments":"","outputs":1,"x":707,"y":439,"z":"49f11553.28c29c","wires":[[]]},{"id":"e0e1ff6c.f9e59","type":"switchNode","name":"switch vf-module-parameters.param.name == mac-address-list[].name","xml":"<switch test=\"`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].name == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].name`\">\n","comments":"","outputs":1,"x":802,"y":3571,"z":"49f11553.28c29c","wires":[["1fd668f7.cdc337"]]},{"id":"d7bf35d6.132f58","type":"set","name":"set vf-module-parameters.param.value to assigned mac address","xml":"<set>\n<parameter name=\"`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].value`\" value=\"`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].value`\" />\n","comments":"","x":2013,"y":3735,"z":"49f11553.28c29c","wires":[]},{"id":"9890fe8e.13a7a","type":"block","name":"block:atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":360,"y":3827,"z":"49f11553.28c29c","wires":[["d6b2bdc8.28f4b","e3815c89.19818","c0e224f4.f2ee48"]]},{"id":"dabad6df.ca2188","type":"comment","name":"Call Unassign MAC address microService","info":"","comments":"","x":605.5,"y":3782,"z":"49f11553.28c29c","wires":[]},{"id":"3635e0e6.833f8","type":"set","name":"set vf-module-parameters.param.value to assigned mac address","xml":"<set>\n<parameter name=\"`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status`\" value=\"DELETED\" />\n","comments":"","x":1777,"y":4081,"z":"49f11553.28c29c","wires":[]},{"id":"395c40c2.33595","type":"comment","name":"Check that resource-resolution-data.status is PENDING","info":"","comments":"","x":902,"y":1536,"z":"49f11553.28c29c","wires":[]},{"id":"f8ba93eb.3b672","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":705,"y":145,"z":"49f11553.28c29c","wires":[["5bbceeb9.b1833","6164f080.f1d8d"]]},{"id":"5bbceeb9.b1833","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-name is not mS-mac-address-assign or it is not set\"/>","comments":"","outputs":1,"x":845,"y":104,"z":"49f11553.28c29c","wires":[[]]},{"id":"cd1dd0a6.2ac37","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='resource-resolution-data.status' value='FAILED' />","comments":"","x":886,"y":142,"z":"49f11553.28c29c","wires":[]},{"id":"9880892.85f7378","type":"comment","name":"resrouce-resolution-data is not yet set","info":"","comments":"","x":1144,"y":140,"z":"49f11553.28c29c","wires":[]},{"id":"c6c42ae2.eff988","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":705,"y":315,"z":"49f11553.28c29c","wires":[["ad4fd223.b06a1","2a58f163.5019be"]]},{"id":"ad4fd223.b06a1","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-action is not set\"/>","comments":"","outputs":1,"x":849,"y":273,"z":"49f11553.28c29c","wires":[[]]},{"id":"ca0033cc.33011","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='resource-resolution-data.status' value='FAILURE' />","comments":"","x":891,"y":311,"z":"49f11553.28c29c","wires":[]},{"id":"3284ee31.dbd392","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":845,"y":666,"z":"49f11553.28c29c","wires":[["adbb65ad.0b7198","adf382f0.6b643"]]},{"id":"adbb65ad.0b7198","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Failure calling self-service-capability-param-resolution\"/>","comments":"","outputs":1,"x":988,"y":645,"z":"49f11553.28c29c","wires":[[]]},{"id":"d9e6bdbc.90de5","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: vnfHostName is not set\"/>","comments":"","outputs":1,"x":1410,"y":2242,"z":"49f11553.28c29c","wires":[[]]},{"id":"5e8ee822.4540e8","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1469,"y":2287,"z":"49f11553.28c29c","wires":[]},{"id":"13ad3ae1.dd3895","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1288,"y":2287,"z":"49f11553.28c29c","wires":[["d9e6bdbc.90de5","5e8ee822.4540e8","31e2f8be.f33c18"]]},{"id":"d04355c3.417358","type":"switchNode","name":"switch tmp.resource-resolution-data = PENDING","xml":"<switch test=\"`$tmp.resource-resolution-data.status == 'PENDING'`\">","comments":"","outputs":1,"x":884,"y":1587,"z":"49f11553.28c29c","wires":[["be95e99c.b7bd58"]]},{"id":"d82a8b0.25d6a78","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1352,"y":1587,"z":"49f11553.28c29c","wires":[["67a991be.14e2b","e51475f0.abd628","5a02f00e.359d7"]]},{"id":"67a991be.14e2b","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: reseouce-resolution-data.status is not PENDING\"/>","comments":"","outputs":1,"x":1492,"y":1547,"z":"49f11553.28c29c","wires":[[]]},{"id":"5a02f00e.359d7","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1533,"y":1586,"z":"49f11553.28c29c","wires":[]},{"id":"e51475f0.abd628","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='reseouce-resolution-data.status is not PENDING' />\n","comments":"","x":1504,"y":1627,"z":"49f11553.28c29c","wires":[]},{"id":"be95e99c.b7bd58","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1188,"y":1587,"z":"49f11553.28c29c","wires":[["d82a8b0.25d6a78"]]},{"id":"b747603e.9f9c","type":"comment","name":"Call Assign MAC address microService","info":"","comments":"","x":562,"y":3166,"z":"49f11553.28c29c","wires":[]},{"id":"fc695bea.55efa8","type":"switchNode","name":"switch validate resolved policyInstanceName","xml":"<switch test=\"`$tmp.policyInstanceName`\">\n","comments":"","outputs":1,"x":884,"y":2561,"z":"49f11553.28c29c","wires":[["1d99c3b4.89ca5c","28aa41f0.c83cce"]]},{"id":"1d99c3b4.89ca5c","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1149,"y":2541,"z":"49f11553.28c29c","wires":[["1612f486.989c8b"]]},{"id":"28aa41f0.c83cce","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1151,"y":2581,"z":"49f11553.28c29c","wires":[["1612f486.989c8b"]]},{"id":"af7d3f12.8fe2f","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='403' />\n<parameter name='error-message' value='policyInstanceName is not set and action is assign' />\n","comments":"","x":1883,"y":2603,"z":"49f11553.28c29c","wires":[]},{"id":"9c72660f.c666b8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: policyInstanceName is not set and action is assign\"/>","comments":"","outputs":1,"x":1864,"y":2521,"z":"49f11553.28c29c","wires":[[]]},{"id":"479b53da.22197c","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1906,"y":2560,"z":"49f11553.28c29c","wires":[]},{"id":"9cfb0a8c.350bb8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1728,"y":2560,"z":"49f11553.28c29c","wires":[["9c72660f.c666b8","479b53da.22197c","af7d3f12.8fe2f"]]},{"id":"3365afc0.b8aeb","type":"outcome","name":"policy-instance-name resource key","xml":"<outcome value='policy-instance-name'>\n","comments":"","outputs":1,"x":1553,"y":1997,"z":"49f11553.28c29c","wires":[["529fe780.466c98"]]},{"id":"529fe780.466c98","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1776,"y":1997,"z":"49f11553.28c29c","wires":[["88aa0755.dfbfb8","5f9db5b0.14c1dc","913d0484.6580f8"]]},{"id":"88aa0755.dfbfb8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Found resource-resolution-data.name = policy-instance-name-name\"/>","comments":"","outputs":1,"x":1908,"y":1997,"z":"49f11553.28c29c","wires":[[]]},{"id":"5f9db5b0.14c1dc","type":"set","name":"set policyInstanceName","xml":"<set>\n<parameter name='tmp.policyInstanceName' value='`$tmp.resource-resolution-data.resource-key[$key-index].value`' />\n","comments":"","x":1828,"y":2045,"z":"49f11553.28c29c","wires":[]},{"id":"913d0484.6580f8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: resolved policyInstanceName: \"/>\n<parameter name=\"field3\" value='`$tmp.policyInstanceName`'/>","comments":"","outputs":1,"x":1780,"y":2091,"z":"49f11553.28c29c","wires":[[]]},{"id":"77756d7a.b7d954","type":"outcome","name":"sw-name resource key","xml":"<outcome value='sw-name'>\n","comments":"","outputs":1,"x":1527,"y":2143,"z":"49f11553.28c29c","wires":[["dee6e77e.a38548"]]},{"id":"dee6e77e.a38548","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1778,"y":2143,"z":"49f11553.28c29c","wires":[["4c52afb7.937f1","b41afc4d.35241","62817552.215acc"]]},{"id":"4c52afb7.937f1","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Found resource-resolution-data.name = sw-name\"/>","comments":"","outputs":1,"x":1910,"y":2143,"z":"49f11553.28c29c","wires":[[]]},{"id":"b41afc4d.35241","type":"set","name":"set swName","xml":"<set>\n<parameter name='tmp.swName' value='`$tmp.resource-resolution-data.resource-key[$key-index].value`' />\n","comments":"","x":1799,"y":2191,"z":"49f11553.28c29c","wires":[]},{"id":"62817552.215acc","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: resolved swName: \"/>\n<parameter name=\"field3\" value='`$tmp.swName`'/>","comments":"","outputs":1,"x":1784,"y":2235,"z":"49f11553.28c29c","wires":[[]]},{"id":"7ee831e2.82547","type":"switchNode","name":"switch validate resolved cloudParamName","xml":"<switch test=\"`$tmp.cloudParamName`\">\n","comments":"","outputs":1,"x":880,"y":2424,"z":"49f11553.28c29c","wires":[["c91692b6.65ce8","32988ed5.054c82"]]},{"id":"c91692b6.65ce8","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1156,"y":2404,"z":"49f11553.28c29c","wires":[["1039fc6f.eb7844"]]},{"id":"32988ed5.054c82","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1158,"y":2444,"z":"49f11553.28c29c","wires":[["1039fc6f.eb7844"]]},{"id":"ed9695ad.3bae68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='403' />\n<parameter name='error-message' value='cloudParamName is not set' />\n","comments":"","x":1443,"y":2464,"z":"49f11553.28c29c","wires":[]},{"id":"67575869.37b978","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: cloudParamName is not set\"/>","comments":"","outputs":1,"x":1424,"y":2382,"z":"49f11553.28c29c","wires":[[]]},{"id":"5523be2f.8450e","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1466,"y":2421,"z":"49f11553.28c29c","wires":[]},{"id":"1039fc6f.eb7844","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1288,"y":2421,"z":"49f11553.28c29c","wires":[["67575869.37b978","5523be2f.8450e","ed9695ad.3bae68"]]},{"id":"3f4780f3.5b1af","type":"switchNode","name":"switch validate resolved swName","xml":"<switch test=\"`$tmp.swName`\">\n","comments":"","outputs":1,"x":854,"y":2689,"z":"49f11553.28c29c","wires":[["28d80c07.9c9e04","e6ec0202.21c26"]]},{"id":"28d80c07.9c9e04","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1151,"y":2669,"z":"49f11553.28c29c","wires":[["52391bf3.425114"]]},{"id":"e6ec0202.21c26","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1153,"y":2709,"z":"49f11553.28c29c","wires":[["52391bf3.425114"]]},{"id":"36d970ba.f973a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='403' />\n<parameter name='error-message' value='swName is not set and action is assign' />\n","comments":"","x":1887,"y":2734,"z":"49f11553.28c29c","wires":[]},{"id":"ec8f9748.d8d1b8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: swName is not set and action is assign\"/>","comments":"","outputs":1,"x":1868,"y":2652,"z":"49f11553.28c29c","wires":[[]]},{"id":"9b41bab.5d2c148","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1910,"y":2691,"z":"49f11553.28c29c","wires":[]},{"id":"a293551e.0dbae8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1735,"y":2689,"z":"49f11553.28c29c","wires":[["ec8f9748.d8d1b8","9b41bab.5d2c148","36d970ba.f973a"]]},{"id":"a3d2b1ea.3e7ad","type":"comment","name":"set vnfHostName","info":"","comments":"","x":903,"y":1953,"z":"49f11553.28c29c","wires":[]},{"id":"7180d3e5.b6623c","type":"comment","name":"set policyInstanceName","info":"","comments":"","x":1518,"y":1953,"z":"49f11553.28c29c","wires":[]},{"id":"4be5943a.af143c","type":"comment","name":"set swName","info":"","comments":"","x":1492,"y":2104,"z":"49f11553.28c29c","wires":[]},{"id":"1b6f227f.8f62fe","type":"execute","name":"execute RestapiCallNode","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/mac-address-assign.json'`\" />\n <parameter name='restapiUrl' value=\"`$prop.mac-address-microserivice.url + '/macaddress/service/assign'`\" />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' /> \n <parameter name='customHttpHeaders'\n value=\"Authorization=Basic YWRtaW46YWRtaW4=\" />\n\t<parameter name=\"responsePrefix\" value=\"tmp.mac-address-resp.prefix\" />","comments":"","outputs":1,"x":525,"y":3291,"z":"49f11553.28c29c","wires":[["fb57b9db.6a1d88","2210de9c.a974e2"]]},{"id":"d2857a0f.9c83f8","type":"set","name":"set","xml":"<set>\n<parameter name='prop.restapi.templateDir' value=\"/opt/lsc/restapi/templates\" />\n<parameter name='prop.mac-address-microserivice.url' value=\"http://mtanjv9sdlg51-eth1-0.aic.cip.att.com:8989\" />","comments":"","x":470,"y":3210,"z":"49f11553.28c29c","wires":[]},{"id":"6466676a.e4e518","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":320,"y":3209,"z":"49f11553.28c29c","wires":[["d2857a0f.9c83f8","1b6f227f.8f62fe","c0119016.c8f5b","75b77747.853018"]]},{"id":"c0119016.c8f5b","type":"record","name":"record","xml":"<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: restapi-call-node Call MAC Address microService assign\"/>","comments":"","outputs":1,"x":470,"y":3252,"z":"49f11553.28c29c","wires":[[]]},{"id":"fb57b9db.6a1d88","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":720,"y":3281,"z":"49f11553.28c29c","wires":[["5e381348.a46f6c"]]},{"id":"cd970bc5.886488","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Error calling MAC Address Micro Service assign\"/>\n","comments":"","outputs":1,"x":1062,"y":3204,"z":"49f11553.28c29c","wires":[[]]},{"id":"2210de9c.a974e2","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":722,"y":3323,"z":"49f11553.28c29c","wires":[["6c9579c4.cc79e8"]]},{"id":"5cbbae13.9307d","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: assign SUCCESS\"/>","comments":"","outputs":1,"x":1061,"y":3324,"z":"49f11553.28c29c","wires":[[]]},{"id":"7e55e2a5.9fbb1c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='self-serve-mS-mac-address-assign: Error calling MAC Address Micro Service assign' />\n","comments":"","x":1076,"y":3282,"z":"49f11553.28c29c","wires":[]},{"id":"5e381348.a46f6c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":847,"y":3280,"z":"49f11553.28c29c","wires":[["cd970bc5.886488","7e55e2a5.9fbb1c","b6a624d5.1cf8e8"]]},{"id":"6c9579c4.cc79e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":848,"y":3324,"z":"49f11553.28c29c","wires":[["5cbbae13.9307d"]]},{"id":"e5f3a8f2.389b18","type":"switchNode","name":"switch response-code","xml":"<switch test='`$tmp.pm-response.response-code`'>\n","comments":"","outputs":1,"x":1113,"y":3409,"z":"49f11553.28c29c","wires":[["dcfaaabe.0296b8"]]},{"id":"dcfaaabe.0296b8","type":"outcome","name":"500","xml":"<outcome value='500'>\n","comments":"","outputs":1,"x":1289,"y":3409,"z":"49f11553.28c29c","wires":[["df67c991.658888"]]},{"id":"df67c991.658888","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1295,"y":3451,"z":"49f11553.28c29c","wires":[["30b9131e.63a09c","67447020.0f752","bb43975e.4e1618"]]},{"id":"30b9131e.63a09c","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Error calling Policy Manager getPolicy\"/>\n","comments":"","outputs":1,"x":1440,"y":3408,"z":"49f11553.28c29c","wires":[[]]},{"id":"67447020.0f752","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='self-serve-mS-mac-address-assign: getPolicy call to Policy Manger failed' />\n","comments":"","x":1459,"y":3493,"z":"49f11553.28c29c","wires":[]},{"id":"41de3cd3.931d34","type":"method","name":"method self-serve-mS-mac-address-assign","xml":"<method rpc='self-serve-mS-mac-address-assign' mode='sync'>\n","comments":"","outputs":1,"x":767,"y":36,"z":"49f11553.28c29c","wires":[["ce021d20.bb75e"]]},{"id":"e1fda82f.16b798","type":"set","name":"set","xml":"<set>\n<parameter name='tmp.mac-address-list.' value=\"`$tmp.mac-address-resp.prefix.mac-address-list.`\" />\n","comments":"","x":1062,"y":3362,"z":"49f11553.28c29c","wires":[]},{"id":"75b77747.853018","type":"for","name":"for each address in mac-address-list","xml":"<for index='mac-address-list-index' start='0' end='`$tmp.mac-address-resp.prefix.mac-address-list_length`' >\n","comments":"","outputs":1,"x":562,"y":3384,"z":"49f11553.28c29c","wires":[["2545934f.e62d9c"]]},{"id":"a15833b7.c0517","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: mac-address-list-index|name|value \"/>\n<parameter name=\"field3\" value='`$mac-address-list-index`'/>\n<parameter name=\"field4\" value='`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].name`'/>\n<parameter name=\"field5\" value='`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].value`'/>","comments":"","outputs":1,"x":671,"y":3424,"z":"49f11553.28c29c","wires":[[]]},{"id":"2545934f.e62d9c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":544,"y":3424,"z":"49f11553.28c29c","wires":[["a15833b7.c0517","83429548.44e578"]]},{"id":"4c58c71c.b3c6c8","type":"comment","name":"vnf-name and could-param-name required for assign and unassign","info":"","comments":"","x":937,"y":2226,"z":"49f11553.28c29c","wires":[]},{"id":"d5fbb2b6.accb2","type":"comment","name":"policy-instance-name and sw-name required for assign","info":"","comments":"","x":911,"y":2504,"z":"49f11553.28c29c","wires":[]},{"id":"1612f486.989c8b","type":"switchNode","name":"switch ss.capability-action == assign","xml":"<switch test=\"`$ss.capability-action` == 'assign'\">","comments":"","outputs":1,"x":1377,"y":2560,"z":"49f11553.28c29c","wires":[["6b7c9a0b.7497b4"]]},{"id":"6b7c9a0b.7497b4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1597,"y":2560,"z":"49f11553.28c29c","wires":[["9cfb0a8c.350bb8"]]},{"id":"52391bf3.425114","type":"switchNode","name":"switch ss.capability-action == assign","xml":"<switch test=\"`$ss.capability-action` == 'assign'\">","comments":"","outputs":1,"x":1376,"y":2689,"z":"49f11553.28c29c","wires":[["e220d9fd.f96838"]]},{"id":"e220d9fd.f96838","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1601,"y":2689,"z":"49f11553.28c29c","wires":[["a293551e.0dbae8"]]},{"id":"c0e224f4.f2ee48","type":"execute","name":"execute RestapiCallNode","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/mac-address-unassign.json'`\" />\n <parameter name='restapiUrl' value=\"`$prop.mac-address-microserivice.url + '/macaddress/service/unassign'`\" />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' /> \n <parameter name='customHttpHeaders'\n value=\"Authorization=Basic YWRtaW46YWRtaW4=\" />\n\t<parameter name=\"responsePrefix\" value=\"tmp.mac-address-resp.prefix\" />","comments":"","outputs":1,"x":559,"y":3909,"z":"49f11553.28c29c","wires":[["90394e75.7983e","7f04a5b9.03d47c"]]},{"id":"d6b2bdc8.28f4b","type":"set","name":"set","xml":"<set>\n<parameter name='prop.restapi.templateDir' value=\"/opt/lsc/restapi/templates\" />\n<parameter name='prop.mac-address-microserivice.url' value=\"http://mtanjv9sdlg51-eth1-0.aic.cip.att.com:8989\" />","comments":"","x":504,"y":3828,"z":"49f11553.28c29c","wires":[]},{"id":"e3815c89.19818","type":"record","name":"record","xml":"<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: restapi-call-node Call MAC Address microService unassign\"/>","comments":"","outputs":1,"x":504,"y":3870,"z":"49f11553.28c29c","wires":[[]]},{"id":"90394e75.7983e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":754,"y":3899,"z":"49f11553.28c29c","wires":[["7d22364a.00ccd8"]]},{"id":"e985ac86.2be1c","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Error calling MAC Address Micro Service unassign\"/>\n","comments":"","outputs":1,"x":1047,"y":3817,"z":"49f11553.28c29c","wires":[[]]},{"id":"7f04a5b9.03d47c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":756,"y":3941,"z":"49f11553.28c29c","wires":[["c8fd6afc.857bc8"]]},{"id":"a29f47d1.1990b8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: unassign SUCCESS: response: \"/>\n<parameter name='field3' value='`$tmp.mac-address-resp.prefix.status`' />","comments":"","outputs":1,"x":1050,"y":3942,"z":"49f11553.28c29c","wires":[[]]},{"id":"35449a42.cd0cb6","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='self-serve-mS-mac-address-assign: Error calling MAC Address Micro Service unassign' />\n","comments":"","x":1066,"y":3898,"z":"49f11553.28c29c","wires":[]},{"id":"7d22364a.00ccd8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":881,"y":3898,"z":"49f11553.28c29c","wires":[["e985ac86.2be1c","35449a42.cd0cb6","b3df94aa.38dd88"]]},{"id":"c8fd6afc.857bc8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":882,"y":3942,"z":"49f11553.28c29c","wires":[["a29f47d1.1990b8","32eb5385.0caa4c"]]},{"id":"b6a624d5.1cf8e8","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1100,"y":3244,"z":"49f11553.28c29c","wires":[]},{"id":"bb43975e.4e1618","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1482,"y":3451,"z":"49f11553.28c29c","wires":[]},{"id":"b3df94aa.38dd88","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1089,"y":3858,"z":"49f11553.28c29c","wires":[]},{"id":"32eb5385.0caa4c","type":"switchNode","name":"switch status","xml":"<switch test=\"`$tmp.mac-address-resp.prefix.status == 'deleted successfully'`\">","comments":"","outputs":1,"x":1104,"y":3990,"z":"49f11553.28c29c","wires":[["c57baf20.c1ffd","533327bb.094ae8"]]},{"id":"533327bb.094ae8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1292,"y":4034,"z":"49f11553.28c29c","wires":[["d2de149f.a9ef08"]]},{"id":"c57baf20.c1ffd","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1290,"y":3990,"z":"49f11553.28c29c","wires":[["7f0fc0f0.fd344"]]},{"id":"c64ba45b.712a88","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Address Micro Service unassign did not return: deleted successfully\"/>\n","comments":"","outputs":1,"x":1553,"y":3907,"z":"49f11553.28c29c","wires":[[]]},{"id":"452a2683.28b6c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='self-serve-mS-mac-address-assign: Address Micro Service unassign did not return: deleted successfully' />\n","comments":"","x":1571,"y":3990,"z":"49f11553.28c29c","wires":[]},{"id":"83050dff.db737","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1594,"y":3948,"z":"49f11553.28c29c","wires":[]},{"id":"d2de149f.a9ef08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1409,"y":4034,"z":"49f11553.28c29c","wires":[["a75ab013.74fb6"]]},{"id":"7f0fc0f0.fd344","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1409,"y":3990,"z":"49f11553.28c29c","wires":[["c64ba45b.712a88","83050dff.db737","452a2683.28b6c8"]]},{"id":"a75ab013.74fb6","type":"for","name":"for each vf-module-parameters","xml":"<for index='vf-module-param-index' start='0' end='`$tmp.vf-module-parameters-length`' >\n","comments":"","outputs":1,"x":1626,"y":4034,"z":"49f11553.28c29c","wires":[["3635e0e6.833f8"]]},{"id":"4fd6d670.f4dc08","type":"comment","name":"If capability-name matches, add resource data to miroservice request element","info":"","comments":"","x":585,"y":1039,"z":"49f11553.28c29c","wires":[]},{"id":"d771e1cd.ffe8b","type":"set","name":"set cloudParamName ","xml":"<set>\n<parameter name='tmp.cloudParamName' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].name`' />","comments":"","x":798,"y":1389,"z":"49f11553.28c29c","wires":[]},{"id":"292c2783.39cc08","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: resolved cloudParamName: | resourceValue: \"/>\n<parameter name=\"field3\" value='`$tmp.cloudParamName`'/>\n<parameter name=\"field4\" value='`$tmp.resourceValue`'/>","comments":"","outputs":1,"x":750,"y":1432,"z":"49f11553.28c29c","wires":[[]]},{"id":"f76a923e.1777d","type":"set","name":"initialize microService request elements length","xml":"<set>\n<parameter name='ma.elements.element_length' value='0' />","comments":"","x":422,"y":853,"z":"49f11553.28c29c","wires":[]},{"id":"321881ae.e1707e","type":"comment","name":"If resource-value is NOT already resolved, add this vf-module-parameters.param to the microService assign request","info":"","comments":"","x":1094,"y":2820,"z":"49f11553.28c29c","wires":[]},{"id":"fb516b25.0acb58","type":"comment","name":"Check for $ in vf-module-parameters.param[].value","info":"","comments":"","x":817,"y":1239,"z":"49f11553.28c29c","wires":[]},{"id":"8e89e7e1.f69898","type":"execute","name":"slistringUtils - check param.value for $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].value`\" />\n <parameter name=\"target\" value=\"$\"/>","comments":"","outputs":1,"x":852,"y":1332,"z":"49f11553.28c29c","wires":[["f7ddc41d.042728"]]},{"id":"f7ddc41d.042728","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1084,"y":1332,"z":"49f11553.28c29c","wires":[["f25744a9.dc9668"]]},{"id":"dea1481d.7ad108","type":"set","name":"set resourceValue to param.value","xml":"<set>\n<parameter name='tmp.resourceValue' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].value`' />","comments":"","x":1428,"y":1332,"z":"49f11553.28c29c","wires":[]},{"id":"f25744a9.dc9668","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1212,"y":1332,"z":"49f11553.28c29c","wires":[["dea1481d.7ad108"]]},{"id":"1fd668f7.cdc337","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1128,"y":3571,"z":"49f11553.28c29c","wires":[["69646180.d517c"]]},{"id":"69646180.d517c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1244,"y":3650,"z":"49f11553.28c29c","wires":[["f65630a2.13cba","4cc2a6a2.1745e8"]]},{"id":"f65630a2.13cba","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: mac-address-list MATCH with param.value: \"/>\n<parameter name=\"field3\" value=\"`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].name`\"/>","comments":"","outputs":1,"x":1396,"y":3650,"z":"49f11553.28c29c","wires":[[]]},{"id":"e795d2b2.de9ea","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":720,"y":1281,"z":"49f11553.28c29c","wires":[["8e89e7e1.f69898","d771e1cd.ffe8b","b833668a.32a2e8","d04355c3.417358"]]},{"id":"aabbd0a7.8406b","type":"comment","name":"Unassign request will never execute this logic because capbility-name will be INPUT","info":"","comments":"","x":995,"y":2776,"z":"49f11553.28c29c","wires":[]},{"id":"ba23f780.7e0bf8","type":"comment","name":"Additional check for if resourceValue already resolved set capability-name to INPUT","info":"","comments":"","x":1481,"y":3532,"z":"49f11553.28c29c","wires":[]},{"id":"298e3073.ab37a","type":"comment","name":"If param.value does have $ (not already resolved) set param.value mS output","info":"","comments":"","x":1461,"y":3572,"z":"49f11553.28c29c","wires":[]},{"id":"f20a56f9.f4d278","type":"comment","name":"If param.value does NOT have $ (already resolved) don't set param.value but set capanility-name to INPUT","info":"","comments":"","x":1556,"y":3612,"z":"49f11553.28c29c","wires":[]},{"id":"1ae02e9e.613b31","type":"set","name":"set mac-address-unassign test data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length' value='4' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].name' value='vmxvpfe_sriov41_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].value' value='${vmxvpfe_sriov41_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].name' value='vmxvpfe_sriov42_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].value' value='somevalue-already-assigned' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.capability-name' value='INPUT' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].name' value='vmxvpfe_sriov43_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].value' value='${vmxvpfe_sriov43_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].name' value='vmxvpfe_sriov44_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].value' value='${vmxvpfe_sriov44_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[2].value' value='JUNOS' />","comments":"","x":1122,"y":574,"z":"49f11553.28c29c","wires":[]},{"id":"31e3420e.c637ee","type":"comment","name":"Set temporary test ASSIGN data * TEST-ONLY *","info":"","comments":"","x":1441,"y":534,"z":"49f11553.28c29c","wires":[]},{"id":"69c27aa5.4c6a54","type":"comment","name":"Set temporary test UNASSIGN data * TEST-ONLY *","info":"","comments":"","x":1455,"y":572,"z":"49f11553.28c29c","wires":[]},{"id":"98494924.3c42c8","type":"set","name":"set ma.elements.element to this vf-module-parameters.param","xml":"<set>\n<parameter name='ma.elements.element[$ma.elements.element_length].policy-instance-name' value='`$tmp.policyInstanceName`' />\n<parameter name='ma.elements.element[$ma.elements.element_length].vnf-host-name' value='`$tmp.vnfHostName`' />\n<parameter name='ma.elements.element[$ma.elements.element_length].cloud-param-name' value='`$tmp.cloudParamName`' />\n<parameter name='ma.elements.element[$ma.elements.element_length].sw-name' value='`$tmp.swName`' />","comments":"","x":933,"y":2870,"z":"49f11553.28c29c","wires":[]},{"id":"dcd2ceec.8e369","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Adding this vf-module-parameters.param to ma.elements \"/>\n<parameter name=\"field3\" value='`$ma.elements.element_length`'/>\n<parameter name=\"field4\" value='`$ma.elements.element[$ma.elements.element_length].policy-instance-name`'/>\n<parameter name=\"field5\" value='`$ma.elements.element[$ma.elements.element_length].vnf-host-name`'/>\n<parameter name=\"field6\" value='`$ma.elements.element[$ma.elements.element_length].cloud-param-name`'/>\n<parameter name=\"field7\" value='`$ma.elements.element[$ma.elements.element_length].sw-name`'/>\n<parameter name=\"field8\" value='`$ma.elements.element[$ma.elements.element_length].resource-value`'/>","comments":"","outputs":1,"x":762,"y":2991,"z":"49f11553.28c29c","wires":[[]]},{"id":"7c75bd8a.d2b754","type":"set","name":"increment ma.elements.element_length","xml":"<set>\n<parameter name='ma.elements.element_length' value='`$ma.elements.element_length + 1`' />","comments":"","x":863,"y":3036,"z":"49f11553.28c29c","wires":[]},{"id":"b1f621f4.2d574","type":"switchNode","name":"check if resourceValue is set","xml":"<switch test=\"`$tmp.resourceValue`\">\n","comments":"","outputs":1,"x":833,"y":2918,"z":"49f11553.28c29c","wires":[["f25a8484.98ce68","8213e478.c84b68","42938aae.ae5904"]]},{"id":"f25a8484.98ce68","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1019,"y":2951,"z":"49f11553.28c29c","wires":[[]]},{"id":"8213e478.c84b68","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1019,"y":2992,"z":"49f11553.28c29c","wires":[[]]},{"id":"42938aae.ae5904","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1018,"y":2911,"z":"49f11553.28c29c","wires":[["2d01ba1c.f838c6"]]},{"id":"2d01ba1c.f838c6","type":"set","name":"set ma.elements.element.resource-value to this vf-module-parameters.param","xml":"<set>\n<parameter name='ma.elements.element[$ma.elements.element_length].resource-value' value='`$tmp.resourceValue`' />","comments":"","x":1375,"y":2911,"z":"49f11553.28c29c","wires":[]},{"id":"4cc2a6a2.1745e8","type":"execute","name":"slistringUtils - check param.value for $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].value`\" />\n <parameter name=\"target\" value=\"$\"/>","comments":"","outputs":1,"x":1343,"y":3695,"z":"49f11553.28c29c","wires":[["9d5a40fc.aed04","9f1e7092.0ada8"]]},{"id":"9d5a40fc.aed04","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1575,"y":3695,"z":"49f11553.28c29c","wires":[["82426b14.9463e8"]]},{"id":"8ec62283.b9675","type":"set","name":"set param[].resource-resolution-data.capability-name to INPUT","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.capability-name' value='INPUT' />","comments":"","x":2005,"y":3695,"z":"49f11553.28c29c","wires":[]},{"id":"82426b14.9463e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1703,"y":3695,"z":"49f11553.28c29c","wires":[["8ec62283.b9675"]]},{"id":"9f1e7092.0ada8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1577,"y":3735,"z":"49f11553.28c29c","wires":[["4a3bf9a3.c32a58"]]},{"id":"4a3bf9a3.c32a58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1704,"y":3735,"z":"49f11553.28c29c","wires":[["d7bf35d6.132f58"]]},{"id":"d637c667.949db8","type":"switchNode","name":"switch ss.capability-action (assign| unassign)","xml":"<switch test='`$ss.capability-action`'>\n","comments":"","outputs":1,"x":575,"y":562,"z":"49f11553.28c29c","wires":[["cb233a84.84f258","5caf02ea.cb608c"]]},{"id":"cb233a84.84f258","type":"outcome","name":"assign","xml":"<outcome value='assign'>","comments":"","outputs":1,"x":856,"y":533,"z":"49f11553.28c29c","wires":[["d7a94ac5.4ee0d8"]]},{"id":"5caf02ea.cb608c","type":"outcome","name":"unassign","xml":"<outcome value='unassign'>","comments":"","outputs":1,"x":862,"y":573,"z":"49f11553.28c29c","wires":[["1ae02e9e.613b31"]]}]
\ No newline at end of file +[{"id":"7bf4d1a4.19d72","type":"dgstart","name":"DGSTART","outputs":1,"x":120,"y":36,"z":"49f11553.28c29c","wires":[["4d0677c6.367138"]]},{"id":"4d0677c6.367138","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":378.9403991699219,"y":36.32145690917969,"z":"49f11553.28c29c","wires":[["41de3cd3.931d34"]]},{"id":"ce021d20.bb75e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":120,"y":91,"z":"49f11553.28c29c","wires":[["3a55a76e.5fcb98","ea86d577.27bfa8","c740ee24.70b1c","8de816b3.3b10d8","4cffbb79.37f154","937a5b68.3f7018","1517a6d1.e2b0c9"]]},{"id":"b97b03f1.6a8c","type":"comment","name":"Validate inputs","info":"ss.capability-action should be \"ASSIGN\" or \"\"UNASSIGN\"","comments":"","x":249,"y":130,"z":"49f11553.28c29c","wires":[]},{"id":"1517a6d1.e2b0c9","type":"switchNode","name":"switch ss.capability-action (assign| unassign)","xml":"<switch test='`$ss.capability-action`'>\n","comments":"","outputs":1,"x":321,"y":3096,"z":"49f11553.28c29c","wires":[["97880e7a.706b9","6e59c5de.77ff3c"]]},{"id":"97880e7a.706b9","type":"outcome","name":"assign","xml":"<outcome value='assign'>","comments":"","outputs":1,"x":284.25006103515625,"y":3164.75,"z":"49f11553.28c29c","wires":[["6466676a.e4e518"]]},{"id":"6e59c5de.77ff3c","type":"outcome","name":"unassign","xml":"<outcome value='unassign'>","comments":"","outputs":1,"x":324,"y":3778,"z":"49f11553.28c29c","wires":[["9890fe8e.13a7a"]]},{"id":"c66abc48.0cf27","type":"comment","name":"Call self-serve-capability-param-resolution DG to resolve all resource-keys","info":"","comments":"","x":432,"y":493,"z":"49f11553.28c29c","wires":[]},{"id":"3a55a76e.5fcb98","type":"switchNode","name":"switch ss.capability-name","xml":"<switch test=\"`$ss.capability-name`\">\n","comments":"","outputs":1,"x":286,"y":173,"z":"49f11553.28c29c","wires":[["88e6e51d.69fea8","3285fa47.677276","51c348b8.5400f8","98462d6a.386e1"]]},{"id":"88e6e51d.69fea8","type":"not-found","name":"not-found","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":560,"y":146,"z":"49f11553.28c29c","wires":[["f8ba93eb.3b672"]]},{"id":"3285fa47.677276","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":550,"y":186,"z":"49f11553.28c29c","wires":[["f8ba93eb.3b672"]]},{"id":"51c348b8.5400f8","type":"other","name":"mS-mac-address-assign ","xml":"<outcome value='mS-mac-address-assign'>\n","comments":"","outputs":1,"x":603,"y":227,"z":"49f11553.28c29c","wires":[["cbe46562.045fc8"]]},{"id":"6164f080.f1d8d","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='ss.capability-name is not set' />\n","comments":"","x":862,"y":182,"z":"49f11553.28c29c","wires":[]},{"id":"98462d6a.386e1","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":553,"y":106,"z":"49f11553.28c29c","wires":[["f8ba93eb.3b672"]]},{"id":"cbe46562.045fc8","type":"record","name":"record","xml":"<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-name is mS-mac-address-assign\"/>","comments":"","outputs":1,"x":845,"y":227,"z":"49f11553.28c29c","wires":[[]]},{"id":"ea86d577.27bfa8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":244,"y":539,"z":"49f11553.28c29c","wires":[["a108bc30.a26be","a1865f04.1684b","e6533a36.caa458"]]},{"id":"a1865f04.1684b","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: call self-serve-capability-param-resolution DG\"/>","comments":"","outputs":1,"x":271,"y":597,"z":"49f11553.28c29c","wires":[[]]},{"id":"a108bc30.a26be","type":"set","name":"set variables for calling capability-param-resolution","xml":"<set>\n<!--<parameter name='name' value='value' />-->","comments":"","x":407.6904296875,"y":642.3095703125,"z":"49f11553.28c29c","wires":[]},{"id":"e6533a36.caa458","type":"call","name":"call GR-API:self-serve-capability-param-resolution","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n","comments":"","outputs":1,"x":404.023681640625,"y":688.976318359375,"z":"49f11553.28c29c","wires":[["b5b8fd64.0f6ed","1d8c4d61.457f73"]]},{"id":"b5b8fd64.0f6ed","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":718.7379760742188,"y":665.83349609375,"z":"49f11553.28c29c","wires":[["3284ee31.dbd392"]]},{"id":"1d8c4d61.457f73","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":722.0713259379067,"y":717.5001392364502,"z":"49f11553.28c29c","wires":[[]]},{"id":"adf382f0.6b643","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='402' />\n<parameter name='error-message' value='Failure calling self-serve-capability-param-resolution' />\n","comments":"","x":1005,"y":688,"z":"49f11553.28c29c","wires":[]},{"id":"81f4dee7.0c2ed","type":"comment","name":"Loop thru vf-module-params for ALL matches with ss.capability-name","info":"","comments":"","x":411,"y":758,"z":"49f11553.28c29c","wires":[]},{"id":"557b99b5.739db8","type":"for","name":"for each vf-module-parameters","xml":"<for index='vf-module-param-index' start='0' end='`$tmp.vf-module-parameters-length`' >\n","comments":"","outputs":1,"x":373,"y":942,"z":"49f11553.28c29c","wires":[["d0ca161f.60d4d8","18493294.3b694d"]]},{"id":"18493294.3b694d","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: vf-module-param-index\"/>\n<parameter name=\"field3\" value='`$vf-module-param-index`'/>","comments":"","outputs":1,"x":586,"y":942,"z":"49f11553.28c29c","wires":[[]]},{"id":"d0ca161f.60d4d8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":355,"y":991,"z":"49f11553.28c29c","wires":[["15a20296.9654bd","ff0ba945.2b7078"]]},{"id":"c740ee24.70b1c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":244,"y":804,"z":"49f11553.28c29c","wires":[["35627889.198308","557b99b5.739db8","f76a923e.1777d"]]},{"id":"35627889.198308","type":"set","name":"set vf-module-parameters-length","xml":"<set>\n<parameter name='tmp.vf-module-parameters-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' />\n","comments":"","x":380,"y":898,"z":"49f11553.28c29c","wires":[]},{"id":"15a20296.9654bd","type":"set","name":"set vfModuleParamsCapabilityName and intiailize tmp.* mS input params","xml":"<set>\n<parameter name='vfModuleParamsCapabilityName' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.capability-name`' />\n<parameter name='tmp.vnfHostName' value='' />\n<parameter name='tmp.policyInstanceName' value='' />\n<parameter name='tmp.cloudParamName' value='' />\n<parameter name='tmp.swName' value='' />\n<parameter name='tmp.resourceValue' value='' />","comments":"","x":579,"y":1080,"z":"49f11553.28c29c","wires":[]},{"id":"ff0ba945.2b7078","type":"switchNode","name":"switch compare vfModuleParamsCapabilityName and ss.capability-name","xml":"<switch test=\"`$ss.capability-name == $vfModuleParamsCapabilityName`\">","comments":"","outputs":1,"x":578,"y":1125,"z":"49f11553.28c29c","wires":[["64a2b02f.091b6","5b2a978e.33ad68"]]},{"id":"8de816b3.3b10d8","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/self-serve-mS-mac-address-assign.log' />\n","comments":"","outputs":1,"x":214,"y":4795,"z":"49f11553.28c29c","wires":[[]]},{"id":"4cffbb79.37f154","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-parameters-index].resource-resolution-data.status`\" value='SUCCESS' />","comments":"","x":221,"y":4850,"z":"49f11553.28c29c","wires":[]},{"id":"64a2b02f.091b6","type":"outcome","name":"outcome:ss.capability-name match","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":477,"y":1173,"z":"49f11553.28c29c","wires":[["a5d9689a.f6d4b8"]]},{"id":"5b2a978e.33ad68","type":"other","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":387,"y":1214,"z":"49f11553.28c29c","wires":[[]]},{"id":"b765058d.012728","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Found ss.capability-name MATCH\"/>","comments":"","outputs":1,"x":823,"y":1173,"z":"49f11553.28c29c","wires":[[]]},{"id":"a5d9689a.f6d4b8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":691,"y":1173,"z":"49f11553.28c29c","wires":[["b765058d.012728","f8298f45.6dd8f","e795d2b2.de9ea"]]},{"id":"b833668a.32a2e8","type":"set","name":"set resource-resolution-data","xml":"<set>\n<parameter name='tmp.resource-resolution-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.`' />\n","comments":"","x":814,"y":1483,"z":"49f11553.28c29c","wires":[]},{"id":"f8298f45.6dd8f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":729,"y":1708,"z":"49f11553.28c29c","wires":[["d8a79021.ada8a","efb6904c.0b132","32ffaea4.ebf822","3f4780f3.5b1af","fc695bea.55efa8","7ee831e2.82547","98494924.3c42c8","b1f621f4.2d574","dcd2ceec.8e369","7c75bd8a.d2b754"]]},{"id":"f192106f.aba0a","type":"comment","name":"Resolve hostname, policy-instance-name, cloud-param-name and sw-name from resource-resolution-data","info":"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters[$vf-module-params-index].param.resource-resolution-data.resource-key[$key-index].value \nwhere its corresponding resource-key[$key-index].name=vnf-name","comments":"","x":997,"y":1662,"z":"49f11553.28c29c","wires":[]},{"id":"d8a79021.ada8a","type":"set","name":"set resource-key-length","xml":"<set>\n<parameter name='tmp.resource-key-length' value='`$tmp.resource-resolution-data.resource-key_length`' />\n","comments":"","x":803,"y":1768,"z":"49f11553.28c29c","wires":[]},{"id":"efb6904c.0b132","type":"for","name":"for each resource-resolution-data.resource-key","xml":"<for index='key-index' start='0' end='`$tmp.resource-resolution-data.resource-key_length`' >\n","comments":"","outputs":1,"x":878,"y":1813,"z":"49f11553.28c29c","wires":[["45cc14c2.4d9acc","529acf7f.f236"]]},{"id":"529acf7f.f236","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: key-index\"/>\n<parameter name=\"field3\" value='`$key-index`'/>","comments":"","outputs":1,"x":1145,"y":1813,"z":"49f11553.28c29c","wires":[[]]},{"id":"45cc14c2.4d9acc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":808,"y":1862,"z":"49f11553.28c29c","wires":[["a9f4ffa9.145ae"]]},{"id":"a9f4ffa9.145ae","type":"switchNode","name":"switch compare resource-key.name","xml":"<switch test=\"`$tmp.resource-resolution-data.resource-key[$key-index].name`\">","comments":"","outputs":1,"x":904,"y":1909,"z":"49f11553.28c29c","wires":[["e48f84f.8010178","3365afc0.b8aeb","77756d7a.b7d954"]]},{"id":"e48f84f.8010178","type":"outcome","name":"key resource key","xml":"<outcome value='key'>\n","comments":"","outputs":1,"x":910,"y":1995,"z":"49f11553.28c29c","wires":[["74c1a54.475825c"]]},{"id":"74c1a54.475825c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1180,"y":1995,"z":"49f11553.28c29c","wires":[["16486832.4d3a98","5950731f.f665bc","956ecb72.c0aa28"]]},{"id":"16486832.4d3a98","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Found resource-resolution-data.name = vnf-name\"/>","comments":"","outputs":1,"x":1312,"y":1994,"z":"49f11553.28c29c","wires":[[]]},{"id":"5950731f.f665bc","type":"set","name":"set vnfHostName","xml":"<set>\n<parameter name='tmp.vnfHostName' value='`$tmp.resource-resolution-data.resource-key[$key-index].value`' />\n","comments":"","x":1215,"y":2043,"z":"49f11553.28c29c","wires":[]},{"id":"32ffaea4.ebf822","type":"switchNode","name":"switch validate resolved vnfHostNamne","xml":"<switch test=\"`$tmp.vnfHostName`\">\n","comments":"","outputs":1,"x":863,"y":2290,"z":"49f11553.28c29c","wires":[["1e03d899.4d5c37","b455d9e7.cd4de8"]]},{"id":"1e03d899.4d5c37","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1153,"y":2264,"z":"49f11553.28c29c","wires":[["13ad3ae1.dd3895"]]},{"id":"b455d9e7.cd4de8","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1152,"y":2310,"z":"49f11553.28c29c","wires":[["13ad3ae1.dd3895"]]},{"id":"31e2f8be.f33c18","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='403' />\n<parameter name='error-message' value='vnfHostName is not set' />\n","comments":"","x":1446,"y":2330,"z":"49f11553.28c29c","wires":[]},{"id":"df14baa.538b448","type":"set","name":"set resource-resolution-data.status to SUCCESS","xml":"<set>\n<parameter name=\"`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status`\" value='SUCCESS' />\n","comments":"","x":738,"y":3618,"z":"49f11553.28c29c","wires":[]},{"id":"83429548.44e578","type":"for","name":"for each vf-module-parameters","xml":"<for index='vf-module-param-index' start='0' end='`$tmp.vf-module-parameters-length`' >\n","comments":"","outputs":1,"x":620,"y":3473,"z":"49f11553.28c29c","wires":[["5dc9240c.a731ac","e32c2884.0da7f8"]]},{"id":"e32c2884.0da7f8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: vf-module-param-index\"/>\n<parameter name=\"field3\" value='`$vf-module-param-index`'/>","comments":"","outputs":1,"x":832,"y":3473,"z":"49f11553.28c29c","wires":[[]]},{"id":"5dc9240c.a731ac","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":604,"y":3522,"z":"49f11553.28c29c","wires":[["e0e1ff6c.f9e59","df14baa.538b448"]]},{"id":"d7a94ac5.4ee0d8","type":"set","name":"set mac-address-assign test data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length' value='4' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].name' value='vmxvpfe_sriov41_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].value' value='${vmxvpfe_sriov41_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].name' value='vmxvpfe_sriov42_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].value' value='somevalue-already-assigned' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].name' value='vmxvpfe_sriov43_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].value' value='${vmxvpfe_sriov43_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].name' value='vmxvpfe_sriov44_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].value' value='${vmxvpfe_sriov44_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[2].value' value='JUNOS' />","comments":"","x":1113,"y":533,"z":"49f11553.28c29c","wires":[]},{"id":"83d65996.c3dca8","type":"comment","name":"Set temporary test data * TEST-ONLY *","info":"","comments":"","x":552,"y":528,"z":"49f11553.28c29c","wires":[]},{"id":"956ecb72.c0aa28","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: resolved vnfHostName: \"/>\n<parameter name=\"field3\" value='`$tmp.vnfHostName`'/>","comments":"","outputs":1,"x":1184,"y":2089,"z":"49f11553.28c29c","wires":[[]]},{"id":"937a5b68.3f7018","type":"switchNode","name":"switch ss.capability-action","xml":"<switch test=\"`$ss.capability-action`\">\n","comments":"","outputs":1,"x":283,"y":292,"z":"49f11553.28c29c","wires":[["4762a00.1cbdf6","d346113b.662b8","ae2cd0b9.c0e3f","2a86c91f.d1ce56","48302673.00a098"]]},{"id":"4762a00.1cbdf6","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":549,"y":275,"z":"49f11553.28c29c","wires":[[]]},{"id":"d346113b.662b8","type":"not-found","name":"not-found","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":556,"y":315,"z":"49f11553.28c29c","wires":[["c6c42ae2.eff988"]]},{"id":"ae2cd0b9.c0e3f","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":546,"y":355,"z":"49f11553.28c29c","wires":[[]]},{"id":"2a86c91f.d1ce56","type":"other","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":547,"y":396,"z":"49f11553.28c29c","wires":[["a6ed29e1.6f6f38"]]},{"id":"2a58f163.5019be","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='ss.capability-action is not set' />\n","comments":"","x":865,"y":351,"z":"49f11553.28c29c","wires":[]},{"id":"48302673.00a098","type":"other","name":"unassign","xml":"<outcome value='unassign'>\n","comments":"","outputs":1,"x":556,"y":439,"z":"49f11553.28c29c","wires":[["bd0f2ac4.457a68"]]},{"id":"a6ed29e1.6f6f38","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-action is assign\"/>","comments":"","outputs":1,"x":706,"y":396,"z":"49f11553.28c29c","wires":[[]]},{"id":"bd0f2ac4.457a68","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-action is unassign\"/>","comments":"","outputs":1,"x":707,"y":439,"z":"49f11553.28c29c","wires":[[]]},{"id":"e0e1ff6c.f9e59","type":"switchNode","name":"switch vf-module-parameters.param.name == mac-address-list[].name","xml":"<switch test=\"`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].name == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].name`\">\n","comments":"","outputs":1,"x":802,"y":3571,"z":"49f11553.28c29c","wires":[["1fd668f7.cdc337"]]},{"id":"d7bf35d6.132f58","type":"set","name":"set vf-module-parameters.param.value to assigned mac address","xml":"<set>\n<parameter name=\"`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].value`\" value=\"`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].value`\" />\n","comments":"","x":2013,"y":3735,"z":"49f11553.28c29c","wires":[]},{"id":"9890fe8e.13a7a","type":"block","name":"block:atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":360,"y":3827,"z":"49f11553.28c29c","wires":[["d6b2bdc8.28f4b","e3815c89.19818","c0e224f4.f2ee48"]]},{"id":"dabad6df.ca2188","type":"comment","name":"Call Unassign MAC address microService","info":"","comments":"","x":605.5,"y":3782,"z":"49f11553.28c29c","wires":[]},{"id":"3635e0e6.833f8","type":"set","name":"set vf-module-parameters.param.value to assigned mac address","xml":"<set>\n<parameter name=\"`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status`\" value=\"DELETED\" />\n","comments":"","x":1777,"y":4081,"z":"49f11553.28c29c","wires":[]},{"id":"395c40c2.33595","type":"comment","name":"Check that resource-resolution-data.status is PENDING","info":"","comments":"","x":902,"y":1536,"z":"49f11553.28c29c","wires":[]},{"id":"f8ba93eb.3b672","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":705,"y":145,"z":"49f11553.28c29c","wires":[["5bbceeb9.b1833","6164f080.f1d8d"]]},{"id":"5bbceeb9.b1833","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-name is not mS-mac-address-assign or it is not set\"/>","comments":"","outputs":1,"x":845,"y":104,"z":"49f11553.28c29c","wires":[[]]},{"id":"cd1dd0a6.2ac37","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='resource-resolution-data.status' value='FAILED' />","comments":"","x":886,"y":142,"z":"49f11553.28c29c","wires":[]},{"id":"9880892.85f7378","type":"comment","name":"resrouce-resolution-data is not yet set","info":"","comments":"","x":1144,"y":140,"z":"49f11553.28c29c","wires":[]},{"id":"c6c42ae2.eff988","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":705,"y":315,"z":"49f11553.28c29c","wires":[["ad4fd223.b06a1","2a58f163.5019be"]]},{"id":"ad4fd223.b06a1","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: ss.capability-action is not set\"/>","comments":"","outputs":1,"x":849,"y":273,"z":"49f11553.28c29c","wires":[[]]},{"id":"ca0033cc.33011","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='resource-resolution-data.status' value='FAILURE' />","comments":"","x":891,"y":311,"z":"49f11553.28c29c","wires":[]},{"id":"3284ee31.dbd392","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":845,"y":666,"z":"49f11553.28c29c","wires":[["adbb65ad.0b7198","adf382f0.6b643"]]},{"id":"adbb65ad.0b7198","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Failure calling self-serve-capability-param-resolution\"/>","comments":"","outputs":1,"x":988,"y":645,"z":"49f11553.28c29c","wires":[[]]},{"id":"d9e6bdbc.90de5","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: vnfHostName is not set\"/>","comments":"","outputs":1,"x":1410,"y":2242,"z":"49f11553.28c29c","wires":[[]]},{"id":"5e8ee822.4540e8","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1469,"y":2287,"z":"49f11553.28c29c","wires":[]},{"id":"13ad3ae1.dd3895","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1288,"y":2287,"z":"49f11553.28c29c","wires":[["d9e6bdbc.90de5","5e8ee822.4540e8","31e2f8be.f33c18"]]},{"id":"d04355c3.417358","type":"switchNode","name":"switch tmp.resource-resolution-data = PENDING","xml":"<switch test=\"`$tmp.resource-resolution-data.status == 'PENDING'`\">","comments":"","outputs":1,"x":884,"y":1587,"z":"49f11553.28c29c","wires":[["be95e99c.b7bd58"]]},{"id":"d82a8b0.25d6a78","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1352,"y":1587,"z":"49f11553.28c29c","wires":[["67a991be.14e2b","e51475f0.abd628","5a02f00e.359d7"]]},{"id":"67a991be.14e2b","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: reseouce-resolution-data.status is not PENDING\"/>","comments":"","outputs":1,"x":1492,"y":1547,"z":"49f11553.28c29c","wires":[[]]},{"id":"5a02f00e.359d7","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1533,"y":1586,"z":"49f11553.28c29c","wires":[]},{"id":"e51475f0.abd628","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='reseouce-resolution-data.status is not PENDING' />\n","comments":"","x":1504,"y":1627,"z":"49f11553.28c29c","wires":[]},{"id":"be95e99c.b7bd58","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1188,"y":1587,"z":"49f11553.28c29c","wires":[["d82a8b0.25d6a78"]]},{"id":"b747603e.9f9c","type":"comment","name":"Call Assign MAC address microService","info":"","comments":"","x":562,"y":3166,"z":"49f11553.28c29c","wires":[]},{"id":"fc695bea.55efa8","type":"switchNode","name":"switch validate resolved policyInstanceName","xml":"<switch test=\"`$tmp.policyInstanceName`\">\n","comments":"","outputs":1,"x":884,"y":2561,"z":"49f11553.28c29c","wires":[["1d99c3b4.89ca5c","28aa41f0.c83cce"]]},{"id":"1d99c3b4.89ca5c","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1149,"y":2541,"z":"49f11553.28c29c","wires":[["1612f486.989c8b"]]},{"id":"28aa41f0.c83cce","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1151,"y":2581,"z":"49f11553.28c29c","wires":[["1612f486.989c8b"]]},{"id":"af7d3f12.8fe2f","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='403' />\n<parameter name='error-message' value='policyInstanceName is not set and action is assign' />\n","comments":"","x":1883,"y":2603,"z":"49f11553.28c29c","wires":[]},{"id":"9c72660f.c666b8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: policyInstanceName is not set and action is assign\"/>","comments":"","outputs":1,"x":1864,"y":2521,"z":"49f11553.28c29c","wires":[[]]},{"id":"479b53da.22197c","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1906,"y":2560,"z":"49f11553.28c29c","wires":[]},{"id":"9cfb0a8c.350bb8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1728,"y":2560,"z":"49f11553.28c29c","wires":[["9c72660f.c666b8","479b53da.22197c","af7d3f12.8fe2f"]]},{"id":"3365afc0.b8aeb","type":"outcome","name":"policy-instance-name resource key","xml":"<outcome value='policy-instance-name'>\n","comments":"","outputs":1,"x":1553,"y":1997,"z":"49f11553.28c29c","wires":[["529fe780.466c98"]]},{"id":"529fe780.466c98","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1776,"y":1997,"z":"49f11553.28c29c","wires":[["88aa0755.dfbfb8","5f9db5b0.14c1dc","913d0484.6580f8"]]},{"id":"88aa0755.dfbfb8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Found resource-resolution-data.name = policy-instance-name-name\"/>","comments":"","outputs":1,"x":1908,"y":1997,"z":"49f11553.28c29c","wires":[[]]},{"id":"5f9db5b0.14c1dc","type":"set","name":"set policyInstanceName","xml":"<set>\n<parameter name='tmp.policyInstanceName' value='`$tmp.resource-resolution-data.resource-key[$key-index].value`' />\n","comments":"","x":1828,"y":2045,"z":"49f11553.28c29c","wires":[]},{"id":"913d0484.6580f8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: resolved policyInstanceName: \"/>\n<parameter name=\"field3\" value='`$tmp.policyInstanceName`'/>","comments":"","outputs":1,"x":1780,"y":2091,"z":"49f11553.28c29c","wires":[[]]},{"id":"77756d7a.b7d954","type":"outcome","name":"sw-name resource key","xml":"<outcome value='sw-name'>\n","comments":"","outputs":1,"x":1527,"y":2143,"z":"49f11553.28c29c","wires":[["dee6e77e.a38548"]]},{"id":"dee6e77e.a38548","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1778,"y":2143,"z":"49f11553.28c29c","wires":[["4c52afb7.937f1","b41afc4d.35241","62817552.215acc"]]},{"id":"4c52afb7.937f1","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Found resource-resolution-data.name = sw-name\"/>","comments":"","outputs":1,"x":1910,"y":2143,"z":"49f11553.28c29c","wires":[[]]},{"id":"b41afc4d.35241","type":"set","name":"set swName","xml":"<set>\n<parameter name='tmp.swName' value='`$tmp.resource-resolution-data.resource-key[$key-index].value`' />\n","comments":"","x":1799,"y":2191,"z":"49f11553.28c29c","wires":[]},{"id":"62817552.215acc","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: resolved swName: \"/>\n<parameter name=\"field3\" value='`$tmp.swName`'/>","comments":"","outputs":1,"x":1784,"y":2235,"z":"49f11553.28c29c","wires":[[]]},{"id":"7ee831e2.82547","type":"switchNode","name":"switch validate resolved cloudParamName","xml":"<switch test=\"`$tmp.cloudParamName`\">\n","comments":"","outputs":1,"x":880,"y":2424,"z":"49f11553.28c29c","wires":[["c91692b6.65ce8","32988ed5.054c82"]]},{"id":"c91692b6.65ce8","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1156,"y":2404,"z":"49f11553.28c29c","wires":[["1039fc6f.eb7844"]]},{"id":"32988ed5.054c82","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1158,"y":2444,"z":"49f11553.28c29c","wires":[["1039fc6f.eb7844"]]},{"id":"ed9695ad.3bae68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='403' />\n<parameter name='error-message' value='cloudParamName is not set' />\n","comments":"","x":1443,"y":2464,"z":"49f11553.28c29c","wires":[]},{"id":"67575869.37b978","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: cloudParamName is not set\"/>","comments":"","outputs":1,"x":1424,"y":2382,"z":"49f11553.28c29c","wires":[[]]},{"id":"5523be2f.8450e","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1466,"y":2421,"z":"49f11553.28c29c","wires":[]},{"id":"1039fc6f.eb7844","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1288,"y":2421,"z":"49f11553.28c29c","wires":[["67575869.37b978","5523be2f.8450e","ed9695ad.3bae68"]]},{"id":"3f4780f3.5b1af","type":"switchNode","name":"switch validate resolved swName","xml":"<switch test=\"`$tmp.swName`\">\n","comments":"","outputs":1,"x":854,"y":2689,"z":"49f11553.28c29c","wires":[["28d80c07.9c9e04","e6ec0202.21c26"]]},{"id":"28d80c07.9c9e04","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1151,"y":2669,"z":"49f11553.28c29c","wires":[["52391bf3.425114"]]},{"id":"e6ec0202.21c26","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1153,"y":2709,"z":"49f11553.28c29c","wires":[["52391bf3.425114"]]},{"id":"36d970ba.f973a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='403' />\n<parameter name='error-message' value='swName is not set and action is assign' />\n","comments":"","x":1887,"y":2734,"z":"49f11553.28c29c","wires":[]},{"id":"ec8f9748.d8d1b8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: swName is not set and action is assign\"/>","comments":"","outputs":1,"x":1868,"y":2652,"z":"49f11553.28c29c","wires":[[]]},{"id":"9b41bab.5d2c148","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1910,"y":2691,"z":"49f11553.28c29c","wires":[]},{"id":"a293551e.0dbae8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1735,"y":2689,"z":"49f11553.28c29c","wires":[["ec8f9748.d8d1b8","9b41bab.5d2c148","36d970ba.f973a"]]},{"id":"a3d2b1ea.3e7ad","type":"comment","name":"set vnfHostName","info":"","comments":"","x":903,"y":1953,"z":"49f11553.28c29c","wires":[]},{"id":"7180d3e5.b6623c","type":"comment","name":"set policyInstanceName","info":"","comments":"","x":1518,"y":1953,"z":"49f11553.28c29c","wires":[]},{"id":"4be5943a.af143c","type":"comment","name":"set swName","info":"","comments":"","x":1492,"y":2104,"z":"49f11553.28c29c","wires":[]},{"id":"1b6f227f.8f62fe","type":"execute","name":"execute RestapiCallNode","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/mac-address-assign.json'`\" />\n <parameter name='restapiUrl' value=\"`$prop.mac-address-microserivice.url + '/macaddress/service/assign'`\" />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' /> \n <parameter name='customHttpHeaders'\n value=\"Authorization=Basic YWRtaW46YWRtaW4=\" />\n\t<parameter name=\"responsePrefix\" value=\"tmp.mac-address-resp.prefix\" />","comments":"","outputs":1,"x":525,"y":3291,"z":"49f11553.28c29c","wires":[["fb57b9db.6a1d88","2210de9c.a974e2"]]},{"id":"d2857a0f.9c83f8","type":"set","name":"set","xml":"<set>\n<parameter name='prop.restapi.templateDir' value=\"/opt/lsc/restapi/templates\" />\n<parameter name='prop.mac-address-microserivice.url' value=\"http://mtanjv9sdlg51-eth1-0.aic.cip.att.com:8989\" />","comments":"","x":470,"y":3210,"z":"49f11553.28c29c","wires":[]},{"id":"6466676a.e4e518","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":320,"y":3209,"z":"49f11553.28c29c","wires":[["d2857a0f.9c83f8","1b6f227f.8f62fe","c0119016.c8f5b","75b77747.853018"]]},{"id":"c0119016.c8f5b","type":"record","name":"record","xml":"<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: restapi-call-node Call MAC Address microService assign\"/>","comments":"","outputs":1,"x":470,"y":3252,"z":"49f11553.28c29c","wires":[[]]},{"id":"fb57b9db.6a1d88","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":720,"y":3281,"z":"49f11553.28c29c","wires":[["5e381348.a46f6c"]]},{"id":"cd970bc5.886488","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Error calling MAC Address Micro Service assign\"/>\n","comments":"","outputs":1,"x":1062,"y":3204,"z":"49f11553.28c29c","wires":[[]]},{"id":"2210de9c.a974e2","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":722,"y":3323,"z":"49f11553.28c29c","wires":[["6c9579c4.cc79e8"]]},{"id":"5cbbae13.9307d","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: assign SUCCESS\"/>","comments":"","outputs":1,"x":1061,"y":3324,"z":"49f11553.28c29c","wires":[[]]},{"id":"7e55e2a5.9fbb1c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='self-serve-mS-mac-address-assign: Error calling MAC Address Micro Service assign' />\n","comments":"","x":1076,"y":3282,"z":"49f11553.28c29c","wires":[]},{"id":"5e381348.a46f6c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":847,"y":3280,"z":"49f11553.28c29c","wires":[["cd970bc5.886488","7e55e2a5.9fbb1c","b6a624d5.1cf8e8"]]},{"id":"6c9579c4.cc79e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":848,"y":3324,"z":"49f11553.28c29c","wires":[["5cbbae13.9307d"]]},{"id":"e5f3a8f2.389b18","type":"switchNode","name":"switch response-code","xml":"<switch test='`$tmp.pm-response.response-code`'>\n","comments":"","outputs":1,"x":1113,"y":3409,"z":"49f11553.28c29c","wires":[["dcfaaabe.0296b8"]]},{"id":"dcfaaabe.0296b8","type":"outcome","name":"500","xml":"<outcome value='500'>\n","comments":"","outputs":1,"x":1289,"y":3409,"z":"49f11553.28c29c","wires":[["df67c991.658888"]]},{"id":"df67c991.658888","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1295,"y":3451,"z":"49f11553.28c29c","wires":[["30b9131e.63a09c","67447020.0f752","bb43975e.4e1618"]]},{"id":"30b9131e.63a09c","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Error calling Policy Manager getPolicy\"/>\n","comments":"","outputs":1,"x":1440,"y":3408,"z":"49f11553.28c29c","wires":[[]]},{"id":"67447020.0f752","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='self-serve-mS-mac-address-assign: getPolicy call to Policy Manger failed' />\n","comments":"","x":1459,"y":3493,"z":"49f11553.28c29c","wires":[]},{"id":"41de3cd3.931d34","type":"method","name":"method self-serve-mS-mac-address-assign","xml":"<method rpc='self-serve-mS-mac-address-assign' mode='sync'>\n","comments":"","outputs":1,"x":767,"y":36,"z":"49f11553.28c29c","wires":[["ce021d20.bb75e"]]},{"id":"e1fda82f.16b798","type":"set","name":"set","xml":"<set>\n<parameter name='tmp.mac-address-list.' value=\"`$tmp.mac-address-resp.prefix.mac-address-list.`\" />\n","comments":"","x":1062,"y":3362,"z":"49f11553.28c29c","wires":[]},{"id":"75b77747.853018","type":"for","name":"for each address in mac-address-list","xml":"<for index='mac-address-list-index' start='0' end='`$tmp.mac-address-resp.prefix.mac-address-list_length`' >\n","comments":"","outputs":1,"x":562,"y":3384,"z":"49f11553.28c29c","wires":[["2545934f.e62d9c"]]},{"id":"a15833b7.c0517","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: mac-address-list-index|name|value \"/>\n<parameter name=\"field3\" value='`$mac-address-list-index`'/>\n<parameter name=\"field4\" value='`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].name`'/>\n<parameter name=\"field5\" value='`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].value`'/>","comments":"","outputs":1,"x":671,"y":3424,"z":"49f11553.28c29c","wires":[[]]},{"id":"2545934f.e62d9c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":544,"y":3424,"z":"49f11553.28c29c","wires":[["a15833b7.c0517","83429548.44e578"]]},{"id":"4c58c71c.b3c6c8","type":"comment","name":"vnf-name and could-param-name required for assign and unassign","info":"","comments":"","x":937,"y":2226,"z":"49f11553.28c29c","wires":[]},{"id":"d5fbb2b6.accb2","type":"comment","name":"policy-instance-name and sw-name required for assign","info":"","comments":"","x":911,"y":2504,"z":"49f11553.28c29c","wires":[]},{"id":"1612f486.989c8b","type":"switchNode","name":"switch ss.capability-action == assign","xml":"<switch test=\"`$ss.capability-action` == 'assign'\">","comments":"","outputs":1,"x":1377,"y":2560,"z":"49f11553.28c29c","wires":[["6b7c9a0b.7497b4"]]},{"id":"6b7c9a0b.7497b4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1597,"y":2560,"z":"49f11553.28c29c","wires":[["9cfb0a8c.350bb8"]]},{"id":"52391bf3.425114","type":"switchNode","name":"switch ss.capability-action == assign","xml":"<switch test=\"`$ss.capability-action` == 'assign'\">","comments":"","outputs":1,"x":1376,"y":2689,"z":"49f11553.28c29c","wires":[["e220d9fd.f96838"]]},{"id":"e220d9fd.f96838","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1601,"y":2689,"z":"49f11553.28c29c","wires":[["a293551e.0dbae8"]]},{"id":"c0e224f4.f2ee48","type":"execute","name":"execute RestapiCallNode","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/mac-address-unassign.json'`\" />\n <parameter name='restapiUrl' value=\"`$prop.mac-address-microserivice.url + '/macaddress/service/unassign'`\" />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' /> \n <parameter name='customHttpHeaders'\n value=\"Authorization=Basic YWRtaW46YWRtaW4=\" />\n\t<parameter name=\"responsePrefix\" value=\"tmp.mac-address-resp.prefix\" />","comments":"","outputs":1,"x":559,"y":3909,"z":"49f11553.28c29c","wires":[["90394e75.7983e","7f04a5b9.03d47c"]]},{"id":"d6b2bdc8.28f4b","type":"set","name":"set","xml":"<set>\n<parameter name='prop.restapi.templateDir' value=\"/opt/lsc/restapi/templates\" />\n<parameter name='prop.mac-address-microserivice.url' value=\"http://mtanjv9sdlg51-eth1-0.aic.cip.att.com:8989\" />","comments":"","x":504,"y":3828,"z":"49f11553.28c29c","wires":[]},{"id":"e3815c89.19818","type":"record","name":"record","xml":"<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: restapi-call-node Call MAC Address microService unassign\"/>","comments":"","outputs":1,"x":504,"y":3870,"z":"49f11553.28c29c","wires":[[]]},{"id":"90394e75.7983e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":754,"y":3899,"z":"49f11553.28c29c","wires":[["7d22364a.00ccd8"]]},{"id":"e985ac86.2be1c","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Error calling MAC Address Micro Service unassign\"/>\n","comments":"","outputs":1,"x":1047,"y":3817,"z":"49f11553.28c29c","wires":[[]]},{"id":"7f04a5b9.03d47c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":756,"y":3941,"z":"49f11553.28c29c","wires":[["c8fd6afc.857bc8"]]},{"id":"a29f47d1.1990b8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: unassign SUCCESS: response: \"/>\n<parameter name='field3' value='`$tmp.mac-address-resp.prefix.status`' />","comments":"","outputs":1,"x":1050,"y":3942,"z":"49f11553.28c29c","wires":[[]]},{"id":"35449a42.cd0cb6","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='self-serve-mS-mac-address-assign: Error calling MAC Address Micro Service unassign' />\n","comments":"","x":1066,"y":3898,"z":"49f11553.28c29c","wires":[]},{"id":"7d22364a.00ccd8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":881,"y":3898,"z":"49f11553.28c29c","wires":[["e985ac86.2be1c","35449a42.cd0cb6","b3df94aa.38dd88"]]},{"id":"c8fd6afc.857bc8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":882,"y":3942,"z":"49f11553.28c29c","wires":[["a29f47d1.1990b8","32eb5385.0caa4c"]]},{"id":"b6a624d5.1cf8e8","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1100,"y":3244,"z":"49f11553.28c29c","wires":[]},{"id":"bb43975e.4e1618","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1482,"y":3451,"z":"49f11553.28c29c","wires":[]},{"id":"b3df94aa.38dd88","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1089,"y":3858,"z":"49f11553.28c29c","wires":[]},{"id":"32eb5385.0caa4c","type":"switchNode","name":"switch status","xml":"<switch test=\"`$tmp.mac-address-resp.prefix.status == 'deleted successfully'`\">","comments":"","outputs":1,"x":1104,"y":3990,"z":"49f11553.28c29c","wires":[["c57baf20.c1ffd","533327bb.094ae8"]]},{"id":"533327bb.094ae8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1292,"y":4034,"z":"49f11553.28c29c","wires":[["d2de149f.a9ef08"]]},{"id":"c57baf20.c1ffd","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1290,"y":3990,"z":"49f11553.28c29c","wires":[["7f0fc0f0.fd344"]]},{"id":"c64ba45b.712a88","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Address Micro Service unassign did not return: deleted successfully\"/>\n","comments":"","outputs":1,"x":1553,"y":3907,"z":"49f11553.28c29c","wires":[[]]},{"id":"452a2683.28b6c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='self-serve-mS-mac-address-assign: Address Micro Service unassign did not return: deleted successfully' />\n","comments":"","x":1571,"y":3990,"z":"49f11553.28c29c","wires":[]},{"id":"83050dff.db737","type":"set","name":"set status to FAILED","xml":"<set>\n<parameter name='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.status' value='FAILED' />","comments":"","x":1594,"y":3948,"z":"49f11553.28c29c","wires":[]},{"id":"d2de149f.a9ef08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1409,"y":4034,"z":"49f11553.28c29c","wires":[["a75ab013.74fb6"]]},{"id":"7f0fc0f0.fd344","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1409,"y":3990,"z":"49f11553.28c29c","wires":[["c64ba45b.712a88","83050dff.db737","452a2683.28b6c8"]]},{"id":"a75ab013.74fb6","type":"for","name":"for each vf-module-parameters","xml":"<for index='vf-module-param-index' start='0' end='`$tmp.vf-module-parameters-length`' >\n","comments":"","outputs":1,"x":1626,"y":4034,"z":"49f11553.28c29c","wires":[["3635e0e6.833f8"]]},{"id":"4fd6d670.f4dc08","type":"comment","name":"If capability-name matches, add resource data to miroservice request element","info":"","comments":"","x":585,"y":1039,"z":"49f11553.28c29c","wires":[]},{"id":"d771e1cd.ffe8b","type":"set","name":"set cloudParamName ","xml":"<set>\n<parameter name='tmp.cloudParamName' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].name`' />","comments":"","x":798,"y":1389,"z":"49f11553.28c29c","wires":[]},{"id":"292c2783.39cc08","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: resolved cloudParamName: | resourceValue: \"/>\n<parameter name=\"field3\" value='`$tmp.cloudParamName`'/>\n<parameter name=\"field4\" value='`$tmp.resourceValue`'/>","comments":"","outputs":1,"x":750,"y":1432,"z":"49f11553.28c29c","wires":[[]]},{"id":"f76a923e.1777d","type":"set","name":"initialize microService request elements length","xml":"<set>\n<parameter name='ma.elements.element_length' value='0' />","comments":"","x":422,"y":853,"z":"49f11553.28c29c","wires":[]},{"id":"321881ae.e1707e","type":"comment","name":"If resource-value is NOT already resolved, add this vf-module-parameters.param to the microService assign request","info":"","comments":"","x":1094,"y":2820,"z":"49f11553.28c29c","wires":[]},{"id":"fb516b25.0acb58","type":"comment","name":"Check for $ in vf-module-parameters.param[].value","info":"","comments":"","x":817,"y":1239,"z":"49f11553.28c29c","wires":[]},{"id":"8e89e7e1.f69898","type":"execute","name":"slistringUtils - check param.value for $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].value`\" />\n <parameter name=\"target\" value=\"$\"/>","comments":"","outputs":1,"x":852,"y":1332,"z":"49f11553.28c29c","wires":[["f7ddc41d.042728"]]},{"id":"f7ddc41d.042728","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1084,"y":1332,"z":"49f11553.28c29c","wires":[["f25744a9.dc9668"]]},{"id":"dea1481d.7ad108","type":"set","name":"set resourceValue to param.value","xml":"<set>\n<parameter name='tmp.resourceValue' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].value`' />","comments":"","x":1428,"y":1332,"z":"49f11553.28c29c","wires":[]},{"id":"f25744a9.dc9668","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1212,"y":1332,"z":"49f11553.28c29c","wires":[["dea1481d.7ad108"]]},{"id":"1fd668f7.cdc337","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1128,"y":3571,"z":"49f11553.28c29c","wires":[["69646180.d517c"]]},{"id":"69646180.d517c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1244,"y":3650,"z":"49f11553.28c29c","wires":[["f65630a2.13cba","4cc2a6a2.1745e8"]]},{"id":"f65630a2.13cba","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: mac-address-list MATCH with param.value: \"/>\n<parameter name=\"field3\" value=\"`$tmp.mac-address-resp.prefix.mac-address-list[$mac-address-list-index].name`\"/>","comments":"","outputs":1,"x":1396,"y":3650,"z":"49f11553.28c29c","wires":[[]]},{"id":"e795d2b2.de9ea","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":720,"y":1281,"z":"49f11553.28c29c","wires":[["8e89e7e1.f69898","d771e1cd.ffe8b","b833668a.32a2e8","d04355c3.417358"]]},{"id":"aabbd0a7.8406b","type":"comment","name":"Unassign request will never execute this logic because capbility-name will be INPUT","info":"","comments":"","x":995,"y":2776,"z":"49f11553.28c29c","wires":[]},{"id":"ba23f780.7e0bf8","type":"comment","name":"Additional check for if resourceValue already resolved set capability-name to INPUT","info":"","comments":"","x":1481,"y":3532,"z":"49f11553.28c29c","wires":[]},{"id":"298e3073.ab37a","type":"comment","name":"If param.value does have $ (not already resolved) set param.value mS output","info":"","comments":"","x":1461,"y":3572,"z":"49f11553.28c29c","wires":[]},{"id":"f20a56f9.f4d278","type":"comment","name":"If param.value does NOT have $ (already resolved) don't set param.value but set capanility-name to INPUT","info":"","comments":"","x":1556,"y":3612,"z":"49f11553.28c29c","wires":[]},{"id":"1ae02e9e.613b31","type":"set","name":"set mac-address-unassign test data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length' value='4' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].name' value='vmxvpfe_sriov41_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].value' value='${vmxvpfe_sriov41_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].name' value='vmxvpfe_sriov42_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].value' value='somevalue-already-assigned' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.capability-name' value='INPUT' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].name' value='vmxvpfe_sriov43_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].value' value='${vmxvpfe_sriov43_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[2].resource-resolution-data.resource-key[2].value' value='JUNOS' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].name' value='vmxvpfe_sriov44_0_port_mac' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].value' value='${vmxvpfe_sriov44_0_port_mac}' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.status' value='PENDING' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.capability-name' value='mS-mac-address-assign' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key_length' value='3' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[0].name' value='key' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[0].value' value='host-laina1' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[1].name' value='policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[1].value' value='JQIN1810SRIOV.Config_MS_macAddressAssignmentPolicy.*' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[2].name' value='sw-name' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[3].resource-resolution-data.resource-key[2].value' value='JUNOS' />","comments":"","x":1122,"y":574,"z":"49f11553.28c29c","wires":[]},{"id":"31e3420e.c637ee","type":"comment","name":"Set temporary test ASSIGN data * TEST-ONLY *","info":"","comments":"","x":1441,"y":534,"z":"49f11553.28c29c","wires":[]},{"id":"69c27aa5.4c6a54","type":"comment","name":"Set temporary test UNASSIGN data * TEST-ONLY *","info":"","comments":"","x":1455,"y":572,"z":"49f11553.28c29c","wires":[]},{"id":"98494924.3c42c8","type":"set","name":"set ma.elements.element to this vf-module-parameters.param","xml":"<set>\n<parameter name='ma.elements.element[$ma.elements.element_length].policy-instance-name' value='`$tmp.policyInstanceName`' />\n<parameter name='ma.elements.element[$ma.elements.element_length].vnf-host-name' value='`$tmp.vnfHostName`' />\n<parameter name='ma.elements.element[$ma.elements.element_length].cloud-param-name' value='`$tmp.cloudParamName`' />\n<parameter name='ma.elements.element[$ma.elements.element_length].sw-name' value='`$tmp.swName`' />","comments":"","x":933,"y":2870,"z":"49f11553.28c29c","wires":[]},{"id":"dcd2ceec.8e369","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"self-serve-mS-mac-address-assign: Adding this vf-module-parameters.param to ma.elements \"/>\n<parameter name=\"field3\" value='`$ma.elements.element_length`'/>\n<parameter name=\"field4\" value='`$ma.elements.element[$ma.elements.element_length].policy-instance-name`'/>\n<parameter name=\"field5\" value='`$ma.elements.element[$ma.elements.element_length].vnf-host-name`'/>\n<parameter name=\"field6\" value='`$ma.elements.element[$ma.elements.element_length].cloud-param-name`'/>\n<parameter name=\"field7\" value='`$ma.elements.element[$ma.elements.element_length].sw-name`'/>\n<parameter name=\"field8\" value='`$ma.elements.element[$ma.elements.element_length].resource-value`'/>","comments":"","outputs":1,"x":762,"y":2991,"z":"49f11553.28c29c","wires":[[]]},{"id":"7c75bd8a.d2b754","type":"set","name":"increment ma.elements.element_length","xml":"<set>\n<parameter name='ma.elements.element_length' value='`$ma.elements.element_length + 1`' />","comments":"","x":863,"y":3036,"z":"49f11553.28c29c","wires":[]},{"id":"b1f621f4.2d574","type":"switchNode","name":"check if resourceValue is set","xml":"<switch test=\"`$tmp.resourceValue`\">\n","comments":"","outputs":1,"x":833,"y":2918,"z":"49f11553.28c29c","wires":[["f25a8484.98ce68","8213e478.c84b68","42938aae.ae5904"]]},{"id":"f25a8484.98ce68","type":"outcome","name":"null","xml":"<outcome value='null'>\n","comments":"","outputs":1,"x":1019,"y":2951,"z":"49f11553.28c29c","wires":[[]]},{"id":"8213e478.c84b68","type":"other","name":"blank","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1019,"y":2992,"z":"49f11553.28c29c","wires":[[]]},{"id":"42938aae.ae5904","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1018,"y":2911,"z":"49f11553.28c29c","wires":[["2d01ba1c.f838c6"]]},{"id":"2d01ba1c.f838c6","type":"set","name":"set ma.elements.element.resource-value to this vf-module-parameters.param","xml":"<set>\n<parameter name='ma.elements.element[$ma.elements.element_length].resource-value' value='`$tmp.resourceValue`' />","comments":"","x":1375,"y":2911,"z":"49f11553.28c29c","wires":[]},{"id":"4cc2a6a2.1745e8","type":"execute","name":"slistringUtils - check param.value for $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].value`\" />\n <parameter name=\"target\" value=\"$\"/>","comments":"","outputs":1,"x":1343,"y":3695,"z":"49f11553.28c29c","wires":[["9d5a40fc.aed04","9f1e7092.0ada8"]]},{"id":"9d5a40fc.aed04","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1575,"y":3695,"z":"49f11553.28c29c","wires":[["82426b14.9463e8"]]},{"id":"8ec62283.b9675","type":"set","name":"set param[].resource-resolution-data.capability-name to INPUT","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$vf-module-param-index].resource-resolution-data.capability-name' value='INPUT' />","comments":"","x":2005,"y":3695,"z":"49f11553.28c29c","wires":[]},{"id":"82426b14.9463e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1703,"y":3695,"z":"49f11553.28c29c","wires":[["8ec62283.b9675"]]},{"id":"9f1e7092.0ada8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1577,"y":3735,"z":"49f11553.28c29c","wires":[["4a3bf9a3.c32a58"]]},{"id":"4a3bf9a3.c32a58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1704,"y":3735,"z":"49f11553.28c29c","wires":[["d7bf35d6.132f58"]]},{"id":"d637c667.949db8","type":"switchNode","name":"switch ss.capability-action (assign| unassign)","xml":"<switch test='`$ss.capability-action`'>\n","comments":"","outputs":1,"x":575,"y":562,"z":"49f11553.28c29c","wires":[["cb233a84.84f258","5caf02ea.cb608c"]]},{"id":"cb233a84.84f258","type":"outcome","name":"assign","xml":"<outcome value='assign'>","comments":"","outputs":1,"x":856,"y":533,"z":"49f11553.28c29c","wires":[["d7a94ac5.4ee0d8"]]},{"id":"5caf02ea.cb608c","type":"outcome","name":"unassign","xml":"<outcome value='unassign'>","comments":"","outputs":1,"x":862,"y":573,"z":"49f11553.28c29c","wires":[["1ae02e9e.613b31"]]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.json index 313448af..fddf4b41 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.json @@ -1 +1 @@ -[{"id":"83eb3584.636598","type":"dgstart","name":"DGSTART","outputs":1,"x":121.25,"y":52.5,"z":"d64d71f4.2505a","wires":[["d1c40dc0.981c"]]},{"id":"d1c40dc0.981c","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":397.25,"y":53.5,"z":"d64d71f4.2505a","wires":[["1c880935.80aa77"]]},{"id":"1c880935.80aa77","type":"method","name":"self-serve-vfmodule-ra-assignment","xml":"<method rpc='self-serve-vfmodule-ra-assignment' mode='sync'>\n","comments":"","outputs":1,"x":748.25,"y":53.5,"z":"d64d71f4.2505a","wires":[["ffd64a38.3947f8"]]},{"id":"ffd64a38.3947f8","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":133.75,"y":135.5,"z":"d64d71f4.2505a","wires":[["ef03c8a1.ff14c8","b8224a6b.e416b8","5d862679.cda4e8","4cbda7a7.f7ebe8","5174feae.2ee36","d8649df9.d3929","b6c97e6b.a0e99","35183a29.291a06","bd735e70.63002","43e97d79.aa8c94","c7adf75b.5424d8","9e6ab38f.aa2ca","bffd9817.b24028","f4359972.440fb8","94c3056d.2f14a8"]]},{"id":"b8224a6b.e416b8","type":"set","name":"set","xml":"<set>\n <parameter name=\"request-id\" value=\"`$tmp.return.generate.vnf-se-serv-uuid`\"/>\n <parameter name=\"resource-type\" value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-type`\" /> \n <parameter name=\"resource-id\" value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" /> \n <parameter name=\"action-name\" value=\"resource-assignment-action\"/> \n <parameter name=\"responsePrefix\" value=\"sriovAssign\" />\n","comments":"","x":318.25,"y":181.5,"z":"d64d71f4.2505a","wires":[]},{"id":"3bd6d10c.bbf58e","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":594.4642486572266,"y":533.9642963409424,"z":"d64d71f4.2505a","wires":[["2c569757.4f7808"]]},{"id":"4cbda7a7.f7ebe8","type":"for","name":"for vf-module-topology-operation-input","xml":"<for silentFailure='true' index='i' start='0' end='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`' >","comments":"","outputs":1,"x":417.96431732177734,"y":399.2143135070801,"z":"d64d71f4.2505a","wires":[["8036fd78.9c6aa"]]},{"id":"8bd51f50.dbaff","type":"set","name":"set tmp.sdnc-model-name","xml":"<set>\n<parameter name='tmp.sdnc-model-name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`' />\n","comments":"","x":1164.678565979004,"y":331.6428813934326,"z":"d64d71f4.2505a","wires":[]},{"id":"4e6a3a1c.33d514","type":"outcome","name":"sdnc_model_name","xml":"<outcome value='sdnc_model_name'>\n","comments":"","outputs":1,"x":910.6785659790039,"y":331.6428813934326,"z":"d64d71f4.2505a","wires":[["8bd51f50.dbaff"]]},{"id":"8036fd78.9c6aa","type":"switchNode","name":"switch","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name`'>\n\n","comments":"","outputs":1,"x":672.6785659790039,"y":398.6428813934326,"z":"d64d71f4.2505a","wires":[["4e6a3a1c.33d514","6f8b3780.39dba8","86f9e2d9.210ef","5ed0c037.be854"]]},{"id":"6f8b3780.39dba8","type":"outcome","name":"sdnc_model_version","xml":"<outcome value='sdnc_model_version'>\n","comments":"","outputs":1,"x":913.6785659790039,"y":377.6428813934326,"z":"d64d71f4.2505a","wires":[["7626fec9.55e7a"]]},{"id":"86f9e2d9.210ef","type":"outcome","name":"vf_module_label","xml":"<outcome value='vf_module_label'>\n","comments":"","outputs":1,"x":898.6785659790039,"y":426.6428813934326,"z":"d64d71f4.2505a","wires":[["38ee4557.921a3a"]]},{"id":"7626fec9.55e7a","type":"set","name":"set tmp.sdnc-model-version","xml":"<set>\n<parameter name='tmp.sdnc-model-version' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`' />\n\n","comments":"","x":1168.678565979004,"y":377.6428813934326,"z":"d64d71f4.2505a","wires":[]},{"id":"38ee4557.921a3a","type":"set","name":"set tmp.vf-module-label","xml":"<set>\n<parameter name='tmp.vf-module-label' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`' />\n\n","comments":"","x":1150.678565979004,"y":426.6428813934326,"z":"d64d71f4.2505a","wires":[]},{"id":"b97771ef.1b6a8","type":"set","name":"set name-value other JsonString","xml":"<set>\n<parameter name=\"tmp.config-name-value-other-payload\" value=\"`$tmp.config-name-value-other-payload + '"' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name + '":"' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value + '",'`\"/>\n\n","comments":"","x":1168.678565979004,"y":477.6428813934326,"z":"d64d71f4.2505a","wires":[]},{"id":"5ed0c037.be854","type":"outcome","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":870.6785659790039,"y":477.6428813934326,"z":"d64d71f4.2505a","wires":[["b97771ef.1b6a8"]]},{"id":"5174feae.2ee36","type":"set","name":"set configAssignment JsonString","xml":"<set>\n\t<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '"service-instance-id":"' + $vf-module-topology-operation-input.service-information.service-instance-id + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '"vnf-id":"' + $vf-module-topology-operation-input.vnf-information.vnf-id + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '"vf-module-model-customization-uuid":"' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '"vnf-model-customization-uuid":"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload8\" value=\"`$tmp.config-name-value-payload7 + '"vf-module-id":"' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload9\" value=\"`$tmp.config-name-value-payload8 + '"aic-cloud-region":"' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region + '"'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload91\" value=\"`'{' + $tmp.config-name-value-payload9 + '}'`\" />\n\t\n","comments":"","x":389.25,"y":691.5,"z":"d64d71f4.2505a","wires":[]},{"id":"d8649df9.d3929","type":"execute","name":"execute ConfigAssignment","xml":"<execute plugin='org.onap.ccsdk.config.assignment.service.ConfigAssignmentNode' method='process'>\n\t<parameter name=\"request-id\" value='`$request-id`' />\n\t<parameter name=\"resource-id\" value='`$resource-id`' /> \n\t<parameter name=\"resource-type\" value='`$resource-type`' />\n\t<parameter name=\"action-name\" value='`$action-name`' />\n\t<parameter name=\"template-names\" value=\"`'["' + $tmp.vf-module-label + '"]'`\" />\n\t<parameter name=\"service-template-name\" value='`$tmp.sdnc-model-name`' />\n\t<parameter name=\"service-template-version\" value='`$tmp.sdnc-model-version`' />\n\t<parameter name='input-data' value='`$tmp.config-name-value-payload91`' />\n\t<parameter name=\"prifix\" value=\"sriovAssign\" />","comments":"","outputs":1,"x":383.5832977294922,"y":869.4999723434448,"z":"d64d71f4.2505a","wires":[["e513cccd.0fb49","62574755.8d02d8"]]},{"id":"e513cccd.0fb49","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":573.5832977294922,"y":845.4999723434448,"z":"d64d71f4.2505a","wires":[["643b1fc.cc237e"]]},{"id":"643b1fc.cc237e","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=\"Error from ConfigAssignmentNode\" />\n","comments":"","x":771.5832977294922,"y":845.4999723434448,"z":"d64d71f4.2505a","wires":[]},{"id":"35183a29.291a06","type":"for","name":"for resource-accumulator-resolved-data loop","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n","comments":"","outputs":1,"x":436.25001525878906,"y":1136.8333473205566,"z":"d64d71f4.2505a","wires":[["bdd24bd9.898e08"]]},{"id":"3886482a.d004c8","type":"set","name":"set from resource-accumulator-resolved-data","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].name`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.capability-name`' value='RA Resolved'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.status`' value='SUCCESS'/>\n\n","comments":"","x":1650.250015258789,"y":1187.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"bd735e70.63002","type":"for","name":"for capability-data","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n","comments":"","outputs":1,"x":355.25001525878906,"y":1399.8333473205566,"z":"d64d71f4.2505a","wires":[["1be8ded5.660511"]]},{"id":"1be8ded5.660511","type":"for","name":"for key-mapping","xml":"<for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >","comments":"","outputs":1,"x":578.2500152587891,"y":1399.8333473205566,"z":"d64d71f4.2505a","wires":[["e6f5f92.a1f8f08"]]},{"id":"b6c97e6b.a0e99","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'sriovAssign.mashed-data.' + $tmp.vf-module-label`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":380.25001525878906,"y":1057.8333473205566,"z":"d64d71f4.2505a","wires":[[]]},{"id":"ef03c8a1.ff14c8","type":"execute","name":"execute generateUUID","xml":" <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" > \n <parameter name=\"ctx-destination\" value=\"tmp.return.generate.vnf-se-serv-uuid\" /> \n ","comments":"","outputs":1,"x":363.25,"y":135.5,"z":"d64d71f4.2505a","wires":[["4ba70d0.5eaf3f4"]]},{"id":"4ba70d0.5eaf3f4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":568.25,"y":135.5,"z":"d64d71f4.2505a","wires":[["f15273ba.e4ccf"]]},{"id":"f15273ba.e4ccf","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=\"generateUUID is failed\" />\n","comments":"","x":732.25,"y":134.5,"z":"d64d71f4.2505a","wires":[]},{"id":"a23caf97.dd75a","type":"for","name":"for vnf-parameters-data.param","xml":"<for silentFailure='true' index='cnt' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n","comments":"","outputs":1,"x":1409.250015258789,"y":1136.8333473205566,"z":"d64d71f4.2505a","wires":[["d072867f.af17a8"]]},{"id":"bdd24bd9.898e08","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":715.2500152587891,"y":1137.8333473205566,"z":"d64d71f4.2505a","wires":[["9a2a1dac.b088","245adfb0.abd75","aaaf5cde.bcba6"]]},{"id":"5d862679.cda4e8","type":"switchNode","name":"switch vf-parameters-data.param_length","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`'>\n","comments":"","outputs":1,"x":435.25,"y":236.5,"z":"d64d71f4.2505a","wires":[["b713b448.f4d8b8","7c50cac9.4fd584"]]},{"id":"b713b448.f4d8b8","type":"outcome","name":"null","xml":"<outcome value=''>","comments":"","outputs":1,"x":698.3928833007812,"y":204.35715293884277,"z":"d64d71f4.2505a","wires":[["c0a33e08.da9ce"]]},{"id":"7c50cac9.4fd584","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":697.3928833007812,"y":268.3571529388428,"z":"d64d71f4.2505a","wires":[["53104be0.6c8084"]]},{"id":"c0a33e08.da9ce","type":"set","name":"set pre service param len as 0","xml":"<set>\n <parameter name='highnum' value='0' />\n <parameter name='prehighnum' value='0'/>\n","comments":"","x":911.3928833007812,"y":204.35715293884277,"z":"d64d71f4.2505a","wires":[]},{"id":"53104be0.6c8084","type":"set","name":"set pre service param len","xml":"<set>\n <parameter name='highnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' />\n <parameter name='prehighnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' />","comments":"","x":896.3928833007812,"y":268.3571529388428,"z":"d64d71f4.2505a","wires":[]},{"id":"d072867f.af17a8","type":"switchNode","name":"switch input vnf-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cnt].name == $jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'>\n","comments":"","outputs":1,"x":1667.250015258789,"y":1136.8333473205566,"z":"d64d71f4.2505a","wires":[["ed697e54.d13fe"]]},{"id":"ed697e54.d13fe","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1847.250015258789,"y":1136.8333473205566,"z":"d64d71f4.2505a","wires":[["5253daf.8524e24"]]},{"id":"5253daf.8524e24","type":"set","name":"set for existing param name","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cnt].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='tmp.mso.param.found' value='true' />\n","comments":"","x":2057.250015258789,"y":1137.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"aaaf5cde.bcba6","type":"switchNode","name":"switch tmp.mso.param.not-found","xml":"<switch test='`$tmp.mso.param.found`'>\n","comments":"","outputs":1,"x":957.2500152587891,"y":1189.8333473205566,"z":"d64d71f4.2505a","wires":[["5fec017a.f95fb"]]},{"id":"5fec017a.f95fb","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1191.250015258789,"y":1188.8333473205566,"z":"d64d71f4.2505a","wires":[["d34da95a.b5de98"]]},{"id":"9a2a1dac.b088","type":"set","name":"set for existing param name","xml":"<set>\n<parameter name='tmp.mso.param.found' value='false' />\n","comments":"","x":941.2500152587891,"y":1078.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"245adfb0.abd75","type":"switchNode","name":"switch check length > 0","xml":"<switch test='`$prehighnum > 0`'>\n","comments":"","outputs":1,"x":933.7500152587891,"y":1137.8333473205566,"z":"d64d71f4.2505a","wires":[["868c71ff.81c13"]]},{"id":"868c71ff.81c13","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1180.750015258789,"y":1137.8333473205566,"z":"d64d71f4.2505a","wires":[["a23caf97.dd75a"]]},{"id":"7407bfe8.27801","type":"for","name":"for payload","xml":"<for index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >","comments":"","outputs":1,"x":1627.250015258789,"y":1451.8333473205566,"z":"d64d71f4.2505a","wires":[["a55901ea.de196"]]},{"id":"477f56a8.2964e8","type":"set","name":"set resource-key","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.resource-key[$num].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-name`'/>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.resource-key[$num].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-value`'/>\n\t\n","comments":"","x":2026.250015258789,"y":1392.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"dff927e4.b927a8","type":"set","name":"set output-data ","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-value`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.capability-name`' value='`$jsonContextPrefix.capability-data[$i].capability-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.status`' value='PENDING'/>\n<parameter name='num' value='0' />","comments":"","x":1205.250015258789,"y":1353.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"e6f5f92.a1f8f08","type":"for","name":"for output-key-mapping","xml":"<for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >","comments":"","outputs":1,"x":813.2500152587891,"y":1400.8333473205566,"z":"d64d71f4.2505a","wires":[["c4847a99.613d08"]]},{"id":"c4847a99.613d08","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":1008.2500152587891,"y":1399.8333473205566,"z":"d64d71f4.2505a","wires":[["dff927e4.b927a8","d708f5a0.7b1588","3b5810ed.04647","b9edb73a.e3ffc8"]]},{"id":"3b5810ed.04647","type":"set","name":"set length","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' value='`$highnum + 1`'/>\n\n","comments":"","x":1204.250015258789,"y":1451.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"62574755.8d02d8","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":578.5832977294922,"y":907.4999723434448,"z":"d64d71f4.2505a","wires":[["643b1fc.cc237e"]]},{"id":"d708f5a0.7b1588","type":"switchNode","name":"switch payload_length","xml":"<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n","comments":"","outputs":1,"x":1234.250015258789,"y":1400.8333473205566,"z":"d64d71f4.2505a","wires":[["8f1dc823.58d558","99c3f6b2.9f2ed8"]]},{"id":"8f1dc823.58d558","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1449.250015258789,"y":1332.8333473205566,"z":"d64d71f4.2505a","wires":[[]]},{"id":"99c3f6b2.9f2ed8","type":"other","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1458.250015258789,"y":1451.8333473205566,"z":"d64d71f4.2505a","wires":[["7407bfe8.27801"]]},{"id":"43e97d79.aa8c94","type":"switchNode","name":"switch: model info == NULL","xml":"<switch test=\"`$tmp.sdnc-model-name == '' or $tmp.sdnc-model-version == '' or $tmp.vf-module-label == ''`\">\n","comments":"","outputs":1,"x":383.03570556640625,"y":534.1071863174438,"z":"d64d71f4.2505a","wires":[["3bd6d10c.bbf58e"]]},{"id":"ffe8a21e.9ec8d","type":"get-resource","name":"get VF_MODEL.sdnc_model_name","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db1.vf-model'>\n\n","comments":"","outputs":1,"x":1061.1785354614258,"y":534.964297413826,"z":"d64d71f4.2505a","wires":[["c4ce67f5.c980d8","bf86e1cb.561b4","585c6f98.47d6"]]},{"id":"c4ce67f5.c980d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1304.3927536010742,"y":535.3451566696167,"z":"d64d71f4.2505a","wires":[["8a3b4d7b.30aa8"]]},{"id":"8a3b4d7b.30aa8","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=\"Error reading VF_MODEL table\" />\n","comments":"","x":1485.392734527588,"y":535.4880638122559,"z":"d64d71f4.2505a","wires":[]},{"id":"64943eb6.c116a","type":"get-resource","name":"get VF_MODULE_MODEL.vf-module-label","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT vf_module_label from VF_MODULE_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid \n \tAND vf_module_label is not null'\n pfx='db1.vf-module-model'>\n\n","comments":"","outputs":1,"x":1082.630874633789,"y":663.8095798492432,"z":"d64d71f4.2505a","wires":[["7a35fd40.2d3034","7d5a1873.ae41f8","7d81de0a.38718"]]},{"id":"7a35fd40.2d3034","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1361.4164581298828,"y":664.1904038190842,"z":"d64d71f4.2505a","wires":[["b85cbcbc.9f92d"]]},{"id":"b85cbcbc.9f92d","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=\"Error reading VF_MODULE_MODEL table\" />\n","comments":"","x":1536.416389465332,"y":664.3333042860031,"z":"d64d71f4.2505a","wires":[]},{"id":"7d5a1873.ae41f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1371.6308822631836,"y":743.595287322998,"z":"d64d71f4.2505a","wires":[["699d20c5.17d4e"]]},{"id":"2c569757.4f7808","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":769.9880294799805,"y":534.3452922105789,"z":"d64d71f4.2505a","wires":[["ffe8a21e.9ec8d","64943eb6.c116a"]]},{"id":"f2237083.9bb43","type":"set","name":"set sdnc-model-name, sdnc-model-version","xml":"<set>\n<parameter name='tmp.sdnc-model-name' value='`$db1.vf-model.sdnc-model-name`' />\n<parameter name='tmp.sdnc-model-version' value='`$db1.vf-model.sdnc-model-version`' />\n\n\n\n","comments":"","x":1583.67866897583,"y":615.464334487915,"z":"d64d71f4.2505a","wires":[]},{"id":"bf86e1cb.561b4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1312.2501411437988,"y":615.7500095367432,"z":"d64d71f4.2505a","wires":[["f2237083.9bb43"]]},{"id":"699d20c5.17d4e","type":"set","name":"set vf-module-label","xml":"<set>\n<parameter name='tmp.vf-module-label' value='`$db1.vf-module-model.vf-module-label`' />\n\n\n\n","comments":"","x":1576.071434020996,"y":745.1786003112793,"z":"d64d71f4.2505a","wires":[]},{"id":"a55901ea.de196","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1804.250015258789,"y":1450.8333473205566,"z":"d64d71f4.2505a","wires":[["477f56a8.2964e8","c3ead4f1.968628","31a41aa0.8cccc6"]]},{"id":"c3ead4f1.968628","type":"set","name":"set length","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.resource-key_length`' value='`$num + 1`'/>\n","comments":"","x":2015.250015258789,"y":1450.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"585c6f98.47d6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1315.0000190734863,"y":575.0000076293945,"z":"d64d71f4.2505a","wires":[["d444ba8a.ff33d8"]]},{"id":"d444ba8a.ff33d8","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=\"`'No VF_MODEL found with customization_uuid = ' + $vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />","comments":"","x":1486.2500228881836,"y":573.7500085830688,"z":"d64d71f4.2505a","wires":[]},{"id":"7d81de0a.38718","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1372.5,"y":705,"z":"d64d71f4.2505a","wires":[["1023d51.10a782b"]]},{"id":"1023d51.10a782b","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=\"`'vf_module_label not found in VF_MODULE_MODEL WHERE customization_uuid = ' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`\" />","comments":"","x":1543.7500038146973,"y":703.7500009536743,"z":"d64d71f4.2505a","wires":[]},{"id":"31a41aa0.8cccc6","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='num' value='`$num + 1`' />\n","comments":"","x":2028.250015258789,"y":1516.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"b9edb73a.e3ffc8","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1221.250015258789,"y":1522.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"bdf12ea7.d23ff","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1568.250015258789,"y":1247.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"d34da95a.b5de98","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1362.250015258789,"y":1187.8333473205566,"z":"d64d71f4.2505a","wires":[["3886482a.d004c8","bdf12ea7.d23ff"]]},{"id":"c7adf75b.5424d8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE ConfigAssignmentNode\"/>\n\n","comments":"","outputs":1,"x":327.9166603088379,"y":797.5000104904175,"z":"d64d71f4.2505a","wires":[[]]},{"id":"9e6ab38f.aa2ca","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER ConfigAssignmentNode\"/>\n\n","comments":"","outputs":1,"x":324.5833282470703,"y":952.500018119812,"z":"d64d71f4.2505a","wires":[[]]},{"id":"f4359972.440fb8","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='`$pathname`' />\n","comments":"","outputs":1,"x":337.5,"y":1675.0000133514404,"z":"d64d71f4.2505a","wires":[[]]},{"id":"bffd9817.b24028","type":"set","name":"set pathname","xml":"<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-vfmodule-ra-assignment-' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.vf-module-id + '.log'`\" />\n","comments":"","x":343.75,"y":1622.5000114440918,"z":"d64d71f4.2505a","wires":[]},{"id":"94c3056d.2f14a8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"DONE: vfmodule-ra-assignment\"/>\n\n","comments":"","outputs":1,"x":322.25000381469727,"y":1573.7500190734863,"z":"d64d71f4.2505a","wires":[[]]}]
\ No newline at end of file +[{"id":"83eb3584.636598","type":"dgstart","name":"DGSTART","outputs":1,"x":121.25,"y":52.5,"z":"d64d71f4.2505a","wires":[["d1c40dc0.981c"]]},{"id":"d1c40dc0.981c","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":397.25,"y":53.5,"z":"d64d71f4.2505a","wires":[["1c880935.80aa77"]]},{"id":"1c880935.80aa77","type":"method","name":"self-serve-vfmodule-ra-assignment","xml":"<method rpc='self-serve-vfmodule-ra-assignment' mode='sync'>\n","comments":"","outputs":1,"x":748.25,"y":53.5,"z":"d64d71f4.2505a","wires":[["ffd64a38.3947f8"]]},{"id":"ffd64a38.3947f8","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":133.75,"y":135.5,"z":"d64d71f4.2505a","wires":[["ef03c8a1.ff14c8","b8224a6b.e416b8","5d862679.cda4e8","4cbda7a7.f7ebe8","5174feae.2ee36","d8649df9.d3929","b6c97e6b.a0e99","35183a29.291a06","bd735e70.63002","43e97d79.aa8c94","c7adf75b.5424d8","9e6ab38f.aa2ca","bffd9817.b24028","f4359972.440fb8","94c3056d.2f14a8"]]},{"id":"b8224a6b.e416b8","type":"set","name":"set","xml":"<set>\n <parameter name=\"request-id\" value=\"`$tmp.return.generate.vnf-se-serv-uuid`\"/>\n <parameter name=\"resource-type\" value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-type`\" /> \n <parameter name=\"resource-id\" value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" /> \n <parameter name=\"action-name\" value=\"resource-assignment-action\"/> \n <parameter name=\"responsePrefix\" value=\"sriovAssign\" />\n","comments":"","x":318.25,"y":181.5,"z":"d64d71f4.2505a","wires":[]},{"id":"3bd6d10c.bbf58e","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":594.4642486572266,"y":533.9642963409424,"z":"d64d71f4.2505a","wires":[["2c569757.4f7808"]]},{"id":"4cbda7a7.f7ebe8","type":"for","name":"for vf-module-topology-operation-input","xml":"<for silentFailure='true' index='i' start='0' end='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`' >","comments":"","outputs":1,"x":417.96431732177734,"y":399.2143135070801,"z":"d64d71f4.2505a","wires":[["8036fd78.9c6aa"]]},{"id":"8bd51f50.dbaff","type":"set","name":"set tmp.sdnc-model-name","xml":"<set>\n<parameter name='tmp.sdnc-model-name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`' />\n","comments":"","x":1164.678565979004,"y":331.6428813934326,"z":"d64d71f4.2505a","wires":[]},{"id":"4e6a3a1c.33d514","type":"outcome","name":"sdnc_model_name","xml":"<outcome value='sdnc_model_name'>\n","comments":"","outputs":1,"x":910.6785659790039,"y":331.6428813934326,"z":"d64d71f4.2505a","wires":[["8bd51f50.dbaff"]]},{"id":"8036fd78.9c6aa","type":"switchNode","name":"switch","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name`'>\n\n","comments":"","outputs":1,"x":672.6785659790039,"y":398.6428813934326,"z":"d64d71f4.2505a","wires":[["4e6a3a1c.33d514","6f8b3780.39dba8","86f9e2d9.210ef","5ed0c037.be854"]]},{"id":"6f8b3780.39dba8","type":"outcome","name":"sdnc_model_version","xml":"<outcome value='sdnc_model_version'>\n","comments":"","outputs":1,"x":913.6785659790039,"y":377.6428813934326,"z":"d64d71f4.2505a","wires":[["7626fec9.55e7a"]]},{"id":"86f9e2d9.210ef","type":"outcome","name":"vf_module_label","xml":"<outcome value='vf_module_label'>\n","comments":"","outputs":1,"x":898.6785659790039,"y":426.6428813934326,"z":"d64d71f4.2505a","wires":[["38ee4557.921a3a"]]},{"id":"7626fec9.55e7a","type":"set","name":"set tmp.sdnc-model-version","xml":"<set>\n<parameter name='tmp.sdnc-model-version' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`' />\n\n","comments":"","x":1168.678565979004,"y":377.6428813934326,"z":"d64d71f4.2505a","wires":[]},{"id":"38ee4557.921a3a","type":"set","name":"set tmp.vf-module-label","xml":"<set>\n<parameter name='tmp.vf-module-label' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`' />\n\n","comments":"","x":1150.678565979004,"y":426.6428813934326,"z":"d64d71f4.2505a","wires":[]},{"id":"b97771ef.1b6a8","type":"set","name":"set name-value other JsonString","xml":"<set>\n<parameter name=\"tmp.config-name-value-other-payload\" value=\"`$tmp.config-name-value-other-payload + '"' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name + '":"' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value + '",'`\"/>\n\n","comments":"","x":1168.678565979004,"y":477.6428813934326,"z":"d64d71f4.2505a","wires":[]},{"id":"5ed0c037.be854","type":"outcome","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":870.6785659790039,"y":477.6428813934326,"z":"d64d71f4.2505a","wires":[["b97771ef.1b6a8"]]},{"id":"5174feae.2ee36","type":"set","name":"set configAssignment JsonString","xml":"<set>\n\t<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '"service-instance-id":"' + $vf-module-topology-operation-input.service-information.service-instance-id + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '"vnf-id":"' + $vf-module-topology-operation-input.vnf-information.vnf-id + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '"vf-module-model-customization-uuid":"' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '"vnf-model-customization-uuid":"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload8\" value=\"`$tmp.config-name-value-payload7 + '"vf-module-id":"' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + '",'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload9\" value=\"`$tmp.config-name-value-payload8 + '"aic-cloud-region":"' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region + '"'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload91\" value=\"`'{' + $tmp.config-name-value-payload9 + '}'`\" />\n\t\n","comments":"","x":389.25,"y":691.5,"z":"d64d71f4.2505a","wires":[]},{"id":"d8649df9.d3929","type":"execute","name":"execute ConfigAssignment","xml":"<execute plugin='org.onap.ccsdk.features.assignment.service.ConfigAssignmentNode' method='process'>\n\t<parameter name=\"request-id\" value='`$request-id`' />\n\t<parameter name=\"resource-id\" value='`$resource-id`' /> \n\t<parameter name=\"resource-type\" value='`$resource-type`' />\n\t<parameter name=\"action-name\" value='`$action-name`' />\n\t<parameter name=\"template-names\" value=\"`'["' + $tmp.vf-module-label + '"]'`\" />\n\t<parameter name=\"service-template-name\" value='`$tmp.sdnc-model-name`' />\n\t<parameter name=\"service-template-version\" value='`$tmp.sdnc-model-version`' />\n\t<parameter name='input-data' value='`$tmp.config-name-value-payload91`' />\n\t<parameter name=\"prifix\" value=\"sriovAssign\" />","comments":"","outputs":1,"x":383.5832977294922,"y":869.4999723434448,"z":"d64d71f4.2505a","wires":[["e513cccd.0fb49","62574755.8d02d8"]]},{"id":"e513cccd.0fb49","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":573.5832977294922,"y":845.4999723434448,"z":"d64d71f4.2505a","wires":[["643b1fc.cc237e"]]},{"id":"643b1fc.cc237e","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=\"Error from ConfigAssignmentNode\" />\n","comments":"","x":771.5832977294922,"y":845.4999723434448,"z":"d64d71f4.2505a","wires":[]},{"id":"35183a29.291a06","type":"for","name":"for resource-accumulator-resolved-data loop","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n","comments":"","outputs":1,"x":436.25001525878906,"y":1136.8333473205566,"z":"d64d71f4.2505a","wires":[["bdd24bd9.898e08"]]},{"id":"3886482a.d004c8","type":"set","name":"set from resource-accumulator-resolved-data","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].name`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.capability-name`' value='RA Resolved'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.status`' value='SUCCESS'/>\n\n","comments":"","x":1650.250015258789,"y":1187.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"bd735e70.63002","type":"for","name":"for capability-data","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n","comments":"","outputs":1,"x":355.25001525878906,"y":1399.8333473205566,"z":"d64d71f4.2505a","wires":[["1be8ded5.660511"]]},{"id":"1be8ded5.660511","type":"for","name":"for key-mapping","xml":"<for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >","comments":"","outputs":1,"x":578.2500152587891,"y":1399.8333473205566,"z":"d64d71f4.2505a","wires":[["e6f5f92.a1f8f08"]]},{"id":"b6c97e6b.a0e99","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'sriovAssign.mashed-data.' + $tmp.vf-module-label`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":380.25001525878906,"y":1057.8333473205566,"z":"d64d71f4.2505a","wires":[[]]},{"id":"ef03c8a1.ff14c8","type":"execute","name":"execute generateUUID","xml":" <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" > \n <parameter name=\"ctx-destination\" value=\"tmp.return.generate.vnf-se-serv-uuid\" /> \n ","comments":"","outputs":1,"x":363.25,"y":135.5,"z":"d64d71f4.2505a","wires":[["4ba70d0.5eaf3f4"]]},{"id":"4ba70d0.5eaf3f4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":568.25,"y":135.5,"z":"d64d71f4.2505a","wires":[["f15273ba.e4ccf"]]},{"id":"f15273ba.e4ccf","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=\"generateUUID is failed\" />\n","comments":"","x":732.25,"y":134.5,"z":"d64d71f4.2505a","wires":[]},{"id":"a23caf97.dd75a","type":"for","name":"for vnf-parameters-data.param","xml":"<for silentFailure='true' index='cnt' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n","comments":"","outputs":1,"x":1409.250015258789,"y":1136.8333473205566,"z":"d64d71f4.2505a","wires":[["d072867f.af17a8"]]},{"id":"bdd24bd9.898e08","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":715.2500152587891,"y":1137.8333473205566,"z":"d64d71f4.2505a","wires":[["9a2a1dac.b088","245adfb0.abd75","aaaf5cde.bcba6"]]},{"id":"5d862679.cda4e8","type":"switchNode","name":"switch vf-parameters-data.param_length","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`'>\n","comments":"","outputs":1,"x":435.25,"y":236.5,"z":"d64d71f4.2505a","wires":[["b713b448.f4d8b8","7c50cac9.4fd584"]]},{"id":"b713b448.f4d8b8","type":"outcome","name":"null","xml":"<outcome value=''>","comments":"","outputs":1,"x":698.3928833007812,"y":204.35715293884277,"z":"d64d71f4.2505a","wires":[["c0a33e08.da9ce"]]},{"id":"7c50cac9.4fd584","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":697.3928833007812,"y":268.3571529388428,"z":"d64d71f4.2505a","wires":[["53104be0.6c8084"]]},{"id":"c0a33e08.da9ce","type":"set","name":"set pre service param len as 0","xml":"<set>\n <parameter name='highnum' value='0' />\n <parameter name='prehighnum' value='0'/>\n","comments":"","x":911.3928833007812,"y":204.35715293884277,"z":"d64d71f4.2505a","wires":[]},{"id":"53104be0.6c8084","type":"set","name":"set pre service param len","xml":"<set>\n <parameter name='highnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' />\n <parameter name='prehighnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' />","comments":"","x":896.3928833007812,"y":268.3571529388428,"z":"d64d71f4.2505a","wires":[]},{"id":"d072867f.af17a8","type":"switchNode","name":"switch input vnf-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cnt].name == $jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'>\n","comments":"","outputs":1,"x":1667.250015258789,"y":1136.8333473205566,"z":"d64d71f4.2505a","wires":[["ed697e54.d13fe"]]},{"id":"ed697e54.d13fe","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1847.250015258789,"y":1136.8333473205566,"z":"d64d71f4.2505a","wires":[["5253daf.8524e24"]]},{"id":"5253daf.8524e24","type":"set","name":"set for existing param name","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cnt].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='tmp.mso.param.found' value='true' />\n","comments":"","x":2057.250015258789,"y":1137.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"aaaf5cde.bcba6","type":"switchNode","name":"switch tmp.mso.param.not-found","xml":"<switch test='`$tmp.mso.param.found`'>\n","comments":"","outputs":1,"x":957.2500152587891,"y":1189.8333473205566,"z":"d64d71f4.2505a","wires":[["5fec017a.f95fb"]]},{"id":"5fec017a.f95fb","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1191.250015258789,"y":1188.8333473205566,"z":"d64d71f4.2505a","wires":[["d34da95a.b5de98"]]},{"id":"9a2a1dac.b088","type":"set","name":"set for existing param name","xml":"<set>\n<parameter name='tmp.mso.param.found' value='false' />\n","comments":"","x":941.2500152587891,"y":1078.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"245adfb0.abd75","type":"switchNode","name":"switch check length > 0","xml":"<switch test='`$prehighnum > 0`'>\n","comments":"","outputs":1,"x":933.7500152587891,"y":1137.8333473205566,"z":"d64d71f4.2505a","wires":[["868c71ff.81c13"]]},{"id":"868c71ff.81c13","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1180.750015258789,"y":1137.8333473205566,"z":"d64d71f4.2505a","wires":[["a23caf97.dd75a"]]},{"id":"7407bfe8.27801","type":"for","name":"for payload","xml":"<for index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >","comments":"","outputs":1,"x":1627.250015258789,"y":1451.8333473205566,"z":"d64d71f4.2505a","wires":[["a55901ea.de196"]]},{"id":"477f56a8.2964e8","type":"set","name":"set resource-key","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.resource-key[$num].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-name`'/>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.resource-key[$num].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-value`'/>\n\t\n","comments":"","x":2026.250015258789,"y":1392.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"dff927e4.b927a8","type":"set","name":"set output-data ","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-value`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.capability-name`' value='`$jsonContextPrefix.capability-data[$i].capability-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.status`' value='PENDING'/>\n<parameter name='num' value='0' />","comments":"","x":1205.250015258789,"y":1353.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"e6f5f92.a1f8f08","type":"for","name":"for output-key-mapping","xml":"<for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >","comments":"","outputs":1,"x":813.2500152587891,"y":1400.8333473205566,"z":"d64d71f4.2505a","wires":[["c4847a99.613d08"]]},{"id":"c4847a99.613d08","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":1008.2500152587891,"y":1399.8333473205566,"z":"d64d71f4.2505a","wires":[["dff927e4.b927a8","d708f5a0.7b1588","3b5810ed.04647","b9edb73a.e3ffc8"]]},{"id":"3b5810ed.04647","type":"set","name":"set length","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' value='`$highnum + 1`'/>\n\n","comments":"","x":1204.250015258789,"y":1451.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"62574755.8d02d8","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":578.5832977294922,"y":907.4999723434448,"z":"d64d71f4.2505a","wires":[["643b1fc.cc237e"]]},{"id":"d708f5a0.7b1588","type":"switchNode","name":"switch payload_length","xml":"<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n","comments":"","outputs":1,"x":1234.250015258789,"y":1400.8333473205566,"z":"d64d71f4.2505a","wires":[["8f1dc823.58d558","99c3f6b2.9f2ed8"]]},{"id":"8f1dc823.58d558","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1449.250015258789,"y":1332.8333473205566,"z":"d64d71f4.2505a","wires":[[]]},{"id":"99c3f6b2.9f2ed8","type":"other","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1458.250015258789,"y":1451.8333473205566,"z":"d64d71f4.2505a","wires":[["7407bfe8.27801"]]},{"id":"43e97d79.aa8c94","type":"switchNode","name":"switch: model info == NULL","xml":"<switch test=\"`$tmp.sdnc-model-name == '' or $tmp.sdnc-model-version == '' or $tmp.vf-module-label == ''`\">\n","comments":"","outputs":1,"x":383.03570556640625,"y":534.1071863174438,"z":"d64d71f4.2505a","wires":[["3bd6d10c.bbf58e"]]},{"id":"ffe8a21e.9ec8d","type":"get-resource","name":"get VF_MODEL.sdnc_model_name","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db1.vf-model'>\n\n","comments":"","outputs":1,"x":1061.1785354614258,"y":534.964297413826,"z":"d64d71f4.2505a","wires":[["c4ce67f5.c980d8","bf86e1cb.561b4","585c6f98.47d6"]]},{"id":"c4ce67f5.c980d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1304.3927536010742,"y":535.3451566696167,"z":"d64d71f4.2505a","wires":[["8a3b4d7b.30aa8"]]},{"id":"8a3b4d7b.30aa8","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=\"Error reading VF_MODEL table\" />\n","comments":"","x":1485.392734527588,"y":535.4880638122559,"z":"d64d71f4.2505a","wires":[]},{"id":"64943eb6.c116a","type":"get-resource","name":"get VF_MODULE_MODEL.vf-module-label","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT vf_module_label from VF_MODULE_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid \n \tAND vf_module_label is not null'\n pfx='db1.vf-module-model'>\n\n","comments":"","outputs":1,"x":1082.630874633789,"y":663.8095798492432,"z":"d64d71f4.2505a","wires":[["7a35fd40.2d3034","7d5a1873.ae41f8","7d81de0a.38718"]]},{"id":"7a35fd40.2d3034","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1361.4164581298828,"y":664.1904038190842,"z":"d64d71f4.2505a","wires":[["b85cbcbc.9f92d"]]},{"id":"b85cbcbc.9f92d","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=\"Error reading VF_MODULE_MODEL table\" />\n","comments":"","x":1536.416389465332,"y":664.3333042860031,"z":"d64d71f4.2505a","wires":[]},{"id":"7d5a1873.ae41f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1371.6308822631836,"y":743.595287322998,"z":"d64d71f4.2505a","wires":[["699d20c5.17d4e"]]},{"id":"2c569757.4f7808","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":769.9880294799805,"y":534.3452922105789,"z":"d64d71f4.2505a","wires":[["ffe8a21e.9ec8d","64943eb6.c116a"]]},{"id":"f2237083.9bb43","type":"set","name":"set sdnc-model-name, sdnc-model-version","xml":"<set>\n<parameter name='tmp.sdnc-model-name' value='`$db1.vf-model.sdnc-model-name`' />\n<parameter name='tmp.sdnc-model-version' value='`$db1.vf-model.sdnc-model-version`' />\n\n\n\n","comments":"","x":1583.67866897583,"y":615.464334487915,"z":"d64d71f4.2505a","wires":[]},{"id":"bf86e1cb.561b4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1312.2501411437988,"y":615.7500095367432,"z":"d64d71f4.2505a","wires":[["f2237083.9bb43"]]},{"id":"699d20c5.17d4e","type":"set","name":"set vf-module-label","xml":"<set>\n<parameter name='tmp.vf-module-label' value='`$db1.vf-module-model.vf-module-label`' />\n\n\n\n","comments":"","x":1576.071434020996,"y":745.1786003112793,"z":"d64d71f4.2505a","wires":[]},{"id":"a55901ea.de196","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1804.250015258789,"y":1450.8333473205566,"z":"d64d71f4.2505a","wires":[["477f56a8.2964e8","c3ead4f1.968628","31a41aa0.8cccc6"]]},{"id":"c3ead4f1.968628","type":"set","name":"set length","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.resource-key_length`' value='`$num + 1`'/>\n","comments":"","x":2015.250015258789,"y":1450.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"585c6f98.47d6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1315.0000190734863,"y":575.0000076293945,"z":"d64d71f4.2505a","wires":[["d444ba8a.ff33d8"]]},{"id":"d444ba8a.ff33d8","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=\"`'No VF_MODEL found with customization_uuid = ' + $vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />","comments":"","x":1486.2500228881836,"y":573.7500085830688,"z":"d64d71f4.2505a","wires":[]},{"id":"7d81de0a.38718","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1372.5,"y":705,"z":"d64d71f4.2505a","wires":[["1023d51.10a782b"]]},{"id":"1023d51.10a782b","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=\"`'vf_module_label not found in VF_MODULE_MODEL WHERE customization_uuid = ' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`\" />","comments":"","x":1543.7500038146973,"y":703.7500009536743,"z":"d64d71f4.2505a","wires":[]},{"id":"31a41aa0.8cccc6","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='num' value='`$num + 1`' />\n","comments":"","x":2028.250015258789,"y":1516.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"b9edb73a.e3ffc8","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1221.250015258789,"y":1522.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"bdf12ea7.d23ff","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1568.250015258789,"y":1247.8333473205566,"z":"d64d71f4.2505a","wires":[]},{"id":"d34da95a.b5de98","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1362.250015258789,"y":1187.8333473205566,"z":"d64d71f4.2505a","wires":[["3886482a.d004c8","bdf12ea7.d23ff"]]},{"id":"c7adf75b.5424d8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE ConfigAssignmentNode\"/>\n\n","comments":"","outputs":1,"x":327.9166603088379,"y":797.5000104904175,"z":"d64d71f4.2505a","wires":[[]]},{"id":"9e6ab38f.aa2ca","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER ConfigAssignmentNode\"/>\n\n","comments":"","outputs":1,"x":324.5833282470703,"y":952.500018119812,"z":"d64d71f4.2505a","wires":[[]]},{"id":"f4359972.440fb8","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='`$pathname`' />\n","comments":"","outputs":1,"x":337.5,"y":1675.0000133514404,"z":"d64d71f4.2505a","wires":[[]]},{"id":"bffd9817.b24028","type":"set","name":"set pathname","xml":"<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-vfmodule-ra-assignment-' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.vf-module-id + '.log'`\" />\n","comments":"","x":343.75,"y":1622.5000114440918,"z":"d64d71f4.2505a","wires":[]},{"id":"94c3056d.2f14a8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"DONE: vfmodule-ra-assignment\"/>\n\n","comments":"","outputs":1,"x":322.25000381469727,"y":1573.7500190734863,"z":"d64d71f4.2505a","wires":[[]]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.json index fb45c952..f9cce9e1 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.json @@ -1 +1 @@ -[{"id":"d0c59a3d.7ed238","type":"dgstart","name":"DGSTART","outputs":1,"x":98.75,"y":50,"z":"800c9e1a.13ce2","wires":[["f0c0673e.e88ee8"]]},{"id":"f0c0673e.e88ee8","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":374.75,"y":51,"z":"800c9e1a.13ce2","wires":[["8f50a323.b2533"]]},{"id":"8f50a323.b2533","type":"method","name":"self-serve-vnf-ra-assignment","xml":"<method rpc='self-serve-vnf-ra-assignment' mode='sync'>\n","comments":"","outputs":1,"x":691.75,"y":51,"z":"800c9e1a.13ce2","wires":[["8d8d8e2.459ef7"]]},{"id":"8d8d8e2.459ef7","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":187.91664123535156,"y":131.3333339691162,"z":"800c9e1a.13ce2","wires":[["824db1d2.ca0c8","319a8e77.bffd82","baafab16.f78078","295ada85.311d36","32e0a4e6.ad652c","66ae9485.ed619c","773ad2d5.7929bc","f06c74aa.529078","b08389cd.25db28","2ecf40df.8b54","27588817.e77f28","118b26b3.8912c9","b9e6cadc.8763c8","ea43f5d0.00a1a8","397b0eed.c2de92"]]},{"id":"319a8e77.bffd82","type":"set","name":"set","xml":"<set>\n <parameter name=\"request-id\" value=\"`$tmp.return.generate.vnf-se-serv-uuid`\"/>\n <parameter name=\"resource-type\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-type`\" /> \n <parameter name=\"resource-id\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" /> \n <parameter name=\"action-name\" value=\"resource-assignment-action\"/> \n <parameter name=\"responsePrefix\" value=\"sriovAssign\" />\n","comments":"","x":373.6666603088379,"y":176.08333015441895,"z":"800c9e1a.13ce2","wires":[]},{"id":"e67d04d9.1103a8","type":"get-resource","name":"get-resource VF_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db1.vf-model'>\n \n\n","comments":"","outputs":1,"x":912.5594635009766,"y":567.6189861297607,"z":"800c9e1a.13ce2","wires":[["d9295e39.85b92","ceb448d8.62a4f8","524195c4.a15adc"]]},{"id":"d9295e39.85b92","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1157.5595626831055,"y":516.904709815979,"z":"800c9e1a.13ce2","wires":[["aa075761.aa8fd8"]]},{"id":"aa075761.aa8fd8","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=\"Error reading VF_MODULE_MODEL table\" />\n","comments":"","x":1330.5595626831055,"y":515.904709815979,"z":"800c9e1a.13ce2","wires":[]},{"id":"e30fe9dc.be8b98","type":"set","name":"set tmp.sdnc-model-name, tmp.sdnc-model-version, tmp.sdnc-artifact-name","xml":"<set>\n<parameter name='tmp.sdnc-model-name' value='`$db1.vf-model.sdnc-model-name`' />\n<parameter name='tmp.sdnc-model-version' value='`$db1.vf-model.sdnc-model-version`' />\n<parameter name='tmp.sdnc-artifact-name' value='`$db1.vf-model.sdnc-artifact-name`' />\n\n\n\n\n","comments":"","x":1532.9880638122559,"y":617.047513961792,"z":"800c9e1a.13ce2","wires":[]},{"id":"7ee3a573.6d8efc","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=\"Error reading VF_MODULE_MODEL table\" />\n","comments":"","x":1332.5595626831055,"y":564.904709815979,"z":"800c9e1a.13ce2","wires":[]},{"id":"32e0a4e6.ad652c","type":"switchNode","name":"switch: model info == NULL","xml":"<switch test=\"`$tmp.sdnc-model-name == '' or $tmp.sdnc-model-version == '' or $tmp.sdnc-artifact-name == ''`\">\n","comments":"","outputs":1,"x":433.55946350097656,"y":568.6189861297607,"z":"800c9e1a.13ce2","wires":[["6d6bcc9e.6983a4"]]},{"id":"ceb448d8.62a4f8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1163.5595626831055,"y":565.904709815979,"z":"800c9e1a.13ce2","wires":[["7ee3a573.6d8efc"]]},{"id":"6d6bcc9e.6983a4","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":682.5594635009766,"y":568.6189861297607,"z":"800c9e1a.13ce2","wires":[["e67d04d9.1103a8"]]},{"id":"295ada85.311d36","type":"for","name":"for vnf-topology-operation-input","xml":"<for silentFailure='true' index='i' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >","comments":"","outputs":1,"x":449.41664123535156,"y":368.3333339691162,"z":"800c9e1a.13ce2","wires":[["34e422ee.14170e"]]},{"id":"34e422ee.14170e","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":671.4166412353516,"y":367.3333339691162,"z":"800c9e1a.13ce2","wires":[["f966e290.4208d"]]},{"id":"fe1a1220.0d2a9","type":"set","name":"set tmp.sdnc-model-name","xml":"<set>\n<parameter name='tmp.sdnc-model-name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value`' />\n","comments":"","x":1322.4166412353516,"y":300.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"bf45de0d.8d2cd","type":"outcome","name":"sdnc_model_name","xml":"<outcome value='sdnc_model_name'>\n","comments":"","outputs":1,"x":1068.4166412353516,"y":300.3333339691162,"z":"800c9e1a.13ce2","wires":[["fe1a1220.0d2a9"]]},{"id":"f966e290.4208d","type":"switchNode","name":"switch","xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name`'>\n\n","comments":"","outputs":1,"x":830.4166412353516,"y":367.3333339691162,"z":"800c9e1a.13ce2","wires":[["bf45de0d.8d2cd","bf945f09.0b903","5e2ecec5.712b4","542f60d0.d3792"]]},{"id":"bf945f09.0b903","type":"outcome","name":"sdnc_model_version","xml":"<outcome value='sdnc_model_version'>\n","comments":"","outputs":1,"x":1071.4166412353516,"y":346.3333339691162,"z":"800c9e1a.13ce2","wires":[["6a9371f3.51374"]]},{"id":"5e2ecec5.712b4","type":"outcome","name":"sdnc_artifact_name","xml":"<outcome value='sdnc_artifact_name'>\n","comments":"","outputs":1,"x":1070.4166412353516,"y":395.3333339691162,"z":"800c9e1a.13ce2","wires":[["7543e155.3b9c4"]]},{"id":"6a9371f3.51374","type":"set","name":"set tmp.sdnc-model-version","xml":"<set>\n<parameter name='tmp.sdnc-model-version' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value`' />\n\n","comments":"","x":1326.4166412353516,"y":346.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"7543e155.3b9c4","type":"set","name":"set tmp.sdnc-artifact-name","xml":"<set>\n<parameter name='tmp.sdnc-artifact-name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value`' />\n\n","comments":"","x":1322.4166412353516,"y":395.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"b220aa70.438f68","type":"set","name":"set name-value other JsonString","xml":"<set>\n<parameter name=\"tmp.config-name-value-other-payload\" value=\"`$tmp.config-name-value-other-payload + '"' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name + '":"' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value + '",'`\"/>\n\n","comments":"","x":1338.4166412353516,"y":444.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"542f60d0.d3792","type":"outcome","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1030.416648864746,"y":444.9047546386719,"z":"800c9e1a.13ce2","wires":[["b220aa70.438f68"]]},{"id":"66ae9485.ed619c","type":"set","name":"set configAssignment JsonString","xml":"<set>\n<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '"service-instance-id":"' + $vnf-topology-operation-input.service-information.service-instance-id + '",'`\"/>\n<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '"vnf-model-customization-uuid":"' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid + '",'`\"/>\n<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '"vnf-id":"' + $vnf-topology-operation-input.vnf-information.vnf-id + '",'`\"/>\n<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '"aic-cloud-region":"' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + '"'`\"/>\n<parameter name=\"tmp.json-payload\" value=\"`'{' + $tmp.config-name-value-payload7 + '}'`\" />","comments":"","x":443.41664123535156,"y":687.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"773ad2d5.7929bc","type":"execute","name":"execute ConfigAssignment","xml":"<execute plugin='org.onap.ccsdk.config.assignment.service.ConfigAssignmentNode' method='process'>\n\t<parameter name=\"request-id\" value='`$request-id`' />\n\t<parameter name=\"resource-id\" value='`$resource-id`' /> \n\t<parameter name=\"resource-type\" value='`$resource-type`' />\n\t<parameter name=\"action-name\" value='`$action-name`' />\n\t<parameter name=\"template-names\" value=\"`'["' + $tmp.sdnc-artifact-name + '"]'`\" />\n\t<parameter name=\"service-template-name\" value='`$tmp.sdnc-model-name`' />\n\t<parameter name=\"service-template-version\" value='`$tmp.sdnc-model-version`' />\n\t<parameter name='input-data' value='`$tmp.json-payload`' />\n\t<parameter name=\"prifix\" value=\"sriovAssign\" />","comments":"","outputs":1,"x":431.08331298828125,"y":841.9999761581421,"z":"800c9e1a.13ce2","wires":[["439ea371.d8e00c","737bc15c.33608"]]},{"id":"439ea371.d8e00c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":621.0833129882812,"y":817.9999761581421,"z":"800c9e1a.13ce2","wires":[["a0e51ba7.0038b8"]]},{"id":"a0e51ba7.0038b8","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=\"Error from ConfigAssignmentNode\" />\n","comments":"","x":803.0833129882812,"y":838.9999761581421,"z":"800c9e1a.13ce2","wires":[]},{"id":"b08389cd.25db28","type":"for","name":"for resource-accumulator-resolved-data loop","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n","comments":"","outputs":1,"x":475.41664123535156,"y":1059.333324432373,"z":"800c9e1a.13ce2","wires":[["bfd7ca.a572b838"]]},{"id":"6a7385bd.a3aa5c","type":"set","name":"set from resource-accumulator-resolved-data","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].name`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'/>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' value='RA Resolved'/>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='SUCCESS'/>\n","comments":"","x":1705.4166412353516,"y":1111.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"2ecf40df.8b54","type":"for","name":"for capability-data","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n","comments":"","outputs":1,"x":400.41664123535156,"y":1401.333324432373,"z":"800c9e1a.13ce2","wires":[["c7af3a2a.07b838"]]},{"id":"c7af3a2a.07b838","type":"for","name":"for key-mapping","xml":"<for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >","comments":"","outputs":1,"x":609.4166412353516,"y":1401.333324432373,"z":"800c9e1a.13ce2","wires":[["def772c6.92a07"]]},{"id":"f06c74aa.529078","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'sriovAssign.mashed-data.' + $tmp.sdnc-artifact-name`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":419.41664123535156,"y":980.333324432373,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"824db1d2.ca0c8","type":"execute","name":"execute generateUUID","xml":" <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" > \n <parameter name=\"ctx-destination\" value=\"tmp.return.generate.vnf-se-serv-uuid\" /> \n ","comments":"","outputs":1,"x":425.41664123535156,"y":131.3333339691162,"z":"800c9e1a.13ce2","wires":[["c25f2fa4.2e114"]]},{"id":"c25f2fa4.2e114","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":603.4166412353516,"y":129.3333339691162,"z":"800c9e1a.13ce2","wires":[["5adea246.4faddc"]]},{"id":"5adea246.4faddc","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=\"generateUUID is failed\" />\n","comments":"","x":750.4166412353516,"y":130.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"b33db330.db3ac","type":"for","name":"for vnf-parameters-data.param","xml":"<for silentFailure='true' index='cnt' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n","comments":"","outputs":1,"x":1448.4166412353516,"y":1059.333324432373,"z":"800c9e1a.13ce2","wires":[["103653f5.91707c"]]},{"id":"bfd7ca.a572b838","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":754.4166412353516,"y":1060.333324432373,"z":"800c9e1a.13ce2","wires":[["aaca7b17.ef9368","228e0b9c.62cb04","15915f83.bbaed"]]},{"id":"baafab16.f78078","type":"switchNode","name":"switch vnf-parameters-data.param_length","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`'>\n","comments":"","outputs":1,"x":477.41664123535156,"y":229.3333339691162,"z":"800c9e1a.13ce2","wires":[["c0beca06.9dbe98","a751e3b8.f7e79"]]},{"id":"c0beca06.9dbe98","type":"outcome","name":"null","xml":"<outcome value=''>","comments":"","outputs":1,"x":715.4166412353516,"y":197.3333339691162,"z":"800c9e1a.13ce2","wires":[["325b94d1.d736ec"]]},{"id":"a751e3b8.f7e79","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":714.4166412353516,"y":261.3333339691162,"z":"800c9e1a.13ce2","wires":[["4cac7986.26d988"]]},{"id":"325b94d1.d736ec","type":"set","name":"set pre service param len as 0","xml":"<set>\n <parameter name='highnum' value='0' />\n <parameter name='prehighnum' value='0'/>\n","comments":"","x":928.4166412353516,"y":197.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"4cac7986.26d988","type":"set","name":"set pre service param len","xml":"<set>\n <parameter name='highnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' />\n <parameter name='prehighnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' />","comments":"","x":913.4166412353516,"y":261.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"103653f5.91707c","type":"switchNode","name":"switch input vnf-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$cnt].name == $jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'>\n","comments":"","outputs":1,"x":1706.4166412353516,"y":1059.333324432373,"z":"800c9e1a.13ce2","wires":[["bb513218.4fb28"]]},{"id":"bb513218.4fb28","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1886.4166412353516,"y":1059.333324432373,"z":"800c9e1a.13ce2","wires":[["13551737.eec4e9"]]},{"id":"13551737.eec4e9","type":"set","name":"set for existing param name","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$cnt].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='tmp.mso.param.found' value='true' />\n","comments":"","x":2096.4166412353516,"y":1060.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"15915f83.bbaed","type":"switchNode","name":"switch tmp.mso.param.not-found","xml":"<switch test='`$tmp.mso.param.found`'>\n","comments":"","outputs":1,"x":996.4166412353516,"y":1112.333324432373,"z":"800c9e1a.13ce2","wires":[["57aa76b8.68f398"]]},{"id":"57aa76b8.68f398","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1230.4166412353516,"y":1111.333324432373,"z":"800c9e1a.13ce2","wires":[["a1a25b3c.f6b8a8"]]},{"id":"aaca7b17.ef9368","type":"set","name":"set for existing param name","xml":"<set>\n<parameter name='tmp.mso.param.found' value='false' />\n","comments":"","x":980.4166412353516,"y":1001.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"228e0b9c.62cb04","type":"switchNode","name":"switch check length > 0","xml":"<switch test='`$prehighnum > 0`'>\n","comments":"","outputs":1,"x":972.9166412353516,"y":1060.333324432373,"z":"800c9e1a.13ce2","wires":[["478407d7.e64458"]]},{"id":"478407d7.e64458","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1219.9166412353516,"y":1060.333324432373,"z":"800c9e1a.13ce2","wires":[["b33db330.db3ac"]]},{"id":"129dc007.a6a9b","type":"for","name":"for payload","xml":"<for silentFailure='true' index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >","comments":"","outputs":1,"x":1791.4166412353516,"y":1419.333324432373,"z":"800c9e1a.13ce2","wires":[["b2135a5d.998258"]]},{"id":"ed366e3e.4e89c","type":"set","name":"set resource-key","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$num].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$num].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-value`'/>\n\n","comments":"","x":2140.4166412353516,"y":1355.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"adc0d430.9c36a8","type":"set","name":"set output-data ","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-value`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' value='`$jsonContextPrefix.capability-data[$i].capability-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='PENDING'/>\n<parameter name='num' value='0' />","comments":"","x":1364.4166412353516,"y":1299.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"def772c6.92a07","type":"for","name":"for output-key-mapping","xml":"<for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >","comments":"","outputs":1,"x":832.4166412353516,"y":1401.333324432373,"z":"800c9e1a.13ce2","wires":[["5039b442.319d5c"]]},{"id":"5039b442.319d5c","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":1083.4166412353516,"y":1401.333324432373,"z":"800c9e1a.13ce2","wires":[["adc0d430.9c36a8","ace22a8e.1c1438","224d1f3e.75128","98fa758f.6cfbb8"]]},{"id":"ace22a8e.1c1438","type":"set","name":"set length","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' value='`$highnum + 1`'/>\n","comments":"","x":1352.4166412353516,"y":1437.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"737bc15c.33608","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":626.0833129882812,"y":879.9999761581421,"z":"800c9e1a.13ce2","wires":[["a0e51ba7.0038b8"]]},{"id":"224d1f3e.75128","type":"switchNode","name":"switch payload_length","xml":"<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n","comments":"","outputs":1,"x":1388.4166412353516,"y":1370.333324432373,"z":"800c9e1a.13ce2","wires":[["da435bd9.d2a898","121da4bf.6ed1fb"]]},{"id":"da435bd9.d2a898","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1609.4166412353516,"y":1301.333324432373,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"121da4bf.6ed1fb","type":"other","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1616.4166412353516,"y":1419.333324432373,"z":"800c9e1a.13ce2","wires":[["129dc007.a6a9b"]]},{"id":"524195c4.a15adc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1159.7023658752441,"y":616.9046821594238,"z":"800c9e1a.13ce2","wires":[["e30fe9dc.be8b98"]]},{"id":"c2b87f13.df4ad","type":"set","name":"set length","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key_length`' value='`$num + 1`'/>\n","comments":"","x":2129.4166412353516,"y":1419.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"965376ca.357fd8","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='num' value='`$num + 1`' />\n","comments":"","x":2147.4166412353516,"y":1493.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"98fa758f.6cfbb8","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n\n","comments":"","x":1373.4166412353516,"y":1504.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"a1a25b3c.f6b8a8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1407.4166412353516,"y":1110.333324432373,"z":"800c9e1a.13ce2","wires":[["6a7385bd.a3aa5c","82641903.bb3408"]]},{"id":"82641903.bb3408","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1622.4166412353516,"y":1170.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"b2135a5d.998258","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":1947.4166412353516,"y":1420.333324432373,"z":"800c9e1a.13ce2","wires":[["ed366e3e.4e89c","c2b87f13.df4ad","965376ca.357fd8"]]},{"id":"27588817.e77f28","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE ConfigAssignmentNode\"/>\n\n","comments":"","outputs":1,"x":373.7499809265137,"y":763.333324432373,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"118b26b3.8912c9","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER ConfigAssignmentNode\"/>\n\n","comments":"","outputs":1,"x":370.4166488647461,"y":918.3333320617676,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"ea43f5d0.00a1a8","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='`$pathname`' />\n","comments":"","outputs":1,"x":378.75000762939453,"y":1722.5000267028809,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"b9e6cadc.8763c8","type":"set","name":"set pathname","xml":"<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-vnf-ra-assignment-' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id + '.log'`\" />\n","comments":"","x":385.00000762939453,"y":1670.0000247955322,"z":"800c9e1a.13ce2","wires":[]},{"id":"397b0eed.c2de92","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"DONE: vnf-ra-assignment\"/>\n\n","comments":"","outputs":1,"x":362.50000381469727,"y":1623.7500247955322,"z":"800c9e1a.13ce2","wires":[[]]}]
\ No newline at end of file +[{"id":"d0c59a3d.7ed238","type":"dgstart","name":"DGSTART","outputs":1,"x":98.75,"y":50,"z":"800c9e1a.13ce2","wires":[["f0c0673e.e88ee8"]]},{"id":"f0c0673e.e88ee8","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":374.75,"y":51,"z":"800c9e1a.13ce2","wires":[["8f50a323.b2533"]]},{"id":"8f50a323.b2533","type":"method","name":"self-serve-vnf-ra-assignment","xml":"<method rpc='self-serve-vnf-ra-assignment' mode='sync'>\n","comments":"","outputs":1,"x":691.75,"y":51,"z":"800c9e1a.13ce2","wires":[["8d8d8e2.459ef7"]]},{"id":"8d8d8e2.459ef7","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":187.91664123535156,"y":131.3333339691162,"z":"800c9e1a.13ce2","wires":[["824db1d2.ca0c8","319a8e77.bffd82","baafab16.f78078","295ada85.311d36","32e0a4e6.ad652c","66ae9485.ed619c","773ad2d5.7929bc","f06c74aa.529078","b08389cd.25db28","2ecf40df.8b54","27588817.e77f28","118b26b3.8912c9","b9e6cadc.8763c8","ea43f5d0.00a1a8","397b0eed.c2de92"]]},{"id":"319a8e77.bffd82","type":"set","name":"set","xml":"<set>\n <parameter name=\"request-id\" value=\"`$tmp.return.generate.vnf-se-serv-uuid`\"/>\n <parameter name=\"resource-type\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-type`\" /> \n <parameter name=\"resource-id\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" /> \n <parameter name=\"action-name\" value=\"resource-assignment-action\"/> \n <parameter name=\"responsePrefix\" value=\"sriovAssign\" />\n","comments":"","x":373.6666603088379,"y":176.08333015441895,"z":"800c9e1a.13ce2","wires":[]},{"id":"e67d04d9.1103a8","type":"get-resource","name":"get-resource VF_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db1.vf-model'>\n \n\n","comments":"","outputs":1,"x":912.5594635009766,"y":567.6189861297607,"z":"800c9e1a.13ce2","wires":[["d9295e39.85b92","ceb448d8.62a4f8","524195c4.a15adc"]]},{"id":"d9295e39.85b92","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1157.5595626831055,"y":516.904709815979,"z":"800c9e1a.13ce2","wires":[["aa075761.aa8fd8"]]},{"id":"aa075761.aa8fd8","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=\"Error reading VF_MODULE_MODEL table\" />\n","comments":"","x":1330.5595626831055,"y":515.904709815979,"z":"800c9e1a.13ce2","wires":[]},{"id":"e30fe9dc.be8b98","type":"set","name":"set tmp.sdnc-model-name, tmp.sdnc-model-version, tmp.sdnc-artifact-name","xml":"<set>\n<parameter name='tmp.sdnc-model-name' value='`$db1.vf-model.sdnc-model-name`' />\n<parameter name='tmp.sdnc-model-version' value='`$db1.vf-model.sdnc-model-version`' />\n<parameter name='tmp.sdnc-artifact-name' value='`$db1.vf-model.sdnc-artifact-name`' />\n\n\n\n\n","comments":"","x":1532.9880638122559,"y":617.047513961792,"z":"800c9e1a.13ce2","wires":[]},{"id":"7ee3a573.6d8efc","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=\"Error reading VF_MODULE_MODEL table\" />\n","comments":"","x":1332.5595626831055,"y":564.904709815979,"z":"800c9e1a.13ce2","wires":[]},{"id":"32e0a4e6.ad652c","type":"switchNode","name":"switch: model info == NULL","xml":"<switch test=\"`$tmp.sdnc-model-name == '' or $tmp.sdnc-model-version == '' or $tmp.sdnc-artifact-name == ''`\">\n","comments":"","outputs":1,"x":433.55946350097656,"y":568.6189861297607,"z":"800c9e1a.13ce2","wires":[["6d6bcc9e.6983a4"]]},{"id":"ceb448d8.62a4f8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1163.5595626831055,"y":565.904709815979,"z":"800c9e1a.13ce2","wires":[["7ee3a573.6d8efc"]]},{"id":"6d6bcc9e.6983a4","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":682.5594635009766,"y":568.6189861297607,"z":"800c9e1a.13ce2","wires":[["e67d04d9.1103a8"]]},{"id":"295ada85.311d36","type":"for","name":"for vnf-topology-operation-input","xml":"<for silentFailure='true' index='i' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >","comments":"","outputs":1,"x":449.41664123535156,"y":368.3333339691162,"z":"800c9e1a.13ce2","wires":[["34e422ee.14170e"]]},{"id":"34e422ee.14170e","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":671.4166412353516,"y":367.3333339691162,"z":"800c9e1a.13ce2","wires":[["f966e290.4208d"]]},{"id":"fe1a1220.0d2a9","type":"set","name":"set tmp.sdnc-model-name","xml":"<set>\n<parameter name='tmp.sdnc-model-name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value`' />\n","comments":"","x":1322.4166412353516,"y":300.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"bf45de0d.8d2cd","type":"outcome","name":"sdnc_model_name","xml":"<outcome value='sdnc_model_name'>\n","comments":"","outputs":1,"x":1068.4166412353516,"y":300.3333339691162,"z":"800c9e1a.13ce2","wires":[["fe1a1220.0d2a9"]]},{"id":"f966e290.4208d","type":"switchNode","name":"switch","xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name`'>\n\n","comments":"","outputs":1,"x":830.4166412353516,"y":367.3333339691162,"z":"800c9e1a.13ce2","wires":[["bf45de0d.8d2cd","bf945f09.0b903","5e2ecec5.712b4","542f60d0.d3792"]]},{"id":"bf945f09.0b903","type":"outcome","name":"sdnc_model_version","xml":"<outcome value='sdnc_model_version'>\n","comments":"","outputs":1,"x":1071.4166412353516,"y":346.3333339691162,"z":"800c9e1a.13ce2","wires":[["6a9371f3.51374"]]},{"id":"5e2ecec5.712b4","type":"outcome","name":"sdnc_artifact_name","xml":"<outcome value='sdnc_artifact_name'>\n","comments":"","outputs":1,"x":1070.4166412353516,"y":395.3333339691162,"z":"800c9e1a.13ce2","wires":[["7543e155.3b9c4"]]},{"id":"6a9371f3.51374","type":"set","name":"set tmp.sdnc-model-version","xml":"<set>\n<parameter name='tmp.sdnc-model-version' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value`' />\n\n","comments":"","x":1326.4166412353516,"y":346.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"7543e155.3b9c4","type":"set","name":"set tmp.sdnc-artifact-name","xml":"<set>\n<parameter name='tmp.sdnc-artifact-name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value`' />\n\n","comments":"","x":1322.4166412353516,"y":395.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"b220aa70.438f68","type":"set","name":"set name-value other JsonString","xml":"<set>\n<parameter name=\"tmp.config-name-value-other-payload\" value=\"`$tmp.config-name-value-other-payload + '"' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name + '":"' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value + '",'`\"/>\n\n","comments":"","x":1338.4166412353516,"y":444.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"542f60d0.d3792","type":"outcome","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1030.416648864746,"y":444.9047546386719,"z":"800c9e1a.13ce2","wires":[["b220aa70.438f68"]]},{"id":"66ae9485.ed619c","type":"set","name":"set configAssignment JsonString","xml":"<set>\n<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '"service-instance-id":"' + $vnf-topology-operation-input.service-information.service-instance-id + '",'`\"/>\n<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '"vnf-model-customization-uuid":"' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid + '",'`\"/>\n<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '"vnf-id":"' + $vnf-topology-operation-input.vnf-information.vnf-id + '",'`\"/>\n<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '"aic-cloud-region":"' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + '"'`\"/>\n<parameter name=\"tmp.json-payload\" value=\"`'{' + $tmp.config-name-value-payload7 + '}'`\" />","comments":"","x":443.41664123535156,"y":687.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"773ad2d5.7929bc","type":"execute","name":"execute ConfigAssignment","xml":"<execute plugin='org.onap.ccsdk.features.assignment.service.ConfigAssignmentNode' method='process'>\n\t<parameter name=\"request-id\" value='`$request-id`' />\n\t<parameter name=\"resource-id\" value='`$resource-id`' /> \n\t<parameter name=\"resource-type\" value='`$resource-type`' />\n\t<parameter name=\"action-name\" value='`$action-name`' />\n\t<parameter name=\"template-names\" value=\"`'["' + $tmp.sdnc-artifact-name + '"]'`\" />\n\t<parameter name=\"service-template-name\" value='`$tmp.sdnc-model-name`' />\n\t<parameter name=\"service-template-version\" value='`$tmp.sdnc-model-version`' />\n\t<parameter name='input-data' value='`$tmp.json-payload`' />\n\t<parameter name=\"prifix\" value=\"sriovAssign\" />","comments":"","outputs":1,"x":431.08331298828125,"y":841.9999761581421,"z":"800c9e1a.13ce2","wires":[["439ea371.d8e00c","737bc15c.33608"]]},{"id":"439ea371.d8e00c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":621.0833129882812,"y":817.9999761581421,"z":"800c9e1a.13ce2","wires":[["a0e51ba7.0038b8"]]},{"id":"a0e51ba7.0038b8","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=\"Error from ConfigAssignmentNode\" />\n","comments":"","x":803.0833129882812,"y":838.9999761581421,"z":"800c9e1a.13ce2","wires":[]},{"id":"b08389cd.25db28","type":"for","name":"for resource-accumulator-resolved-data loop","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n","comments":"","outputs":1,"x":475.41664123535156,"y":1059.333324432373,"z":"800c9e1a.13ce2","wires":[["bfd7ca.a572b838"]]},{"id":"6a7385bd.a3aa5c","type":"set","name":"set from resource-accumulator-resolved-data","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].name`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'/>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' value='RA Resolved'/>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='SUCCESS'/>\n","comments":"","x":1705.4166412353516,"y":1111.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"2ecf40df.8b54","type":"for","name":"for capability-data","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n","comments":"","outputs":1,"x":400.41664123535156,"y":1401.333324432373,"z":"800c9e1a.13ce2","wires":[["c7af3a2a.07b838"]]},{"id":"c7af3a2a.07b838","type":"for","name":"for key-mapping","xml":"<for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >","comments":"","outputs":1,"x":609.4166412353516,"y":1401.333324432373,"z":"800c9e1a.13ce2","wires":[["def772c6.92a07"]]},{"id":"f06c74aa.529078","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'sriovAssign.mashed-data.' + $tmp.sdnc-artifact-name`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":419.41664123535156,"y":980.333324432373,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"824db1d2.ca0c8","type":"execute","name":"execute generateUUID","xml":" <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" > \n <parameter name=\"ctx-destination\" value=\"tmp.return.generate.vnf-se-serv-uuid\" /> \n ","comments":"","outputs":1,"x":425.41664123535156,"y":131.3333339691162,"z":"800c9e1a.13ce2","wires":[["c25f2fa4.2e114"]]},{"id":"c25f2fa4.2e114","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":603.4166412353516,"y":129.3333339691162,"z":"800c9e1a.13ce2","wires":[["5adea246.4faddc"]]},{"id":"5adea246.4faddc","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=\"generateUUID is failed\" />\n","comments":"","x":750.4166412353516,"y":130.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"b33db330.db3ac","type":"for","name":"for vnf-parameters-data.param","xml":"<for silentFailure='true' index='cnt' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n","comments":"","outputs":1,"x":1448.4166412353516,"y":1059.333324432373,"z":"800c9e1a.13ce2","wires":[["103653f5.91707c"]]},{"id":"bfd7ca.a572b838","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":754.4166412353516,"y":1060.333324432373,"z":"800c9e1a.13ce2","wires":[["aaca7b17.ef9368","228e0b9c.62cb04","15915f83.bbaed"]]},{"id":"baafab16.f78078","type":"switchNode","name":"switch vnf-parameters-data.param_length","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`'>\n","comments":"","outputs":1,"x":477.41664123535156,"y":229.3333339691162,"z":"800c9e1a.13ce2","wires":[["c0beca06.9dbe98","a751e3b8.f7e79"]]},{"id":"c0beca06.9dbe98","type":"outcome","name":"null","xml":"<outcome value=''>","comments":"","outputs":1,"x":715.4166412353516,"y":197.3333339691162,"z":"800c9e1a.13ce2","wires":[["325b94d1.d736ec"]]},{"id":"a751e3b8.f7e79","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":714.4166412353516,"y":261.3333339691162,"z":"800c9e1a.13ce2","wires":[["4cac7986.26d988"]]},{"id":"325b94d1.d736ec","type":"set","name":"set pre service param len as 0","xml":"<set>\n <parameter name='highnum' value='0' />\n <parameter name='prehighnum' value='0'/>\n","comments":"","x":928.4166412353516,"y":197.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"4cac7986.26d988","type":"set","name":"set pre service param len","xml":"<set>\n <parameter name='highnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' />\n <parameter name='prehighnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' />","comments":"","x":913.4166412353516,"y":261.3333339691162,"z":"800c9e1a.13ce2","wires":[]},{"id":"103653f5.91707c","type":"switchNode","name":"switch input vnf-name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$cnt].name == $jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'>\n","comments":"","outputs":1,"x":1706.4166412353516,"y":1059.333324432373,"z":"800c9e1a.13ce2","wires":[["bb513218.4fb28"]]},{"id":"bb513218.4fb28","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1886.4166412353516,"y":1059.333324432373,"z":"800c9e1a.13ce2","wires":[["13551737.eec4e9"]]},{"id":"13551737.eec4e9","type":"set","name":"set for existing param name","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$cnt].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='tmp.mso.param.found' value='true' />\n","comments":"","x":2096.4166412353516,"y":1060.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"15915f83.bbaed","type":"switchNode","name":"switch tmp.mso.param.not-found","xml":"<switch test='`$tmp.mso.param.found`'>\n","comments":"","outputs":1,"x":996.4166412353516,"y":1112.333324432373,"z":"800c9e1a.13ce2","wires":[["57aa76b8.68f398"]]},{"id":"57aa76b8.68f398","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1230.4166412353516,"y":1111.333324432373,"z":"800c9e1a.13ce2","wires":[["a1a25b3c.f6b8a8"]]},{"id":"aaca7b17.ef9368","type":"set","name":"set for existing param name","xml":"<set>\n<parameter name='tmp.mso.param.found' value='false' />\n","comments":"","x":980.4166412353516,"y":1001.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"228e0b9c.62cb04","type":"switchNode","name":"switch check length > 0","xml":"<switch test='`$prehighnum > 0`'>\n","comments":"","outputs":1,"x":972.9166412353516,"y":1060.333324432373,"z":"800c9e1a.13ce2","wires":[["478407d7.e64458"]]},{"id":"478407d7.e64458","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1219.9166412353516,"y":1060.333324432373,"z":"800c9e1a.13ce2","wires":[["b33db330.db3ac"]]},{"id":"129dc007.a6a9b","type":"for","name":"for payload","xml":"<for silentFailure='true' index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >","comments":"","outputs":1,"x":1791.4166412353516,"y":1419.333324432373,"z":"800c9e1a.13ce2","wires":[["b2135a5d.998258"]]},{"id":"ed366e3e.4e89c","type":"set","name":"set resource-key","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$num].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$num].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-value`'/>\n\n","comments":"","x":2140.4166412353516,"y":1355.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"adc0d430.9c36a8","type":"set","name":"set output-data ","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-value`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' value='`$jsonContextPrefix.capability-data[$i].capability-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='PENDING'/>\n<parameter name='num' value='0' />","comments":"","x":1364.4166412353516,"y":1299.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"def772c6.92a07","type":"for","name":"for output-key-mapping","xml":"<for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >","comments":"","outputs":1,"x":832.4166412353516,"y":1401.333324432373,"z":"800c9e1a.13ce2","wires":[["5039b442.319d5c"]]},{"id":"5039b442.319d5c","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":1083.4166412353516,"y":1401.333324432373,"z":"800c9e1a.13ce2","wires":[["adc0d430.9c36a8","ace22a8e.1c1438","224d1f3e.75128","98fa758f.6cfbb8"]]},{"id":"ace22a8e.1c1438","type":"set","name":"set length","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' value='`$highnum + 1`'/>\n","comments":"","x":1352.4166412353516,"y":1437.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"737bc15c.33608","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":626.0833129882812,"y":879.9999761581421,"z":"800c9e1a.13ce2","wires":[["a0e51ba7.0038b8"]]},{"id":"224d1f3e.75128","type":"switchNode","name":"switch payload_length","xml":"<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n","comments":"","outputs":1,"x":1388.4166412353516,"y":1370.333324432373,"z":"800c9e1a.13ce2","wires":[["da435bd9.d2a898","121da4bf.6ed1fb"]]},{"id":"da435bd9.d2a898","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1609.4166412353516,"y":1301.333324432373,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"121da4bf.6ed1fb","type":"other","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1616.4166412353516,"y":1419.333324432373,"z":"800c9e1a.13ce2","wires":[["129dc007.a6a9b"]]},{"id":"524195c4.a15adc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1159.7023658752441,"y":616.9046821594238,"z":"800c9e1a.13ce2","wires":[["e30fe9dc.be8b98"]]},{"id":"c2b87f13.df4ad","type":"set","name":"set length","xml":"<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key_length`' value='`$num + 1`'/>\n","comments":"","x":2129.4166412353516,"y":1419.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"965376ca.357fd8","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='num' value='`$num + 1`' />\n","comments":"","x":2147.4166412353516,"y":1493.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"98fa758f.6cfbb8","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n\n","comments":"","x":1373.4166412353516,"y":1504.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"a1a25b3c.f6b8a8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1407.4166412353516,"y":1110.333324432373,"z":"800c9e1a.13ce2","wires":[["6a7385bd.a3aa5c","82641903.bb3408"]]},{"id":"82641903.bb3408","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1622.4166412353516,"y":1170.333324432373,"z":"800c9e1a.13ce2","wires":[]},{"id":"b2135a5d.998258","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":1947.4166412353516,"y":1420.333324432373,"z":"800c9e1a.13ce2","wires":[["ed366e3e.4e89c","c2b87f13.df4ad","965376ca.357fd8"]]},{"id":"27588817.e77f28","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE ConfigAssignmentNode\"/>\n\n","comments":"","outputs":1,"x":373.7499809265137,"y":763.333324432373,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"118b26b3.8912c9","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER ConfigAssignmentNode\"/>\n\n","comments":"","outputs":1,"x":370.4166488647461,"y":918.3333320617676,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"ea43f5d0.00a1a8","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='`$pathname`' />\n","comments":"","outputs":1,"x":378.75000762939453,"y":1722.5000267028809,"z":"800c9e1a.13ce2","wires":[[]]},{"id":"b9e6cadc.8763c8","type":"set","name":"set pathname","xml":"<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-vnf-ra-assignment-' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id + '.log'`\" />\n","comments":"","x":385.00000762939453,"y":1670.0000247955322,"z":"800c9e1a.13ce2","wires":[]},{"id":"397b0eed.c2de92","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"DONE: vnf-ra-assignment\"/>\n\n","comments":"","outputs":1,"x":362.50000381469727,"y":1623.7500247955322,"z":"800c9e1a.13ce2","wires":[[]]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-vnf-input.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-vnf-input.json index 86c905b6..9ef063ea 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-vnf-input.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-vnf-input.json @@ -1 +1,529 @@ -[{"id":"582b5aa0.7eeaf4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":260,"y":410.2500066757202,"z":"348b9f74.369c5","wires":[["bd96033d.8336e","7fd8cb2f.5fa374","38370c7c.c4f0d4","d5c4e5aa.7d5948","1bbaae3f.e0d542","aa17e02a.1771"]]},{"id":"bd96033d.8336e","type":"switchNode","name":"switch svc-request-id","xml":"<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`'>\n","comments":"","outputs":1,"x":517.7619094848633,"y":368.08034229278564,"z":"348b9f74.369c5","wires":[["2f85d56c.ed707a"]]},{"id":"2f85d56c.ed707a","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":743.476203918457,"y":368.0803461074829,"z":"348b9f74.369c5","wires":[["372f23ad.72c64c"]]},{"id":"372f23ad.72c64c","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":894.9047698974609,"y":368.0803442001343,"z":"348b9f74.369c5","wires":[]},{"id":"7fd8cb2f.5fa374","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":506.3332726614817,"y":326.6517738614764,"z":"348b9f74.369c5","wires":[["bd1aeb1f.a739c8"]]},{"id":"bd1aeb1f.a739c8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":742.0476243155344,"y":325.22317164284846,"z":"348b9f74.369c5","wires":[["afc00ae4.9d9d18"]]},{"id":"afc00ae4.9d9d18","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":892.0475976126536,"y":325.2231811795916,"z":"348b9f74.369c5","wires":[]},{"id":"38370c7c.c4f0d4","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":516.3333260672434,"y":410.9374889646258,"z":"348b9f74.369c5","wires":[["be233ca5.19ebe"]]},{"id":"be233ca5.19ebe","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":743.4761995588033,"y":410.9374998637609,"z":"348b9f74.369c5","wires":[["32cbb07.e56b45"]]},{"id":"32cbb07.e56b45","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 a required input\" />\n","comments":"","x":894.9047655378072,"y":410.93749795641224,"z":"348b9f74.369c5","wires":[]},{"id":"68df33c4.fea8fc","type":"switchNode","name":"switch model-customization-id","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`'>\n","comments":"","outputs":1,"x":1134.7978477478027,"y":558.3662624359131,"z":"348b9f74.369c5","wires":[["10cb7b10.f12585"]]},{"id":"10cb7b10.f12585","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1339.7978477478027,"y":558.3662452697754,"z":"348b9f74.369c5","wires":[["f4a32f1c.bd90b"]]},{"id":"f4a32f1c.bd90b","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=\"vnf-information.onap-model-information.model-customization-uuid is a required input\" />\n","comments":"","x":1491.2264137268066,"y":558.3662433624268,"z":"348b9f74.369c5","wires":[]},{"id":"fe896fef.dd825","type":"switchNode","name":"switch tenant","xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.tenant`'>\n","comments":"","outputs":1,"x":1080.6549263000488,"y":599.7947731018066,"z":"348b9f74.369c5","wires":[["74a78b37.2da984"]]},{"id":"74a78b37.2da984","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1338.3692436218262,"y":599.794807434082,"z":"348b9f74.369c5","wires":[["dd5d5cef.7e70f"]]},{"id":"dd5d5cef.7e70f","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=\"vnf-information.vnf-request-input.tenant is a required input\" />\n","comments":"","x":1489.79780960083,"y":599.7948055267334,"z":"348b9f74.369c5","wires":[]},{"id":"dbb5229b.87433","type":"comment","name":"Validation of required fields","info":"","comments":"","x":666.3332824707031,"y":282.36605644226074,"z":"348b9f74.369c5","wires":[]},{"id":"d5c4e5aa.7d5948","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":500.32141876220703,"y":600.0447483062744,"z":"348b9f74.369c5","wires":[["24b1818b.56cbbe"]]},{"id":"24b1818b.56cbbe","type":"outcome","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":677.4047393798828,"y":599.6280879974365,"z":"348b9f74.369c5","wires":[["a750cf34.02893"]]},{"id":"a750cf34.02893","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":874.0713500976562,"y":599.6280879974365,"z":"348b9f74.369c5","wires":[["68df33c4.fea8fc","fe896fef.dd825","26f7b426.cb378c"]]},{"id":"980060b2.05cd2","type":"dgstart","name":"DGSTART","outputs":1,"x":178.7500098092214,"y":154.9136562347412,"z":"348b9f74.369c5","wires":[["16c74c85.6dd223"]]},{"id":"16c74c85.6dd223","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":292.03571537562766,"y":195.1517677307129,"z":"348b9f74.369c5","wires":[["323a6f66.9143"]]},{"id":"323a6f66.9143","type":"method","name":"method validate-vnf-input","xml":"<method rpc='validate-vnf-input' mode='sync'>\n","comments":"","outputs":1,"x":227.42863682338157,"y":236.16365242004395,"z":"348b9f74.369c5","wires":[["582b5aa0.7eeaf4"]]},{"id":"b04d7cd7.867c8","type":"comment","name":"validate-vnf-input","info":"","comments":"","x":573.0948660714284,"y":102.5,"z":"348b9f74.369c5","wires":[]},{"id":"1bbaae3f.e0d542","type":"switchNode","name":"switch service-instance-id","xml":"<switch test='`$vnf-topology-operation-input.service-information.service-instance-id`'>\n","comments":"","outputs":1,"x":529.3571570260183,"y":455.00001525878906,"z":"348b9f74.369c5","wires":[["7c1a77b8.6014f8"]]},{"id":"7c1a77b8.6014f8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":741.7857382638113,"y":455.0000114440918,"z":"348b9f74.369c5","wires":[["3c78fe4d.85e032"]]},{"id":"3c78fe4d.85e032","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=\"service-information.service-instance-id is a required input\" />\n","comments":"","x":893.2143042428152,"y":455.00000953674316,"z":"348b9f74.369c5","wires":[]},{"id":"aa17e02a.1771","type":"switchNode","name":"switch vnf-id","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id`'>\n","comments":"","outputs":1,"x":486.8571662902832,"y":498.5000057220459,"z":"348b9f74.369c5","wires":[["fee9192a.df3c38"]]},{"id":"fee9192a.df3c38","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":742.1428756713867,"y":497.07143783569336,"z":"348b9f74.369c5","wires":[["34c1ea3e.84a8a6"]]},{"id":"34c1ea3e.84a8a6","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=\"vnf-information.vnf-id is a required input\" />\n","comments":"","x":893.5714416503906,"y":497.0714359283447,"z":"348b9f74.369c5","wires":[]},{"id":"26f7b426.cb378c","type":"switchNode","name":"switch aic-cloud-region","xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n","comments":"","outputs":1,"x":1110.0000076293945,"y":642.0714302062988,"z":"348b9f74.369c5","wires":[["59831b6.e59aee4"]]},{"id":"59831b6.e59aee4","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1336.7143249511719,"y":642.0714645385742,"z":"348b9f74.369c5","wires":[["b0aeb3a5.71fc5"]]},{"id":"b0aeb3a5.71fc5","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=\"vnf-request-input.aic-cloud-region is a required input\" />\n","comments":"","x":1488.1428909301758,"y":642.0714626312256,"z":"348b9f74.369c5","wires":[]},{"id":"18880cde.db6723","type":"switchNode","name":"switch model-customization-id","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`'>\n","comments":"","outputs":1,"x":1105.4761505126953,"y":757.2619113922119,"z":"348b9f74.369c5","wires":[["9cbd6868.f694f8"]]},{"id":"9cbd6868.f694f8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1310.4761505126953,"y":757.2618942260742,"z":"348b9f74.369c5","wires":[["5efeb3c6.10dcbc"]]},{"id":"5efeb3c6.10dcbc","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=\"vnf-information.onap-model-information.model-customization-uuid is a required input\" />\n","comments":"","x":1461.9047164916992,"y":757.2618923187256,"z":"348b9f74.369c5","wires":[]},{"id":"8fbbcbd5.fd98c8","type":"outcome","name":"changeassign","xml":"<outcome value='changeassign'>\n","comments":"","outputs":1,"x":695.4163703918457,"y":757.1904706954956,"z":"348b9f74.369c5","wires":[["b11b3301.491e"]]},{"id":"b11b3301.491e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":875.4163589477539,"y":757.1904373168945,"z":"348b9f74.369c5","wires":[["18880cde.db6723"]]},{"id":"bdabc15d.2497b","type":"comment","name":"model-customization-uuid validation moved to changeassign DG","info":"","comments":"","x":755,"y":722.5000104904175,"z":"348b9f74.369c5","wires":[]}]
\ No newline at end of file +[
+ {
+ "id": "76c41400.105bfc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 215.03125,
+ "y": 380.7500047683716,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "2a2419b1.808286",
+ "63aa7131.36521",
+ "eac281c.1de128",
+ "e567acf8.fa2ee",
+ "b96ae981.783b38"
+ ]
+ ]
+ },
+ {
+ "id": "2a2419b1.808286",
+ "type": "switchNode",
+ "name": "switch svc-request-id",
+ "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 472.7931594848633,
+ "y": 338.580340385437,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "b04eadfc.363d6"
+ ]
+ ]
+ },
+ {
+ "id": "b04eadfc.363d6",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 698.507453918457,
+ "y": 338.5803442001343,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "7a089ce3.3d6db4"
+ ]
+ ]
+ },
+ {
+ "id": "7a089ce3.3d6db4",
+ "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": 849.9360198974609,
+ "y": 338.58034229278564,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "63aa7131.36521",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 461.3645226614817,
+ "y": 297.15177195412775,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "9a54011a.7a533"
+ ]
+ ]
+ },
+ {
+ "id": "9a54011a.7a533",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 697.0788743155344,
+ "y": 295.7231697354998,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "ae9fbdb1.99d76"
+ ]
+ ]
+ },
+ {
+ "id": "ae9fbdb1.99d76",
+ "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": 847.0788476126536,
+ "y": 295.723179272243,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "eac281c.1de128",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 471.36457606724343,
+ "y": 381.43748705727717,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "723ab622.079618"
+ ]
+ ]
+ },
+ {
+ "id": "723ab622.079618",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 698.5074495588033,
+ "y": 381.43749795641224,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "af6a2199.40114"
+ ]
+ ]
+ },
+ {
+ "id": "af6a2199.40114",
+ "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 a required input\" />\n",
+ "comments": "",
+ "x": 849.9360155378072,
+ "y": 381.4374960490636,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "cb0aa11e.ba442",
+ "type": "switchNode",
+ "name": "switch model-customization-id",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1089.8290977478027,
+ "y": 528.8662605285645,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "f7d46398.5727f"
+ ]
+ ]
+ },
+ {
+ "id": "f7d46398.5727f",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1294.8290977478027,
+ "y": 528.8662433624268,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "4203f831.9a99a8"
+ ]
+ ]
+ },
+ {
+ "id": "4203f831.9a99a8",
+ "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=\"vnf-information.onap-model-information.model-customization-uuid is a required input\" />\n",
+ "comments": "",
+ "x": 1446.2576637268066,
+ "y": 528.8662414550781,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "3314ab19.e03fa4",
+ "type": "switchNode",
+ "name": "switch tenant",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.tenant`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1035.6861763000488,
+ "y": 570.294771194458,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "8f23daeb.368758"
+ ]
+ ]
+ },
+ {
+ "id": "8f23daeb.368758",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1293.4004936218262,
+ "y": 570.2948055267334,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "d455e65.3d8f318"
+ ]
+ ]
+ },
+ {
+ "id": "d455e65.3d8f318",
+ "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=\"vnf-information.vnf-request-input.tenant is a required input\" />\n",
+ "comments": "",
+ "x": 1444.82905960083,
+ "y": 570.2948036193848,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "b6a4138f.58b28",
+ "type": "comment",
+ "name": "Validation of required fields",
+ "info": "",
+ "comments": "",
+ "x": 621.3645324707031,
+ "y": 252.8660545349121,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "e567acf8.fa2ee",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 455.35266876220703,
+ "y": 570.5447463989258,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "99eee3d5.45a48"
+ ]
+ ]
+ },
+ {
+ "id": "99eee3d5.45a48",
+ "type": "outcome",
+ "name": "assign",
+ "xml": "<outcome value='assign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 632.4359893798828,
+ "y": 570.1280860900879,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "74f6768d.61c458"
+ ]
+ ]
+ },
+ {
+ "id": "74f6768d.61c458",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 829.1026000976562,
+ "y": 570.1280860900879,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "cb0aa11e.ba442",
+ "3314ab19.e03fa4",
+ "14a1f7ee.4225a8"
+ ]
+ ]
+ },
+ {
+ "id": "75d1af24.b59b7",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 133.7812598092214,
+ "y": 125.41365432739258,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "7a2246ee.79a8f8"
+ ]
+ ]
+ },
+ {
+ "id": "7a2246ee.79a8f8",
+ "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": 247.06696537562766,
+ "y": 165.65176582336426,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "58cd5caf.4f7f64"
+ ]
+ ]
+ },
+ {
+ "id": "58cd5caf.4f7f64",
+ "type": "method",
+ "name": "method validate-vnf-input",
+ "xml": "<method rpc='validate-vnf-input' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 182.45988682338157,
+ "y": 206.6636505126953,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "76c41400.105bfc"
+ ]
+ ]
+ },
+ {
+ "id": "4fd47656.8c48d8",
+ "type": "comment",
+ "name": "validate-vnf-input",
+ "info": "",
+ "comments": "",
+ "x": 528.1261160714284,
+ "y": 72.99999809265137,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "b96ae981.783b38",
+ "type": "switchNode",
+ "name": "switch service-instance-id",
+ "xml": "<switch test='`$vnf-topology-operation-input.service-information.service-instance-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 484.3884070260183,
+ "y": 425.50001335144043,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "222c65be.19adaa"
+ ]
+ ]
+ },
+ {
+ "id": "222c65be.19adaa",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 696.8169882638113,
+ "y": 425.50000953674316,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "419149d7.f3c9e8"
+ ]
+ ]
+ },
+ {
+ "id": "419149d7.f3c9e8",
+ "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=\"service-information.service-instance-id is a required input\" />\n",
+ "comments": "",
+ "x": 848.2455542428152,
+ "y": 425.50000762939453,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "14a1f7ee.4225a8",
+ "type": "switchNode",
+ "name": "switch aic-cloud-region",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1065.0312576293945,
+ "y": 612.5714282989502,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "34b6bd95.7d9342"
+ ]
+ ]
+ },
+ {
+ "id": "34b6bd95.7d9342",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1291.7455749511719,
+ "y": 612.5714626312256,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "2a60eee3.33bf02"
+ ]
+ ]
+ },
+ {
+ "id": "2a60eee3.33bf02",
+ "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=\"vnf-request-input.aic-cloud-region is a required input\" />\n",
+ "comments": "",
+ "x": 1443.1741409301758,
+ "y": 612.571460723877,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "786596f7.351798",
+ "type": "switchNode",
+ "name": "switch model-customization-id",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1060.5074005126953,
+ "y": 727.7619094848633,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "47670feb.a0d52"
+ ]
+ ]
+ },
+ {
+ "id": "47670feb.a0d52",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1265.5074005126953,
+ "y": 727.7618923187256,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "57c8f1dd.5353b"
+ ]
+ ]
+ },
+ {
+ "id": "57c8f1dd.5353b",
+ "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=\"vnf-information.onap-model-information.model-customization-uuid is a required input\" />\n",
+ "comments": "",
+ "x": 1416.9359664916992,
+ "y": 727.761890411377,
+ "z": "62d88521.de373c",
+ "wires": []
+ },
+ {
+ "id": "cfe766b3.3ac5a8",
+ "type": "outcome",
+ "name": "changeassign",
+ "xml": "<outcome value='changeassign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 650.4476203918457,
+ "y": 727.690468788147,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "43346cb0.8ff874"
+ ]
+ ]
+ },
+ {
+ "id": "43346cb0.8ff874",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 830.4476089477539,
+ "y": 727.6904354095459,
+ "z": "62d88521.de373c",
+ "wires": [
+ [
+ "786596f7.351798"
+ ]
+ ]
+ },
+ {
+ "id": "75147ce8.6bd644",
+ "type": "comment",
+ "name": "model-customization-uuid validation moved to changeassign DG",
+ "info": "",
+ "comments": "",
+ "x": 710.03125,
+ "y": 693.0000085830688,
+ "z": "62d88521.de373c",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign.json index 765ac45b..97404397 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign.json @@ -1 +1,6517 @@ -[{"id":"2d9a5021.a73fc","type":"dgstart","name":"DGSTART","outputs":1,"x":103.33332824707031,"y":92.0242999792099,"z":"c281e2a0.b9793","wires":[["7af2ba16.efbe04"]]},{"id":"7af2ba16.efbe04","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":217.1904640197754,"y":131.83383786678314,"z":"c281e2a0.b9793","wires":[["9cd2d55b.54c678"]]},{"id":"9cd2d55b.54c678","type":"method","name":"method vf-module-topology-operation-assign","xml":"<method rpc='vf-module-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":216.76195526123047,"y":172.0242999792099,"z":"c281e2a0.b9793","wires":[["fcb16772.796c08"]]},{"id":"84ba5ebf.ff60a","type":"comment","name":"vf-module-topology-operation-assign","info":"","comments":"","x":508.65442657470703,"y":34.99999940395355,"z":"c281e2a0.b9793","wires":[]},{"id":"ded68ff0.3a928","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":508.5238380432129,"y":347.54812228679657,"z":"c281e2a0.b9793","wires":[["68c9565e.9ca968","c3025ff2.eb1a4"]]},{"id":"68c9565e.9ca968","type":"outcome","name":"CreateVfModuleInstance","xml":"<outcome value='CreateVfModuleInstance'>\n","comments":"","outputs":1,"x":770.5714530944824,"y":324.69100844860077,"z":"c281e2a0.b9793","wires":[["c4aed937.2735f8"]]},{"id":"c3025ff2.eb1a4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":714.2380981445312,"y":370.0719975233078,"z":"c281e2a0.b9793","wires":[["6602e840.996b48"]]},{"id":"c4aed937.2735f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":960.428617477417,"y":324.6910399198532,"z":"c281e2a0.b9793","wires":[[]]},{"id":"6602e840.996b48","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=\"If svc-action is 'assign' then request-action must be 'CreateVfModuleInstance'\" />\n","comments":"","x":979.2381057739258,"y":370.4053100347519,"z":"c281e2a0.b9793","wires":[]},{"id":"93af21a0.ebb87","type":"get-resource","name":"get-resource VF_MODULE_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODULE_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-module-model'>\n\n","comments":"","outputs":1,"x":555.857105255127,"y":438.69107234477997,"z":"c281e2a0.b9793","wires":[["cc299718.add008","2fc346d7.b7eeaa"]]},{"id":"cc2e38cf.3deaa8","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=\"`'No model found for VF module customization UUID ' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`\" />\n","comments":"","x":997.2855262756348,"y":463.11954486370087,"z":"c281e2a0.b9793","wires":[]},{"id":"cc299718.add008","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":821.6427955627441,"y":419.0719031095505,"z":"c281e2a0.b9793","wires":[["1820f554.21472b"]]},{"id":"2fc346d7.b7eeaa","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":830.214225769043,"y":463.35761630535126,"z":"c281e2a0.b9793","wires":[["cc2e38cf.3deaa8"]]},{"id":"1820f554.21472b","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=\"Error reading VF_MODULE_MODEL table\" />\n","comments":"","x":996.6427268981934,"y":418.2148035764694,"z":"c281e2a0.b9793","wires":[]},{"id":"1fc7e563.9fd97b","type":"switchNode","name":"switch service-data.vnfs.vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":550.9523696899414,"y":647.2624076604843,"z":"c281e2a0.b9793","wires":[["be99c605.d53058","162bb610.abeb1a"]]},{"id":"be99c605.d53058","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":791.6666412353516,"y":624.4051479101181,"z":"c281e2a0.b9793","wires":[["e8dafdc2.bb5f3"]]},{"id":"162bb610.abeb1a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":791.4284820556641,"y":665.3576663732529,"z":"c281e2a0.b9793","wires":[["d00d1f75.bb2b6"]]},{"id":"53d50dfc.924b64","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":129.52376556396484,"y":3128.9293060302734,"z":"c281e2a0.b9793","wires":[["7bd98255.dbf20c","73e41686.118588","c4bc8ce5.99831","75bfb79b.e8b428","e56ad2ae.3e458","9f83de03.191b2","a2b2f4bb.0b2c18","3c2d8086.e91e4","904ff883.8a93b8","74fef761.5900c8","8c426d11.4eff9","248e182d.ced848","29643f29.61c8b","3d7e906e.ebd9d","9567a7bf.617988","7146fa07.61fea4","4de8c9e1.b8f3c8","874eaff1.71395","d48930e4.19e86","41677f15.139e7","6782300a.2a6c","d2581847.10cc78","a5403308.f3a28","e28c7bde.2c20f8","b3a603a5.80e31","c04c47f5.514678","cdfcaf85.62d64","47fa3ee6.d0e38","e81704f9.71e908","3701ddfc.549122"]]},{"id":"e8dafdc2.bb5f3","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=\"There are no VNFs defined in MD-SAL\" />\n","comments":"","x":958.3332557678223,"y":623.6909030675888,"z":"c281e2a0.b9793","wires":[]},{"id":"d00d1f75.bb2b6","type":"for","name":"for each vnf","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":953.6666259765625,"y":665.0242847204208,"z":"c281e2a0.b9793","wires":[["14386756.4e8489"]]},{"id":"14386756.4e8489","type":"switchNode","name":"switch service data vnf == input vnf","xml":"<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\n","comments":"","outputs":1,"x":1204.9999237060547,"y":664.6910127401352,"z":"c281e2a0.b9793","wires":[["37865014.a062a"]]},{"id":"37865014.a062a","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1434.9999351501465,"y":664.0243257284164,"z":"c281e2a0.b9793","wires":[["163851b5.a752ee"]]},{"id":"1c73f9f3.baee96","type":"set","name":"set vnf-index to -1","xml":"<set>\n<parameter name='vnf-index' value='-1' />\n","comments":"","x":499.99999237060547,"y":578.6909068822861,"z":"c281e2a0.b9793","wires":[]},{"id":"f86c2fde.aa2bd","type":"set","name":"set vnf-index to idx","xml":"<set>\n<parameter name='vnf-index' value='`$idx`' />\n","comments":"","x":1756.6665725708008,"y":635.0242837667465,"z":"c281e2a0.b9793","wires":[]},{"id":"f91c0c48.6c834","type":"switchNode","name":"switch vnf-index","xml":"<switch test='`$vnf-index`'>\n","comments":"","outputs":1,"x":490,"y":715.357603430748,"z":"c281e2a0.b9793","wires":[["bed1bf89.09f41"]]},{"id":"bed1bf89.09f41","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":668.3333854675293,"y":714.6909793615341,"z":"c281e2a0.b9793","wires":[["fa5b072.c38b3f8"]]},{"id":"fa5b072.c38b3f8","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=\"`'Unable to find VNF ID ' + $vf-module-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'`\" />\n","comments":"","x":828.3332939147949,"y":714.0242828130722,"z":"c281e2a0.b9793","wires":[]},{"id":"7bd98255.dbf20c","type":"switchNode","name":"switch vf-module_length","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n","comments":"","outputs":1,"x":506.66672134399414,"y":1345.3577998876572,"z":"c281e2a0.b9793","wires":[["d1063b3e.8399a8","51fbb1de.23513"]]},{"id":"d1063b3e.8399a8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":764.0476760864258,"y":1312.500573515892,"z":"c281e2a0.b9793","wires":[["3a248c3c.12aaa4"]]},{"id":"3a248c3c.12aaa4","type":"set","name":"set vf-module-index=0","xml":"<set>\n<parameter name='vf-module-index' value='0' />\n","comments":"","x":951.6667137145996,"y":1313.167348265648,"z":"c281e2a0.b9793","wires":[]},{"id":"51fbb1de.23513","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":764.4762191772461,"y":1376.786431670189,"z":"c281e2a0.b9793","wires":[["8ee77525.004438"]]},{"id":"a28b9cf0.20c42","type":"set","name":"set vf-module-index = vf-module_length","xml":"<set>\n<parameter name='vf-module-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n","comments":"","x":1149.6667594909668,"y":1356.9768270254135,"z":"c281e2a0.b9793","wires":[]},{"id":"ce1be7a8.7c3d08","type":"for","name":"for each existing VF module","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n","comments":"","outputs":1,"x":1108.7618522644043,"y":1401.0720571279526,"z":"c281e2a0.b9793","wires":[["d81c79b.6803388"]]},{"id":"8ee77525.004438","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":901.1904983520508,"y":1376.7863572835922,"z":"c281e2a0.b9793","wires":[["a28b9cf0.20c42","ce1be7a8.7c3d08"]]},{"id":"d81c79b.6803388","type":"switchNode","name":"switch vf-module-information.vf-module-id == service-data.vnfs.vnf[].vf-modules.vf-module[].vf-module-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id`'>\n","comments":"","outputs":1,"x":1612.3809547424316,"y":1400.643468260765,"z":"c281e2a0.b9793","wires":[["3b48a680.2d71fa"]]},{"id":"3b48a680.2d71fa","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2055.0000038146973,"y":1400.2149194478989,"z":"c281e2a0.b9793","wires":[["e53e4394.1dd14"]]},{"id":"e53e4394.1dd14","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=\"`'VF module id ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id\n + ' already exists, and status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.vf-module-level-oper-status.order-status`\" />\n","comments":"","x":2206.904884338379,"y":1400.2149060964584,"z":"c281e2a0.b9793","wires":[]},{"id":"1db69374.c3c77d","type":"comment","name":"make sure this VF module doesn't exist already","info":"","comments":"","x":1638.8333015441895,"y":1355.2709602117538,"z":"c281e2a0.b9793","wires":[]},{"id":"73e41686.118588","type":"set","name":"set new vf-module_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-module-index + 1`' />\n","comments":"","x":517.3333015441895,"y":1456.357654929161,"z":"c281e2a0.b9793","wires":[]},{"id":"c4bc8ce5.99831","type":"set","name":"set vf-module-topology data","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-type' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-type`' />\n<parameter name='tmp.vf-module-topology.tenant' value='`$vf-module-topology-operation-input.vf-module-request-input.tenant`' />\n<parameter name='tmp.vf-module-topology.aic-cloud-region' value='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`' />\n","comments":"","x":523.8333206176758,"y":1568.8577617406845,"z":"c281e2a0.b9793","wires":[]},{"id":"f00c79c8.4ea308","type":"set","name":"set aic-clli","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli'\n value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n","comments":"","x":1284.7855796813965,"y":1728.0956882238388,"z":"c281e2a0.b9793","wires":[]},{"id":"75bfb79b.e8b428","type":"switchNode","name":"switch aic-clli","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli`'>\n","comments":"","outputs":1,"x":483.8332405090332,"y":1842.0480283498764,"z":"c281e2a0.b9793","wires":[["8457e1fa.daa57"]]},{"id":"8457e1fa.daa57","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":629.1189308166504,"y":1842.0480970144272,"z":"c281e2a0.b9793","wires":[["c0499e5e.91fa6"]]},{"id":"c0499e5e.91fa6","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=\"`'Unable to find aic-clli in AAI for aic-cloud-region ' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`\" />\n","comments":"","x":776.261791229248,"y":1841.6195310354233,"z":"c281e2a0.b9793","wires":[]},{"id":"e56ad2ae.3e458","type":"get-resource","name":"get-resource cloud region","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"cloud-region\" \n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND \n\t\t cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\"\n pfx='aai.cloud-region' local-only='false' >\n\n","comments":"","outputs":1,"x":522.6904563903809,"y":1642.1912997961044,"z":"c281e2a0.b9793","wires":[["6aa34830.c974d8","f9b5d3c8.7fc75"]]},{"id":"f9b5d3c8.7fc75","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":736.9366493225098,"y":1660.3421558141708,"z":"c281e2a0.b9793","wires":[["7aace544.2dd74c"]]},{"id":"7aace544.2dd74c","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=\"Error retrieving cloud region from AAI\" />\n","comments":"","x":911.9366226196289,"y":1660.3421920537949,"z":"c281e2a0.b9793","wires":[]},{"id":"6aa34830.c974d8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":745.8652458190918,"y":1618.6278890371323,"z":"c281e2a0.b9793","wires":[["29f3627f.244d6e"]]},{"id":"29f3627f.244d6e","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=\"Cloud region not found in AAI\" />\n","comments":"","x":912.2145233154297,"y":1617.9334663152695,"z":"c281e2a0.b9793","wires":[]},{"id":"163851b5.a752ee","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1583.333396911621,"y":662.9440244436264,"z":"c281e2a0.b9793","wires":[["f86c2fde.aa2bd","1b1f1fcd.8c776"]]},{"id":"1b1f1fcd.8c776","type":"break","name":"break","xml":"<break>\n","comments":"","x":1718.3333625793457,"y":684.6106103658676,"z":"c281e2a0.b9793","wires":[]},{"id":"bca2dc7a.e59f4","type":"set","name":"set from DB","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n value='`$db.vf-module-model.invariant-uuid`' />\n","comments":"","x":898.1665802001953,"y":1883.4440215826035,"z":"c281e2a0.b9793","wires":[]},{"id":"9f83de03.191b2","type":"switchNode","name":"switch input model-invariant-uuid","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`'>\n","comments":"","outputs":1,"x":542.0236549377441,"y":1906.2684653997421,"z":"c281e2a0.b9793","wires":[["a9f807e7.281c98","4904267b.8c3e08"]]},{"id":"a9f807e7.281c98","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":747.6903266906738,"y":1883.411428809166,"z":"c281e2a0.b9793","wires":[["bca2dc7a.e59f4"]]},{"id":"4904267b.8c3e08","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":749.1189231872559,"y":1927.6970199346542,"z":"c281e2a0.b9793","wires":[["6a656ab.7320b94"]]},{"id":"6a656ab.7320b94","type":"set","name":"set from input","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n","comments":"","x":903.4046592712402,"y":1927.1255921125412,"z":"c281e2a0.b9793","wires":[]},{"id":"123b74d.a39558b","type":"set","name":"set from DB","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n value='`$db.vf-module-model.uuid`' />\n","comments":"","x":899.1188507080078,"y":1971.9826978445053,"z":"c281e2a0.b9793","wires":[]},{"id":"a2b2f4bb.0b2c18","type":"switchNode","name":"switch input model-uuid","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`'>\n","comments":"","outputs":1,"x":514.6426734924316,"y":1994.8072026968002,"z":"c281e2a0.b9793","wires":[["8e4c5daf.c12c","e8f34bfe.84a098"]]},{"id":"8e4c5daf.c12c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":748.6426467895508,"y":1971.9501346349716,"z":"c281e2a0.b9793","wires":[["123b74d.a39558b"]]},{"id":"e8f34bfe.84a098","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":750.0712432861328,"y":2016.23572576046,"z":"c281e2a0.b9793","wires":[["7a562a3f.415454"]]},{"id":"7a562a3f.415454","type":"set","name":"set from input","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n","comments":"","x":904.3569793701172,"y":2015.6642979383469,"z":"c281e2a0.b9793","wires":[]},{"id":"f1667332.fb679","type":"set","name":"set from DB","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n value='`$db.vf-module-model.version`' />\n","comments":"","x":896.2617835998535,"y":2060.839905142784,"z":"c281e2a0.b9793","wires":[]},{"id":"3c2d8086.e91e4","type":"switchNode","name":"switch input model-version","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`'>\n","comments":"","outputs":1,"x":522.7855453491211,"y":2083.664349913597,"z":"c281e2a0.b9793","wires":[["2ecf8a2b.56e5b6","e5197406.efcf08"]]},{"id":"2ecf8a2b.56e5b6","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":745.785530090332,"y":2060.8073123693466,"z":"c281e2a0.b9793","wires":[["f1667332.fb679"]]},{"id":"e5197406.efcf08","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":747.2141265869141,"y":2105.092903494835,"z":"c281e2a0.b9793","wires":[["1f679951.806f17"]]},{"id":"1f679951.806f17","type":"set","name":"set from input","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\n","comments":"","x":901.4998626708984,"y":2104.521475672722,"z":"c281e2a0.b9793","wires":[]},{"id":"7576e19b.26deb","type":"set","name":"set from DB","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n value='`$db.vf-module-model.name`' />\n","comments":"","x":896.2617835998535,"y":2147.982727408409,"z":"c281e2a0.b9793","wires":[]},{"id":"904ff883.8a93b8","type":"switchNode","name":"switch input model-name","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`'>\n","comments":"","outputs":1,"x":517.7855453491211,"y":2170.807172179222,"z":"c281e2a0.b9793","wires":[["b054211f.fbf68","2bfd5a29.d66f36"]]},{"id":"b054211f.fbf68","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":745.785530090332,"y":2147.9501346349716,"z":"c281e2a0.b9793","wires":[["7576e19b.26deb"]]},{"id":"2bfd5a29.d66f36","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":747.2141265869141,"y":2192.23572576046,"z":"c281e2a0.b9793","wires":[["7070c1ef.3f726"]]},{"id":"7070c1ef.3f726","type":"set","name":"set from input","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`' />\n","comments":"","x":901.4998626708984,"y":2191.664297938347,"z":"c281e2a0.b9793","wires":[]},{"id":"74fef761.5900c8","type":"set","name":"set model-customization-uuid","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-customization-uuid'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n","comments":"","x":532.2378807067871,"y":2243.3161615133286,"z":"c281e2a0.b9793","wires":[]},{"id":"8c426d11.4eff9","type":"set","name":"set vf-module-id","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id'\n value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n","comments":"","x":485.42852783203125,"y":1512.039337515831,"z":"c281e2a0.b9793","wires":[]},{"id":"248e182d.ced848","type":"for","name":"for each cloud-region relationship","xml":"<for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":544.9442710876465,"y":1730.6979831457138,"z":"c281e2a0.b9793","wires":[["9fc47219.0a2e6"]]},{"id":"9fc47219.0a2e6","type":"switchNode","name":"switch related-to","xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n","comments":"","outputs":1,"x":792.6228141784668,"y":1730.4479125738144,"z":"c281e2a0.b9793","wires":[["90f8324b.e01dd"]]},{"id":"90f8324b.e01dd","type":"outcome","name":"complex","xml":"<outcome value='complex'>\n","comments":"","outputs":1,"x":962.0871353149414,"y":1729.8407348394394,"z":"c281e2a0.b9793","wires":[["ca7ad58e.6dc9b8"]]},{"id":"151dbe70.34e1e2","type":"execute","name":"split related-link","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='aai-uid-split' />\n <parameter name='original_string' value='`$aai.cloud-region.relationship-list.relationship[$idx].related-link`' />\n <parameter name='regex' value='/' />\n","comments":"","outputs":1,"x":1302.1822929382324,"y":1684.2693103551865,"z":"c281e2a0.b9793","wires":[[]]},{"id":"ca7ad58e.6dc9b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1121.8489952087402,"y":1730.9360984563828,"z":"c281e2a0.b9793","wires":[["151dbe70.34e1e2","42f33e9a.52f34","f00c79c8.4ea308"]]},{"id":"42f33e9a.52f34","type":"break","name":"break","xml":"<break>\n","comments":"","x":1271.8489570617676,"y":1774.2693952322006,"z":"c281e2a0.b9793","wires":[]},{"id":"6b1873f2.63696c","type":"execute","name":"execute PropertiesNode","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":522.3809509277344,"y":201.54810750484467,"z":"c281e2a0.b9793","wires":[[]]},{"id":"d48930e4.19e86","type":"set","name":"set order-status to PendingCreate","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status'\n value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n","comments":"","x":442.59556579589844,"y":7243.904448330402,"z":"c281e2a0.b9793","wires":[]},{"id":"6782300a.2a6c","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":379.1668701171875,"y":7336.522778332233,"z":"c281e2a0.b9793","wires":[]},{"id":"874eaff1.71395","type":"set","name":"copy input data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.sdnc-request-header.'\n value='$vf-module-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.request-information.'\n value='$vf-module-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.'\n value='$vf-module-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.'\n value='$vf-module-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.'\n value='$vf-module-topology-operation-input.vf-module-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.'\n value='$vf-module-topology-operation-input.vf-module-request-input.' />\n\n","comments":"","x":383.45257568359375,"y":7196.2527530789375,"z":"c281e2a0.b9793","wires":[]},{"id":"4de8c9e1.b8f3c8","type":"set","name":"copy vf-module-topology data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.' value='tmp.vf-module-topology.' />\n","comments":"","x":428.33358001708984,"y":7148.038265049458,"z":"c281e2a0.b9793","wires":[]},{"id":"41677f15.139e7","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmodule.log' />\n","comments":"","outputs":1,"x":374.0478210449219,"y":7288.752594769001,"z":"c281e2a0.b9793","wires":[[]]},{"id":"3d7e906e.ebd9d","type":"save","name":"update vf-module","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vf-module\"\n key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"vf-module-name\" value=\"`$tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name`\" />\n<parameter name=\"model-invariant-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vf-module-object-path`\" />\n<parameter name=\"automated-assignment\" value=\"`$automated-assignment`\" />","comments":"","outputs":1,"x":447.4763069152832,"y":4350.039918899536,"z":"c281e2a0.b9793","wires":[["520e1afa.312c84","b2b6e56c.e7e828"]]},{"id":"d4511df.4c530e","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=\"`'No vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n","comments":"","x":952.523983001709,"y":4384.801349580288,"z":"c281e2a0.b9793","wires":[]},{"id":"520e1afa.312c84","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":622.5479469299316,"y":4318.420540809631,"z":"c281e2a0.b9793","wires":[["db8855fa.f2df38"]]},{"id":"b2b6e56c.e7e828","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":631.1193199157715,"y":4387.039630830288,"z":"c281e2a0.b9793","wires":[["e8612d8a.dedd3"]]},{"id":"48a0d3ef.d7a9fc","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=\"Error updating vf-module in AAI\" />\n","comments":"","x":957.5479011535645,"y":4336.56409740448,"z":"c281e2a0.b9793","wires":[]},{"id":"29643f29.61c8b","type":"set","name":"set vf-module-object-path","xml":"<set>\n<parameter name='vf-module-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n","comments":"","x":471.14311599731445,"y":4225.564147949219,"z":"c281e2a0.b9793","wires":[]},{"id":"b325649c.60f8f8","type":"save","name":"save vf-module relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vf-module:relationship-list\"\n key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id`\" />\n","comments":"","outputs":1,"x":1241.166862487793,"y":5908.192313313484,"z":"c281e2a0.b9793","wires":[["94416827.3ed0a8","1ab568ac.3f88e7"]]},{"id":"94416827.3ed0a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1461.0002059936523,"y":5879.064057469368,"z":"c281e2a0.b9793","wires":[["556deb90.1cc9d4"]]},{"id":"1ab568ac.3f88e7","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1469.5717391967773,"y":5931.683201909065,"z":"c281e2a0.b9793","wires":[["2389206e.4826b"]]},{"id":"ce287a6f.f11468","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=\"Error updating vf-module relationships in AAI\" />\n","comments":"","x":1796.0003395080566,"y":5898.873953938484,"z":"c281e2a0.b9793","wires":[]},{"id":"9567a7bf.617988","type":"for","name":"for each vm-type","xml":"<for silentFailure='true' index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n","comments":"","outputs":1,"x":420.8335876464844,"y":5673.525866150856,"z":"c281e2a0.b9793","wires":[["4b2574f8.f62e7c"]]},{"id":"ded84e31.8d5cd","type":"for","name":"for each vm-network","xml":"<for silentFailure='true' index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n","comments":"","outputs":1,"x":817.8335990905762,"y":6092.192698359489,"z":"c281e2a0.b9793","wires":[["892dba1f.949248"]]},{"id":"5e0cc948.1a6558","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=\"`'No l3-network found in AAI for network ID '\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id`\" />\n","comments":"","x":1797.8337135314941,"y":5948.858494877815,"z":"c281e2a0.b9793","wires":[]},{"id":"7146fa07.61fea4","type":"for","name":"for each vm-type","xml":"<for silentFailure='true' index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n","comments":"","outputs":1,"x":395.26212310791016,"y":7040.571921646595,"z":"c281e2a0.b9793","wires":[["7ae71150.3fb55"]]},{"id":"7ae71150.3fb55","type":"for","name":"for each vm","xml":"<for index='vm-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count`' >\n","comments":"","outputs":1,"x":590.2621536254883,"y":7039.904929459095,"z":"c281e2a0.b9793","wires":[["c15a118a.bb8aa"]]},{"id":"c05ff08f.7a6c4","type":"save","name":"save VIPR_CONFIGURATION","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"INSERT INTO VIPR_CONFIGURATION (vnf_id, vnf_name, ecomp_service_instance_id, vm_name, cloud_region_id, cloud_owner) VALUES ( $service-data.vnfs.vnf[$vnf-index].vnf-id , $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name , $service-data.service-information.service-instance-id , $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index] , $tmp.vf-module-topology.aic-cloud-region , $prop.cloud-region.cloud-owner )\" >","comments":"","outputs":1,"x":981.9288558959961,"y":7062.572579681873,"z":"c281e2a0.b9793","wires":[["1d5a7adc.472855"]]},{"id":"b1fd5f15.884cb","type":"comment","name":"Not a failure","info":"","comments":"","x":1501.9287567138672,"y":7062.572584450245,"z":"c281e2a0.b9793","wires":[]},{"id":"1d5a7adc.472855","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1191.928840637207,"y":7062.572729408741,"z":"c281e2a0.b9793","wires":[["adb4b884.833d98"]]},{"id":"adb4b884.833d98","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n","comments":"","outputs":1,"x":1335.2622833251953,"y":7062.572567284107,"z":"c281e2a0.b9793","wires":[[]]},{"id":"8e82ea05.d1d908","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1365.2624053955078,"y":7013.90428096056,"z":"c281e2a0.b9793","wires":[["a469752e.e63838"]]},{"id":"d971c450.d3f188","type":"comment","name":"Not a failure","info":"","comments":"","x":1688.595458984375,"y":7012.238103210926,"z":"c281e2a0.b9793","wires":[]},{"id":"a469752e.e63838","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n","comments":"","outputs":1,"x":1511.2623405456543,"y":7013.904914200306,"z":"c281e2a0.b9793","wires":[[]]},{"id":"c15a118a.bb8aa","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":758.5955467224121,"y":7038.904774010181,"z":"c281e2a0.b9793","wires":[["b3791ee0.eee6b","c05ff08f.7a6c4"]]},{"id":"b3791ee0.eee6b","type":"delete","name":"delete any pre-existing records in VIPR_CONFIGURATION","xml":"<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='DELETE from VIPR_CONFIGURATION WHERE vnf_id = $service-data.vnfs.vnf[$vnf-index].vnf-id\n AND ecomp_service_instance_id = $service-data.service-information.service-instance-id\n AND vm_name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' >","comments":"","outputs":1,"x":1071.9288711547852,"y":7014.238913834095,"z":"c281e2a0.b9793","wires":[["8e82ea05.d1d908"]]},{"id":"db8855fa.f2df38","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":780.8335151672363,"y":4318.191211700439,"z":"c281e2a0.b9793","wires":[["48a0d3ef.d7a9fc","a08e7f46.755f3"]]},{"id":"e8612d8a.dedd3","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":781.8334312438965,"y":4384.857501924038,"z":"c281e2a0.b9793","wires":[["d4511df.4c530e","a08e7f46.755f3"]]},{"id":"556deb90.1cc9d4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1629.5002098083496,"y":5878.858327031136,"z":"c281e2a0.b9793","wires":[["ce287a6f.f11468","f09ff6b.4f3f408"]]},{"id":"2389206e.4826b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1624.5002098083496,"y":5931.858169674873,"z":"c281e2a0.b9793","wires":[["5e0cc948.1a6558","f09ff6b.4f3f408"]]},{"id":"16645c8e.451fe3","type":"execute","name":"execute RestApiCallNode - get preload-list","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value=\"`$prop.controller.url + $prop.restapi.preloadinformation + $vf-module-topology-operation-input.vf-module-request-input.vf-module-name + '/vf-module'`\" />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-preload\" />\n\n","comments":"","outputs":1,"x":966.6667060852051,"y":2388.1915343999863,"z":"c281e2a0.b9793","wires":[["92438f35.2e311","a51b6262.197c9"]]},{"id":"92438f35.2e311","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1230.0000216166177,"y":2351.5247507492695,"z":"c281e2a0.b9793","wires":[["662806dc.522f58"]]},{"id":"a51b6262.197c9","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1233.333309173584,"y":2426.52474629879,"z":"c281e2a0.b9793","wires":[["ee759f3a.85ba2"]]},{"id":"662806dc.522f58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1391.6667098999023,"y":2349.8580354452133,"z":"c281e2a0.b9793","wires":[["1ef4ca32.6d3916"]]},{"id":"ee759f3a.85ba2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1388.3333168029785,"y":2426.5245879888535,"z":"c281e2a0.b9793","wires":[["c3e31139.9c682"]]},{"id":"1ef4ca32.6d3916","type":"switchNode","name":"switch mdsal-preload.response-code","xml":"<switch test='`$mdsal-preload.response-code`'>\n","comments":"","outputs":1,"x":1620.0000114440918,"y":2349.858076453209,"z":"c281e2a0.b9793","wires":[["28b0c60b.c37f4a","35732eb1.234eb2"]]},{"id":"28b0c60b.c37f4a","type":"outcome","name":"404 (not found)","xml":"<outcome value='404'>\n","comments":"","outputs":1,"x":1871.666748046875,"y":2313.1914504766464,"z":"c281e2a0.b9793","wires":[["e5249593.3b52e8"]]},{"id":"e5249593.3b52e8","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-operation-assign-no-preload","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-assign-no-preload' mode='sync' >\n","comments":"","outputs":1,"x":2268.3332176208496,"y":2311.5245784521103,"z":"c281e2a0.b9793","wires":[["838605d7.09b008"]]},{"id":"838605d7.09b008","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2638.333366394043,"y":2309.8581146001816,"z":"c281e2a0.b9793","wires":[["5b13f1bd.9caa2"]]},{"id":"d1ff1b92.db4a78","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2946.6667442321777,"y":2341.524851202965,"z":"c281e2a0.b9793","wires":[]},{"id":"35732eb1.234eb2","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1846.6668281555176,"y":2369.857941031456,"z":"c281e2a0.b9793","wires":[["9d4e3c9a.59748"]]},{"id":"587561df.2ca4a","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=\"Error retrieving preload-information\" />\n","comments":"","x":2159.9997329711914,"y":2386.5243648290634,"z":"c281e2a0.b9793","wires":[]},{"id":"c3e31139.9c682","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-operation-assign-preload","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-assign-preload' mode='sync' >\n","comments":"","outputs":1,"x":1751.6666069030762,"y":2428.1913360357285,"z":"c281e2a0.b9793","wires":[["32d49f72.4cd54"]]},{"id":"32d49f72.4cd54","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2107.333469390869,"y":2426.524954199791,"z":"c281e2a0.b9793","wires":[["893d3e7a.e5b1f"]]},{"id":"f8e976f1.7db4f8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":2415.666721343994,"y":2448.1918491125107,"z":"c281e2a0.b9793","wires":[]},{"id":"4b2574f8.f62e7c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":611.3336563110352,"y":5674.359100937843,"z":"c281e2a0.b9793","wires":[["ded84e31.8d5cd","aca03865.b65bb8"]]},{"id":"aca03865.b65bb8","type":"for","name":"for each vnfc","xml":"<for silentFailure='true' index='vnfc-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n","comments":"","outputs":1,"x":862.3337059020996,"y":4879.025192141533,"z":"c281e2a0.b9793","wires":[["10f304f5.ad9eeb"]]},{"id":"3c22f266.7fa8ae","type":"save","name":"save vnfc to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vnfc\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\" >\n<parameter name=\"vnfc-name\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name`\" />\n<parameter name=\"nfc-naming-code\" value=\"`$tmp.nfc-naming-code`\" />\n<parameter name=\"nfc-function\" value=\"`$tmp.nfc-function`\" />\n<parameter name=\"model-invariant-id\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].model-customization-uuid`\" />\n<parameter name=\"orchestration-status\" value=\"`PendingCreate`\" />\n<parameter name=\"in-maint\" value=\"true\" />\n<parameter name=\"prov-status\" value=\"`PREPROV`\" />\n","comments":"","outputs":1,"x":1588.3337745666504,"y":4687.359122633934,"z":"c281e2a0.b9793","wires":[["79f212bd.d038bc","c592d914.589c38"]]},{"id":"10f304f5.ad9eeb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1030.667007446289,"y":4879.692019343376,"z":"c281e2a0.b9793","wires":[["f18c3c9d.cd99d","91efb93f.b0b208","f8377f02.519e8","8511c134.e2a8c","502f3bfc.44fe14","3895a80b.eba038"]]},{"id":"79f212bd.d038bc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1779.333812713623,"y":4639.69245660305,"z":"c281e2a0.b9793","wires":[["4e0f33a2.b03bdc"]]},{"id":"dd909f2a.31b4d","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=\"Error saving vnfc to AAI\" />\n","comments":"","x":2118.3339653015137,"y":4673.835712194443,"z":"c281e2a0.b9793","wires":[]},{"id":"4e0f33a2.b03bdc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1944.5004997253418,"y":4653.82028990984,"z":"c281e2a0.b9793","wires":[["dd909f2a.31b4d","78584413.02195c"]]},{"id":"f8377f02.519e8","type":"save","name":"save vnfc relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vnfc:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/generic-vnfs/generic-vnf/' +\n $vf-module-topology-operation-input.vnf-information.vnf-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"vf-module\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/generic-vnfs/generic-vnf/' +\n $vf-module-topology-operation-input.vnf-information.vnf-id +\n '/vf-modules/vf-module/' +\n $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n","comments":"","outputs":1,"x":1255.2382926940918,"y":4787.978354334831,"z":"c281e2a0.b9793","wires":[["c02a3486.e78ab8","34b8b94.60c9146"]]},{"id":"1be9a1e8.7e4a3e","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=\"Error updating vnfc relationships in AAI\" />\n","comments":"","x":1765.2382278442383,"y":4779.645190119743,"z":"c281e2a0.b9793","wires":[]},{"id":"c0926ac4.cdff28","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=\"Not-found error updating vnfc relationships\" />\n","comments":"","x":1760.4051361083984,"y":4831.296397089958,"z":"c281e2a0.b9793","wires":[]},{"id":"706aad6f.b2a7c4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1587.0714836120605,"y":4761.295978426933,"z":"c281e2a0.b9793","wires":[["1be9a1e8.7e4a3e","78584413.02195c"]]},{"id":"719cde80.fcedc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1587.0715599060059,"y":4814.295737147331,"z":"c281e2a0.b9793","wires":[["c0926ac4.cdff28","78584413.02195c"]]},{"id":"c02a3486.e78ab8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1430.238368988037,"y":4761.311648249626,"z":"c281e2a0.b9793","wires":[["706aad6f.b2a7c4"]]},{"id":"34b8b94.60c9146","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1438.809902191162,"y":4813.930792689323,"z":"c281e2a0.b9793","wires":[["719cde80.fcedc"]]},{"id":"f18c3c9d.cd99d","type":"for","name":"for each vnfc-network-role","xml":"<for silentFailure='true' index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data_length`' >\n","comments":"","outputs":1,"x":1252.714412689209,"y":5204.834762454033,"z":"c281e2a0.b9793","wires":[["58d1d842.f73148"]]},{"id":"d2581847.10cc78","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmoduleb.log' />\n","comments":"","outputs":1,"x":473.3333168029785,"y":2512.7385843992233,"z":"c281e2a0.b9793","wires":[[]]},{"id":"cda369d7.15b748","type":"for","name":"for each vnfc-subnetwork-role","xml":"<for silentFailure='true' index='subnet-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet_length`' >\n","comments":"","outputs":1,"x":1708.66695022583,"y":5168.02519595623,"z":"c281e2a0.b9793","wires":[["32bc244c.7220fc"]]},{"id":"32bc244c.7220fc","type":"for","name":"for each vnfc-address-family","xml":"<for silentFailure='true' index='address-family-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments_length`' >\n","comments":"","outputs":1,"x":1976.0002937316895,"y":5167.02568423748,"z":"c281e2a0.b9793","wires":[["db76e4e5.4cf428"]]},{"id":"9ab4c052.39968","type":"for","name":"for each vnfc-ip-address","xml":"<for silentFailure='true' index='address-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip_length`' >\n","comments":"","outputs":1,"x":2407.9999046325684,"y":5233.691383719444,"z":"c281e2a0.b9793","wires":[["2cac435d.a1268c"]]},{"id":"db76e4e5.4cf428","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2187.0000648498535,"y":5167.02514064312,"z":"c281e2a0.b9793","wires":[["d3b99c28.7e5cf","9ab4c052.39968"]]},{"id":"d3b99c28.7e5cf","type":"set","name":"set tmp.address-family","xml":"<set>\n<parameter name='tmp.address-family'\n value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-address-family`' />\n","comments":"","x":2407.0003929138184,"y":5087.025038123131,"z":"c281e2a0.b9793","wires":[]},{"id":"2cac435d.a1268c","type":"switchNode","name":"switch address family","xml":"<switch test='`$tmp.address-family`'>\n","comments":"","outputs":1,"x":2646.9999961853027,"y":5232.0252059698105,"z":"c281e2a0.b9793","wires":[["422dc838.bc08d8","12f35a08.f97c36"]]},{"id":"422dc838.bc08d8","type":"outcome","name":"ipv4","xml":"<outcome value='ipv4'>\n","comments":"","outputs":1,"x":2844.1430015563965,"y":5135.596466422081,"z":"c281e2a0.b9793","wires":[["ced8df69.6e36b"]]},{"id":"12f35a08.f97c36","type":"outcome","name":"ipv6","xml":"<outcome value='ipv6'>\n","comments":"","outputs":1,"x":2841.7620735168457,"y":5315.358497977257,"z":"c281e2a0.b9793","wires":[["970f00c2.cf0fb"]]},{"id":"eff5f3c5.e7a55","type":"comment","name":"Fixed IPs","info":"","comments":"","x":1725.6669654846191,"y":5129.692572951317,"z":"c281e2a0.b9793","wires":[]},{"id":"d1970dd3.007dd","type":"save","name":"save l3-interface-ipv4-address-list object to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-interface-ipv4-address-list\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\n\t AND l3-interface-ipv4-address-list.l3-interface-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address\" >\n<parameter name=\"l3-interface-ipv4-address\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address`\" />\n<parameter name=\"l3-interface-ipv4-prefix-length\" value=\"32\" />\n<parameter name=\"is-floating\" value=\"false\" />\n","comments":"","outputs":1,"x":3287.476131439209,"y":5083.929546395939,"z":"c281e2a0.b9793","wires":[["fab7bb46.1f5f38"]]},{"id":"ced8df69.6e36b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2994.1430015563965,"y":5135.596385041874,"z":"c281e2a0.b9793","wires":[["d1970dd3.007dd","ddc33e2f.3f85c"]]},{"id":"6da202c1.e82a0c","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=\"Error creating l3-interface-ipv4-address-list object in AAI\" />\n","comments":"","x":3870.8096504211426,"y":5102.263205567997,"z":"c281e2a0.b9793","wires":[]},{"id":"12110c13.457344","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3700.976005554199,"y":5083.91403869788,"z":"c281e2a0.b9793","wires":[["6da202c1.e82a0c","dcf2f8a.b203608"]]},{"id":"fab7bb46.1f5f38","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3544.142890930176,"y":5083.929708520573,"z":"c281e2a0.b9793","wires":[["12110c13.457344"]]},{"id":"ddc33e2f.3f85c","type":"save","name":"save l3-interface-ipv4-address-list relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"l3-interface-ipv4-address-list:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\n\t AND l3-interface-ipv4-address-list.l3-interface-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].network-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"subnet\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].network-id +\n '/subnets/subnet/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].subnet-id`\" />\n","comments":"","outputs":1,"x":3282.476375579834,"y":5182.262965242069,"z":"c281e2a0.b9793","wires":[["f484ec25.b268d","88d1087b.6d8d38"]]},{"id":"7e0fd55c.99db0c","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=\"Error updating l3-interface-ipv4-address-list relationships in AAI\" />\n","comments":"","x":3869.1427574157715,"y":5173.929636994999,"z":"c281e2a0.b9793","wires":[]},{"id":"24562eff.689f42","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=\"Not-found error updating l3-interface-ipv4-address-list relationships\" />\n","comments":"","x":3869.3096199035645,"y":5223.914094964664,"z":"c281e2a0.b9793","wires":[]},{"id":"a40cd1fe.30b81","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3702.6426277160645,"y":5153.91401008765,"z":"c281e2a0.b9793","wires":[["7e0fd55c.99db0c","dcf2f8a.b203608"]]},{"id":"30626ca1.4d2404","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3702.6427040100098,"y":5206.913768808048,"z":"c281e2a0.b9793","wires":[["24562eff.689f42","dcf2f8a.b203608"]]},{"id":"f484ec25.b268d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3545.809513092041,"y":5153.929679910343,"z":"c281e2a0.b9793","wires":[["a40cd1fe.30b81"]]},{"id":"88d1087b.6d8d38","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3554.381046295166,"y":5206.54882435004,"z":"c281e2a0.b9793","wires":[["30626ca1.4d2404"]]},{"id":"86bb4824.2800f8","type":"save","name":"save l3-interface-ipv6-address-list object to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-interface-ipv6-address-list\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\n\t AND l3-interface-ipv6-address-list.l3-interface-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address\" >\n<parameter name=\"l3-interface-ipv6-address\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address`\" />\n<parameter name=\"l3-interface-ipv6-prefix-length\" value=\"128\" />\n<parameter name=\"is-floating\" value=\"false\" />\n","comments":"","outputs":1,"x":3286.2858695983887,"y":5262.977602362633,"z":"c281e2a0.b9793","wires":[["b2f0c007.7919b"]]},{"id":"970f00c2.cf0fb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2992.952739715576,"y":5314.644441008568,"z":"c281e2a0.b9793","wires":[["86bb4824.2800f8","e4ea4722.56f548"]]},{"id":"af01a2f2.69bae","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=\"Error creating l3-interface-ipv6-address-list object in AAI\" />\n","comments":"","x":3869.6193885803223,"y":5281.311261534691,"z":"c281e2a0.b9793","wires":[]},{"id":"5e6beb7d.1b5734","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3699.785743713379,"y":5262.962094664574,"z":"c281e2a0.b9793","wires":[["af01a2f2.69bae","dcf2f8a.b203608"]]},{"id":"b2f0c007.7919b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3542.9526290893555,"y":5262.9777644872665,"z":"c281e2a0.b9793","wires":[["5e6beb7d.1b5734"]]},{"id":"e4ea4722.56f548","type":"save","name":"save l3-interface-ipv6-address-list relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"l3-interface-ipv6-address-list:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\n\t AND l3-interface-ipv6-address-list.l3-interface-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].network-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"subnet\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].network-id +\n '/subnets/subnet/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].subnet-id`\" />\n","comments":"","outputs":1,"x":3281.2861137390137,"y":5361.311021208763,"z":"c281e2a0.b9793","wires":[["e4eb0c62.35753","84641592.59c4b8"]]},{"id":"bd5c910f.6a2c2","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=\"Error updating l3-interface-ipv6-address-list relationships in AAI\" />\n","comments":"","x":3867.952495574951,"y":5352.977692961693,"z":"c281e2a0.b9793","wires":[]},{"id":"bf7ea22c.dc7e9","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=\"Not-found error updating l3-interface-ipv6-address-list relationships\" />\n","comments":"","x":3871.4527168273926,"y":5399.628709435463,"z":"c281e2a0.b9793","wires":[]},{"id":"db0a0453.a9c1d8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3701.452365875244,"y":5332.962066054344,"z":"c281e2a0.b9793","wires":[["bd5c910f.6a2c2","dcf2f8a.b203608"]]},{"id":"8fbdb335.3145a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3701.4524421691895,"y":5385.961824774742,"z":"c281e2a0.b9793","wires":[["bf7ea22c.dc7e9","dcf2f8a.b203608"]]},{"id":"e4eb0c62.35753","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3544.6192512512207,"y":5332.977735877037,"z":"c281e2a0.b9793","wires":[["db0a0453.a9c1d8"]]},{"id":"84641592.59c4b8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3553.1907844543457,"y":5385.596880316734,"z":"c281e2a0.b9793","wires":[["8fbdb335.3145a"]]},{"id":"892dba1f.949248","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1007.666919708252,"y":6091.692137598991,"z":"c281e2a0.b9793","wires":[["b521a46c.b159e8","b325649c.60f8f8","77af5ead.1750b","230ad0d3.dcd8f"]]},{"id":"422aad74.8213a4","type":"for","name":"for each vnfc","xml":"<for silentFailure='true' index='vnfc-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n","comments":"","outputs":1,"x":1655.6670951843262,"y":6214.025885462761,"z":"c281e2a0.b9793","wires":[["d11c836e.c57ae"]]},{"id":"273ee6c6.cc222a","type":"save","name":"save vip-ipv4-address-list object to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vip-ipv4-address-list\" \n\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv4-address-list.vip-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4[$ipv4-index]\" >\n<parameter name=\"vip-ipv4-address\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4[$ipv4-index]`\" />\n<parameter name=\"vip-ipv4-prefix-length\" value=\"32\" />\n<parameter name=\"is-floating\" value=\"false\" />\n","comments":"","outputs":1,"x":1738.66695022583,"y":6045.358897089958,"z":"c281e2a0.b9793","wires":[["70cdaf6a.2be35","d9ff730a.67c18"]]},{"id":"77af5ead.1750b","type":"for","name":"for each floating ipv4 address","xml":"<for silentFailure='true' index='ipv4-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4_length`' >\n","comments":"","outputs":1,"x":1246.6669425964355,"y":6103.358969569206,"z":"c281e2a0.b9793","wires":[["f2ee7c90.8027d"]]},{"id":"f2ee7c90.8027d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1472.6669425964355,"y":6101.358969569206,"z":"c281e2a0.b9793","wires":[["273ee6c6.cc222a","6a394d7a.c76054","422aad74.8213a4"]]},{"id":"4696d84c.536f38","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=\"Error saving vip-ipv4-address-list in AAI\" />\n","comments":"","x":2300.66695022583,"y":6035.358897089958,"z":"c281e2a0.b9793","wires":[]},{"id":"d40560fc.5b0f1","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=\"Not-found error saving vip-ipv4-address-list\" />\n","comments":"","x":2300.833812713623,"y":6085.343355059624,"z":"c281e2a0.b9793","wires":[]},{"id":"57c17fa7.ab7ef","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2134.166820526123,"y":6015.34327018261,"z":"c281e2a0.b9793","wires":[["4696d84c.536f38","d97fd47e.81be38"]]},{"id":"14c28c2d.62e484","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2134.1668968200684,"y":6068.3430289030075,"z":"c281e2a0.b9793","wires":[["d40560fc.5b0f1","d97fd47e.81be38"]]},{"id":"70cdaf6a.2be35","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1977.3337059020996,"y":6015.358940005302,"z":"c281e2a0.b9793","wires":[["57c17fa7.ab7ef"]]},{"id":"d9ff730a.67c18","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1985.9052391052246,"y":6067.978084445,"z":"c281e2a0.b9793","wires":[["14c28c2d.62e484"]]},{"id":"16a29da1.16be62","type":"save","name":"save vip-ipv4-address-list relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vip-ipv4-address-list:relationship-list\"\n key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv4-address-list.vip-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4[$ipv4-index]\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"subnet\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].network-id\n + '/subnets/subnet/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.ipv4-subnet-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"vnfc\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/vnfcs/vnfc/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name`\" />\n","comments":"","outputs":1,"x":2074.3335456848145,"y":6158.025560259819,"z":"c281e2a0.b9793","wires":[["1b0899a1.fdf346","59a31fd3.2582c"]]},{"id":"3b3a05f8.37140a","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=\"Error updating vip-ipv4-address-list relationships in AAI\" />\n","comments":"","x":2643.999954223633,"y":6150.025529801846,"z":"c281e2a0.b9793","wires":[]},{"id":"8b4c122a.0d63f","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=\"Not-found error updating vip-ipv4-address-list relationships\" />\n","comments":"","x":2644.166923522949,"y":6200.00970351696,"z":"c281e2a0.b9793","wires":[]},{"id":"3b5e37dd.a56ed8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2477.499824523926,"y":6130.009902894497,"z":"c281e2a0.b9793","wires":[["3b3a05f8.37140a","d97fd47e.81be38"]]},{"id":"e969a096.0bfe5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2477.499900817871,"y":6183.009661614895,"z":"c281e2a0.b9793","wires":[["8b4c122a.0d63f","d97fd47e.81be38"]]},{"id":"1b0899a1.fdf346","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2320.6667098999023,"y":6130.02557271719,"z":"c281e2a0.b9793","wires":[["3b5e37dd.a56ed8"]]},{"id":"59a31fd3.2582c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2329.2382431030273,"y":6182.644717156887,"z":"c281e2a0.b9793","wires":[["e969a096.0bfe5"]]},{"id":"e1dbffc8.939b7","type":"save","name":"save vip-ipv6-address-list object to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vip-ipv6-address-list\" \n\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv6-address-list.vip-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6[$ipv6-index]\" >\n<parameter name=\"vip-ipv6-address\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6[$ipv6-index]`\" />\n<parameter name=\"vip-ipv6-prefix-length\" value=\"128\" />\n<parameter name=\"is-floating\" value=\"false\" />\n","comments":"","outputs":1,"x":1742.0002784729004,"y":6368.691580653191,"z":"c281e2a0.b9793","wires":[["394b95f8.29020a","f814aa1.108ef58"]]},{"id":"230ad0d3.dcd8f","type":"for","name":"for each floating ipv6 address","xml":"<for silentFailure='true' index='ipv6-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6_length`' >\n","comments":"","outputs":1,"x":1250.0002708435059,"y":6425.691653132439,"z":"c281e2a0.b9793","wires":[["ef367330.94bfc"]]},{"id":"ef367330.94bfc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1476.0002708435059,"y":6424.691653132439,"z":"c281e2a0.b9793","wires":[["e1dbffc8.939b7","a49c461f.aacc58","c3c14d8c.8aef6"]]},{"id":"3487d10b.c1e98e","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=\"Error saving vip-ipv6-address-list in AAI\" />\n","comments":"","x":2304.0002784729004,"y":6358.691580653191,"z":"c281e2a0.b9793","wires":[]},{"id":"e8e52dbc.e99d5","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=\"Not-found error saving vip-ipv6-address-list\" />\n","comments":"","x":2304.1671409606934,"y":6408.676038622856,"z":"c281e2a0.b9793","wires":[]},{"id":"c1739210.853b1","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2137.5001487731934,"y":6338.675953745842,"z":"c281e2a0.b9793","wires":[["3487d10b.c1e98e","d97fd47e.81be38"]]},{"id":"fcd501b8.c93af","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2137.5002250671387,"y":6391.67571246624,"z":"c281e2a0.b9793","wires":[["e8e52dbc.e99d5","d97fd47e.81be38"]]},{"id":"394b95f8.29020a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1980.66703414917,"y":6338.691623568535,"z":"c281e2a0.b9793","wires":[["c1739210.853b1"]]},{"id":"f814aa1.108ef58","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1989.238567352295,"y":6391.310768008232,"z":"c281e2a0.b9793","wires":[["fcd501b8.c93af"]]},{"id":"36065f46.a3418","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=\"Error updating vip-ipv6-address-list relationships in AAI\" />\n","comments":"","x":2637.3335342407227,"y":6471.691631257534,"z":"c281e2a0.b9793","wires":[]},{"id":"b524f4da.06da78","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=\"Not-found error updating vip-ipv6-address-list relationships\" />\n","comments":"","x":2637.5003967285156,"y":6521.6760892272,"z":"c281e2a0.b9793","wires":[]},{"id":"7071c414.bf0c6c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2470.8334045410156,"y":6451.676004350185,"z":"c281e2a0.b9793","wires":[["36065f46.a3418","d97fd47e.81be38"]]},{"id":"6ea4248b.87e4ec","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2470.833480834961,"y":6504.675763070583,"z":"c281e2a0.b9793","wires":[["b524f4da.06da78","d97fd47e.81be38"]]},{"id":"8c9b6322.65d4c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2314.000289916992,"y":6451.691674172878,"z":"c281e2a0.b9793","wires":[["7071c414.bf0c6c"]]},{"id":"19e68fff.7e74f","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2322.571823120117,"y":6504.3108186125755,"z":"c281e2a0.b9793","wires":[["6ea4248b.87e4ec"]]},{"id":"130606e9.a6f699","type":"save","name":"save vip-ipv6-address-list relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vip-ipv6-address-list:relationship-list\"\n key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv6-address-list.vip-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6[$ipv6-index]\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"subnet\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].network-id\n + '/subnets/subnet/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.ipv6-subnet-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"vnfc\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/vnfcs/vnfc/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name`\" />\n","comments":"","outputs":1,"x":2069.667133331299,"y":6480.3580931425095,"z":"c281e2a0.b9793","wires":[["8c9b6322.65d4c","19e68fff.7e74f"]]},{"id":"a08e7f46.755f3","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":1125.666805267334,"y":4288.691486299038,"z":"c281e2a0.b9793","wires":[[]]},{"id":"78584413.02195c","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":2290.333751678467,"y":4626.692221403122,"z":"c281e2a0.b9793","wires":[[]]},{"id":"f09ff6b.4f3f408","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":1999.000331878662,"y":5843.692058622837,"z":"c281e2a0.b9793","wires":[[]]},{"id":"d97fd47e.81be38","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":2948.000461578369,"y":5962.691904902458,"z":"c281e2a0.b9793","wires":[[]]},{"id":"dcf2f8a.b203608","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":4267.333450317383,"y":5010.35798484087,"z":"c281e2a0.b9793","wires":[[]]},{"id":"91efb93f.b0b208","type":"set","name":"set created_flag","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].created_flag' value='true' />\n","comments":"","x":1232.3335762023926,"y":4727.691877186298,"z":"c281e2a0.b9793","wires":[]},{"id":"b521a46c.b159e8","type":"set","name":"set created-flag","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].created-flag' value='true' />\n","comments":"","x":1203.000331878662,"y":5975.692058622837,"z":"c281e2a0.b9793","wires":[]},{"id":"6a394d7a.c76054","type":"set","name":"set created-ipv4-flag","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.created-ipv4-flag' value='true' />\n","comments":"","x":1676.0002975463867,"y":6103.692138493061,"z":"c281e2a0.b9793","wires":[]},{"id":"a49c461f.aacc58","type":"set","name":"set created-ipv6-flag","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.created-ipv6-flag' value='true' />\n","comments":"","x":1681.3336334228516,"y":6429.691741764545,"z":"c281e2a0.b9793","wires":[]},{"id":"c592d914.589c38","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1782.3337516784668,"y":4687.692116081715,"z":"c281e2a0.b9793","wires":[["4e0f33a2.b03bdc"]]},{"id":"a5403308.f3a28","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-vlan-tagging-assign","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-vlan-tagging-assign' mode='sync' >\n","comments":"","outputs":1,"x":566.0001106262207,"y":6767.691919207573,"z":"c281e2a0.b9793","wires":[["216aef87.16a46"]]},{"id":"216aef87.16a46","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":910.3335266113281,"y":6767.025414347649,"z":"c281e2a0.b9793","wires":[["17123af4.50edd5"]]},{"id":"17123af4.50edd5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1065.3334007263184,"y":6767.025210261345,"z":"c281e2a0.b9793","wires":[["c6913bf.53eafc8","320d2d80.f0c0d2","9585c15b.4e796"]]},{"id":"c6913bf.53eafc8","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":1413.666690826416,"y":6712.025630116463,"z":"c281e2a0.b9793","wires":[[]]},{"id":"320d2d80.f0c0d2","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":1242.000129699707,"y":6810.3588581085205,"z":"c281e2a0.b9793","wires":[]},{"id":"9585c15b.4e796","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vlantaggingfailure.log' />\n","comments":"","outputs":1,"x":1237.0000267028809,"y":6763.691714167595,"z":"c281e2a0.b9793","wires":[[]]},{"id":"fcb16772.796c08","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":204.2261962890625,"y":523.5714410543442,"z":"c281e2a0.b9793","wires":[["6b1873f2.63696c","ded68ff0.3a928","93af21a0.ebb87","1c73f9f3.baee96","1fc7e563.9fd97b","f91c0c48.6c834","5da7dd5d.f1de64","e039d8f6.47eef8","bf338b07.458e28"]]},{"id":"e81704f9.71e908","type":"switchNode","name":"switch from-preload","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.from-preload`'>\n","comments":"","outputs":1,"x":495.23804092407227,"y":2579.167204260826,"z":"c281e2a0.b9793","wires":[["b351a148.2bfbf","57831923.8bf9f8"]]},{"id":"b351a148.2bfbf","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":667.1427726745605,"y":2556.5482248067856,"z":"c281e2a0.b9793","wires":[["b0569611.335668"]]},{"id":"57831923.8bf9f8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":668.8094253540039,"y":2601.548063635826,"z":"c281e2a0.b9793","wires":[["c0be6c68.19f8b"]]},{"id":"b0569611.335668","type":"set","name":"set automated-assignment to true","xml":"<set>\n<parameter name='automated-assignment' value='true' />\n","comments":"","x":882.1427574157715,"y":2554.8813956975937,"z":"c281e2a0.b9793","wires":[]},{"id":"c0be6c68.19f8b","type":"set","name":"set automated-assignment to false","xml":"<set>\n<parameter name='automated-assignment' value='false' />\n","comments":"","x":880.4760780334473,"y":2599.881315588951,"z":"c281e2a0.b9793","wires":[]},{"id":"c3c14d8c.8aef6","type":"for","name":"for each vnfc","xml":"<for silentFailure='true' index='vnfc-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n","comments":"","outputs":1,"x":1656.76216506958,"y":6528.5721653699875,"z":"c281e2a0.b9793","wires":[["2e71e36.46fa41c"]]},{"id":"98914ba2.b5d168","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=\"Test return\" />\n","comments":"","x":121.33347702026367,"y":7008.359683454037,"z":"c281e2a0.b9793","wires":[]},{"id":"e28c7bde.2c20f8","type":"for","name":"for each vm-type","xml":"<for silentFailure='true' index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n","comments":"","outputs":1,"x":474.00013732910156,"y":3939.3580869436264,"z":"c281e2a0.b9793","wires":[["ea402844.f404e8"]]},{"id":"ea402844.f404e8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":664.5002059936523,"y":3940.1913217306137,"z":"c281e2a0.b9793","wires":[["270f9549.267bca"]]},{"id":"270f9549.267bca","type":"for","name":"for each vm-network","xml":"<for silentFailure='true' index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n","comments":"","outputs":1,"x":866.0001373291016,"y":3939.3580869436264,"z":"c281e2a0.b9793","wires":[["9cc37ec0.b6b9b"]]},{"id":"9cc37ec0.b6b9b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1055.8334579467773,"y":3938.8575261831284,"z":"c281e2a0.b9793","wires":[["5873f3ba.4c9b5c"]]},{"id":"5873f3ba.4c9b5c","type":"get-resource","name":"get-resource VFC_RELATED_NETWORK_ROLE","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VFC_RELATED_NETWORK_ROLE where vfc_customization_uuid = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].model-customization-uuid\n and network_role = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role'\n pfx='db.vnf-related-network-role[]'>\n\n","comments":"","outputs":1,"x":1345.3334312438965,"y":3937.3581689596176,"z":"c281e2a0.b9793","wires":[["9c99a7b6.bb4868","8924a698.c39db8"]]},{"id":"9c99a7b6.bb4868","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1616.3333702087402,"y":3842.0248712301254,"z":"c281e2a0.b9793","wires":[["7dc29872.91a5b8"]]},{"id":"7dc29872.91a5b8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1763.5238876342773,"y":3840.5728858709335,"z":"c281e2a0.b9793","wires":[["8e11fe1e.0c602","b29ec429.4a9cd8"]]},{"id":"8924a698.c39db8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1604.6666221618652,"y":4061.6913427114487,"z":"c281e2a0.b9793","wires":[["97335d61.22ba5"]]},{"id":"e1abd020.26e2f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2022.9998741149902,"y":4063.6910985708237,"z":"c281e2a0.b9793","wires":[["d9c03e20.3fb9a","9450e20f.f2285","12eff2f5.e8988d","4e401ffc.c0185","35c23d78.e857f2","c3f481a4.4b488","482fcd9e.209524","d6877179.6bb64"]]},{"id":"8e11fe1e.0c602","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=\"Error reading VFC_RELATED_NETWORK_ROLE table\" />\n","comments":"","x":1915.6667442321777,"y":3837.3581231832504,"z":"c281e2a0.b9793","wires":[]},{"id":"9450e20f.f2285","type":"for","name":"for each vnf network","xml":"<for silentFailure='true' index='vnf-network-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n","comments":"","outputs":1,"x":2218.000011444092,"y":3931.024754881859,"z":"c281e2a0.b9793","wires":[["e6786e9b.c0b27"]]},{"id":"d9c03e20.3fb9a","type":"set","name":"set found-related-network to false","xml":"<set>\n<parameter name='found-related-network' value='false' />\n","comments":"","x":2258.000087738037,"y":3872.6915315389633,"z":"c281e2a0.b9793","wires":[]},{"id":"efb78149.9b61c","type":"for","name":"for each related network","xml":"<for silentFailure='true' index='related-network-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].related-networks.related-network_length`' >\n","comments":"","outputs":1,"x":2616.999973297119,"y":3907.691018462181,"z":"c281e2a0.b9793","wires":[["cd1453b2.6f3a9"]]},{"id":"e6786e9b.c0b27","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2406.000011444092,"y":3931.024754881859,"z":"c281e2a0.b9793","wires":[["efb78149.9b61c","90f69bfc.33fb08"]]},{"id":"cd1453b2.6f3a9","type":"switchNode","name":"switch network-role matches","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].related-networks.related-network[$related-network-index].network-role\n == $db.vnf-related-network-role[$db-related-network-index].related-network-role`'>\n","comments":"","outputs":1,"x":2868.9998893737793,"y":3907.6910947561264,"z":"c281e2a0.b9793","wires":[["cb14eefe.5a2de"]]},{"id":"97335d61.22ba5","type":"for","name":"for each db related-network","xml":"<for index='db-related-network-index' start='0' end='`$db.vnf-related-network-role_length`' >\n","comments":"","outputs":1,"x":1808.9999961853027,"y":4062.3580907583237,"z":"c281e2a0.b9793","wires":[["e1abd020.26e2f"]]},{"id":"e5c4c3e9.dd075","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":290.00024032592773,"y":6968.359683454037,"z":"c281e2a0.b9793","wires":[[]]},{"id":"cb14eefe.5a2de","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3068.9998893737793,"y":3905.6910947561264,"z":"c281e2a0.b9793","wires":[["9fb5cd77.e59a9"]]},{"id":"9fb5cd77.e59a9","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3222.9998893737793,"y":3903.6910947561264,"z":"c281e2a0.b9793","wires":[["b5846dc6.9806f","513c0287.6cfb6c","267283a1.50d3ec"]]},{"id":"b5846dc6.9806f","type":"set","name":"set found-related-network to true","xml":"<set>\n<parameter name='found-related-network' value='true' />\n","comments":"","x":3455.0000495910645,"y":3863.357678771019,"z":"c281e2a0.b9793","wires":[]},{"id":"513c0287.6cfb6c","type":"break","name":"break","xml":"<break>\n","comments":"","x":3378.333225250244,"y":3950.0244287252426,"z":"c281e2a0.b9793","wires":[]},{"id":"12eff2f5.e8988d","type":"switchNode","name":"switch found-related-network","xml":"<switch test='`$found-related-network`'>\n","comments":"","outputs":1,"x":2240.999942779541,"y":4006.691232085228,"z":"c281e2a0.b9793","wires":[["bc751607.8087a8"]]},{"id":"bc751607.8087a8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2434.999942779541,"y":4004.691232085228,"z":"c281e2a0.b9793","wires":[["60aa6286.70a78c"]]},{"id":"da9b1694.5bb218","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=\"`'Unable to find related network '\n + $db.vnf-related-network-role[$db-related-network-index].related-network-role + ' in vnf-networks'`\" />\n","comments":"","x":2712.999942779541,"y":4002.691232085228,"z":"c281e2a0.b9793","wires":[]},{"id":"60aa6286.70a78c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2564.999942779541,"y":4004.691232085228,"z":"c281e2a0.b9793","wires":[["da9b1694.5bb218","b29ec429.4a9cd8"]]},{"id":"b29ec429.4a9cd8","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":2657.6667442321777,"y":3767.3581231832504,"z":"c281e2a0.b9793","wires":[[]]},{"id":"4e401ffc.c0185","type":"set","name":"set is-trunked and segmentation-id in vm-network","xml":"<set>\n<parameter name='$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].is-trunked'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].is-trunked`' />\n<parameter name='$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].segmentation-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].segmentation-id`' />\n","comments":"","x":2302.999942779541,"y":4054.691232085228,"z":"c281e2a0.b9793","wires":[]},{"id":"c3f481a4.4b488","type":"switchNode","name":"switch rn-index","xml":"<switch test='`$rn-index`'>\n","comments":"","outputs":1,"x":2190.999942779541,"y":4162.691232085228,"z":"c281e2a0.b9793","wires":[["ccb908a6.027e08"]]},{"id":"35c23d78.e857f2","type":"set","name":"set rn-index to related network length","xml":"<set>\n<parameter name='rn-index' value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network_length`' />\n","comments":"","x":2262.999942779541,"y":4106.691232085228,"z":"c281e2a0.b9793","wires":[]},{"id":"ccb908a6.027e08","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2354.999942779541,"y":4162.691232085228,"z":"c281e2a0.b9793","wires":[["4e1f13af.2c9acc"]]},{"id":"4e1f13af.2c9acc","type":"set","name":"set rn-index to 0","xml":"<set>\n<parameter name='rn-index' value='0' />\n","comments":"","x":2514.999942779541,"y":4162.691232085228,"z":"c281e2a0.b9793","wires":[]},{"id":"482fcd9e.209524","type":"set","name":"set related-network data","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].network-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].network-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].network-role'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].network-role`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].vlan-tags.vlan-interface'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].vlan-tags.vlan-interface`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].vlan-tags.lower-tag-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].vlan-tags.lower-tag-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].vlan-tags.upper-tag-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].vlan-tags.upper-tag-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].vlan-tags.is-private'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].vlan-tags.is-private`' />\n","comments":"","x":2214.999942779541,"y":4214.691232085228,"z":"c281e2a0.b9793","wires":[]},{"id":"d6877179.6bb64","type":"set","name":"set new related network length","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network_length'\n value='`$rn-index + 1`' />\n","comments":"","x":2232.999942779541,"y":4266.691232085228,"z":"c281e2a0.b9793","wires":[]},{"id":"90f69bfc.33fb08","type":"switchNode","name":"switch found-related-network","xml":"<switch test='`$found-related-network`'>\n","comments":"","outputs":1,"x":2629.9999961853027,"y":3955.3578790426254,"z":"c281e2a0.b9793","wires":[["bd4bfde9.e323c"]]},{"id":"bd4bfde9.e323c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2826.6668586730957,"y":3955.358250975609,"z":"c281e2a0.b9793","wires":[["14ae2838.2b3c78"]]},{"id":"14ae2838.2b3c78","type":"break","name":"break","xml":"<break>\n","comments":"","x":2956.6667442321777,"y":3953.6913751363754,"z":"c281e2a0.b9793","wires":[]},{"id":"267283a1.50d3ec","type":"set","name":"save indexes","xml":"<set>\n<parameter name='saved-vnf-network-index' value='`$vnf-network-index`' />\n<parameter name='saved-related-network-index' value='`$related-network-index`' />\n","comments":"","x":3396.6669578552246,"y":3905.35824906826,"z":"c281e2a0.b9793","wires":[]},{"id":"3967ae4a.28f732","type":"execute","name":"generate cp-instance-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"cp-instance-id\" />\n","comments":"","outputs":1,"x":1685.5714492797852,"y":4934.882302165031,"z":"c281e2a0.b9793","wires":[[]]},{"id":"194fb60a.c8055a","type":"save","name":"save cp to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"cp\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\" >\n<parameter name=\"cp-instance-id\" value=\"`$cp-instance-id`\" />\n<parameter name=\"port-id\" value=\"0\" />\n","comments":"","outputs":1,"x":1667.2380714416504,"y":5001.54880797863,"z":"c281e2a0.b9793","wires":[["fc15bfb9.1690c","8fc1b804.471888"]]},{"id":"fc15bfb9.1690c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1856.238052368164,"y":4977.215421497822,"z":"c281e2a0.b9793","wires":[["8be276b1.529838"]]},{"id":"8be276b1.529838","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2023.404800415039,"y":4993.009855091572,"z":"c281e2a0.b9793","wires":[["4c72e4b8.c8b60c","78584413.02195c"]]},{"id":"8fc1b804.471888","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1861.238052368164,"y":5026.881681263447,"z":"c281e2a0.b9793","wires":[["8be276b1.529838"]]},{"id":"4c72e4b8.c8b60c","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=\"Error creating cp object in AAI\" />\n","comments":"","x":2188.904811859131,"y":5004.882059931755,"z":"c281e2a0.b9793","wires":[]},{"id":"58d1d842.f73148","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1462.0477714538574,"y":5204.167096018791,"z":"c281e2a0.b9793","wires":[["2a88c37a.f52dfc","cda369d7.15b748","3967ae4a.28f732","194fb60a.c8055a","82edde6c.cbd8c","d791c619.1c0de8"]]},{"id":"2a88c37a.f52dfc","type":"set","name":"set connection point data","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].connection-point.connection-point-id'\n value='`$cp-instance-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].connection-point.port-id'\n value='0' />\n","comments":"","x":1697.5716133117676,"y":5079.406377673149,"z":"c281e2a0.b9793","wires":[]},{"id":"f7e0fa09.0da6e8","type":"comment","name":"Floating IPs","info":"","comments":"","x":1258.3334312438965,"y":6061.69149595499,"z":"c281e2a0.b9793","wires":[]},{"id":"82edde6c.cbd8c","type":"for","name":"for each vnf-network","xml":"<for index='vnf-network-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n","comments":"","outputs":1,"x":1681.6666145324707,"y":5475.691871523857,"z":"c281e2a0.b9793","wires":[["23327f6f.5cc69"]]},{"id":"3f52c68d.db16fa","type":"save","name":"save cp relationship to l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"cp:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n AND cp.cp-instance-id = $cp-instance-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].network-id`\" />\n","comments":"","outputs":1,"x":2320.0000953674316,"y":5475.358379244804,"z":"c281e2a0.b9793","wires":[["23e092ca.2884de","19f8e772.a624f9"]]},{"id":"cc5fddd3.e7b56","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2691.8331336975098,"y":5448.676327586174,"z":"c281e2a0.b9793","wires":[["5e6832c6.09c0bc","bb628391.808e8"]]},{"id":"cf31ae7c.336ef","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2691.833209991455,"y":5501.676086306572,"z":"c281e2a0.b9793","wires":[["5e6832c6.09c0bc","7b795e56.3998d"]]},{"id":"23e092ca.2884de","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2535.0000190734863,"y":5448.691997408867,"z":"c281e2a0.b9793","wires":[["cc5fddd3.e7b56"]]},{"id":"19f8e772.a624f9","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2543.5715522766113,"y":5501.311141848564,"z":"c281e2a0.b9793","wires":[["cf31ae7c.336ef"]]},{"id":"bb628391.808e8","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=\"Error updating cp relationship to l3-network in AAI\" />\n","comments":"","x":2863.999942779541,"y":5471.358703494071,"z":"c281e2a0.b9793","wires":[]},{"id":"7b795e56.3998d","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=\"Not-found error updating cp relationship to l3-network\" />\n","comments":"","x":2859.166851043701,"y":5523.009910464286,"z":"c281e2a0.b9793","wires":[]},{"id":"5e6832c6.09c0bc","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":3065.666706085205,"y":5421.358701586723,"z":"c281e2a0.b9793","wires":[[]]},{"id":"d791c619.1c0de8","type":"for","name":"for each vm-network","xml":"<for silentFailure='true' index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n","comments":"","outputs":1,"x":1681.6667671203613,"y":5636.358226656914,"z":"c281e2a0.b9793","wires":[["5ca9d01e.1d8bc"]]},{"id":"3c0da287.0cae0e","type":"save","name":"save cp relationship to l3-network and vlan-tag","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"cp:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n AND cp.cp-instance-id = $cp-instance-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$related-network-index].network-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"vlan-tag\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/vlan-tags/vlan-tag/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$related-network-index].vlan-tags.vlan-interface`\" />\n","comments":"","outputs":1,"x":2601.3337745666504,"y":5634.358221888542,"z":"c281e2a0.b9793","wires":[["4f85a505.0270ec","8f924327.75574"]]},{"id":"872090c1.b706b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3008.166820526123,"y":5607.675520777703,"z":"c281e2a0.b9793","wires":[["b515575c.247648","5e6832c6.09c0bc"]]},{"id":"561ae9eb.72a478","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3008.1668968200684,"y":5660.675279498101,"z":"c281e2a0.b9793","wires":[["1d965a07.e719f6","5e6832c6.09c0bc"]]},{"id":"4f85a505.0270ec","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2851.3337059020996,"y":5607.691190600396,"z":"c281e2a0.b9793","wires":[["872090c1.b706b"]]},{"id":"8f924327.75574","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2859.9052391052246,"y":5660.310335040093,"z":"c281e2a0.b9793","wires":[["561ae9eb.72a478"]]},{"id":"b515575c.247648","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=\"Error updating cp relationship to l3-network and vlan-tag in AAI\" />\n","comments":"","x":3180.3336296081543,"y":5630.3578966856,"z":"c281e2a0.b9793","wires":[]},{"id":"1d965a07.e719f6","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=\"Not-found error updating cp relationship to l3-network and vlan-tag\" />\n","comments":"","x":3175.5005378723145,"y":5682.009103655815,"z":"c281e2a0.b9793","wires":[]},{"id":"de59419e.974cd","type":"for","name":"for each related-network","xml":"<for silentFailure='true' index='related-network-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network_length`' >\n","comments":"","outputs":1,"x":2297.3336067199707,"y":5634.3582228422165,"z":"c281e2a0.b9793","wires":[["3c0da287.0cae0e"]]},{"id":"b3a603a5.80e31","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-generate-heat-parameters","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-generate-heat-parameters' mode='sync' >\n","comments":"","outputs":1,"x":555.6669006347656,"y":6877.358483314514,"z":"c281e2a0.b9793","wires":[[]]},{"id":"c04c47f5.514678","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmoduleheat.log' />\n","comments":"","outputs":1,"x":377.00022888183594,"y":6925.35858631134,"z":"c281e2a0.b9793","wires":[[]]},{"id":"cdfcaf85.62d64","type":"switchNode","name":"switch input vf-module-name","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`'>\n","comments":"","outputs":1,"x":528.3333320617676,"y":2361.1910442113876,"z":"c281e2a0.b9793","wires":[["a0874d5.7e761b","985e8945.d74038"]]},{"id":"a0874d5.7e761b","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":728.333324432373,"y":2338.6909469366074,"z":"c281e2a0.b9793","wires":[["e5249593.3b52e8"]]},{"id":"985e8945.d74038","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":729.7619361877441,"y":2388.8101695775986,"z":"c281e2a0.b9793","wires":[["16645c8e.451fe3"]]},{"id":"63bfe42c.9fb95c","type":"for","name":"for each vnfc-subnet-role","xml":"<for index='subnet-role-index' start='0'\n end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet_length`' >\n","comments":"","outputs":1,"x":1285.8334312438965,"y":3156.1907209157944,"z":"c281e2a0.b9793","wires":[["1e64ed59.1e5183"]]},{"id":"1e64ed59.1e5183","type":"for","name":"for each vnfc-address-family","xml":"<for index='address-family-index' start='0'\n end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments_length`' >\n","comments":"","outputs":1,"x":1534.166690826416,"y":3156.1907209157944,"z":"c281e2a0.b9793","wires":[["fea6d69d.d54528"]]},{"id":"47fa3ee6.d0e38","type":"for","name":"for each vm-type","xml":"<for silentFailure='true' index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n","comments":"","outputs":1,"x":491.6666069030762,"y":2874.5240577459335,"z":"c281e2a0.b9793","wires":[["28ec4405.9a39ec"]]},{"id":"28ec4405.9a39ec","type":"for","name":"for each vnfc","xml":"<for silentFailure='true' index='vnfc-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n","comments":"","outputs":1,"x":673.3333854675293,"y":2873.1912063360214,"z":"c281e2a0.b9793","wires":[["45de94d5.73101c"]]},{"id":"45de94d5.73101c","type":"for","name":"for each vnfc-network","xml":"<for silentFailure='true' index='vnfc-network-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data_length`' >\n","comments":"","outputs":1,"x":874.4999580383301,"y":2873.0238956212997,"z":"c281e2a0.b9793","wires":[["ca740cea.e62d6"]]},{"id":"ca740cea.e62d6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1086.6666297912598,"y":2872.0242561101913,"z":"c281e2a0.b9793","wires":[["cbe13ead.16c16","7d23e100.1f668","362b374d.7670e8","63bfe42c.9fb95c"]]},{"id":"cbe13ead.16c16","type":"set","name":"set vnf-network-index to -1","xml":"<set>\n<parameter name='vnf-network-index' value='-1' />\n","comments":"","x":1298.3333473205566,"y":2825.3574699163437,"z":"c281e2a0.b9793","wires":[]},{"id":"7d23e100.1f668","type":"for","name":"for each vnf-network","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n","comments":"","outputs":1,"x":1280.0001373291016,"y":2872.024221777916,"z":"c281e2a0.b9793","wires":[["d69233bc.c9992"]]},{"id":"d69233bc.c9992","type":"switchNode","name":"switch network-roles match?","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-network-role\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$idx].network-role`'>\n","comments":"","outputs":1,"x":1521.6666069030762,"y":2870.3577169179916,"z":"c281e2a0.b9793","wires":[["4417b7d7.ed8cf8"]]},{"id":"4417b7d7.ed8cf8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1718.3332862854004,"y":2870.3576358556747,"z":"c281e2a0.b9793","wires":[["8d8e6fbf.ff49c"]]},{"id":"8d8e6fbf.ff49c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1871.6665077209473,"y":2870.3575080633163,"z":"c281e2a0.b9793","wires":[["cdb9a81.db01858","a342ffc7.9707f","3fd4ae58.22bfd2"]]},{"id":"cdb9a81.db01858","type":"set","name":"set vnf-network-index","xml":"<set>\n<parameter name='vnf-network-index' value='`$idx`' />\n","comments":"","x":2078.333339691162,"y":2818.690885901451,"z":"c281e2a0.b9793","wires":[]},{"id":"a342ffc7.9707f","type":"break","name":"break","xml":"<break>\n","comments":"","x":2033.3332557678223,"y":2908.690806746483,"z":"c281e2a0.b9793","wires":[]},{"id":"362b374d.7670e8","type":"switchNode","name":"switch vnf-network-index","xml":"<switch test='`$vnf-network-index`'>\n","comments":"","outputs":1,"x":1291.666675567627,"y":2932.0242236852646,"z":"c281e2a0.b9793","wires":[["5e7cd6b.8449228"]]},{"id":"5e7cd6b.8449228","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":1483.3333168029785,"y":2932.0244678258896,"z":"c281e2a0.b9793","wires":[["9244fe7f.31bdd"]]},{"id":"9244fe7f.31bdd","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1631.6665077209473,"y":2930.3575080633163,"z":"c281e2a0.b9793","wires":[["870865f7.4f7ae8","59ea4147.35ab6"]]},{"id":"870865f7.4f7ae8","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":3160.000141143799,"y":2782.0240854024887,"z":"c281e2a0.b9793","wires":[[]]},{"id":"59ea4147.35ab6","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=\"`'VNFC network role '\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-network-role\n + ' is not found in VNF network list'\n `\" />\n\n\n\n","comments":"","x":1799.9998817443848,"y":2948.6907600164413,"z":"c281e2a0.b9793","wires":[]},{"id":"2a4765c5.30e19a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2323.333225250244,"y":3340.357359290123,"z":"c281e2a0.b9793","wires":[["7fb715db.138d3c","3542e589.394d0a","58b2c621.464728"]]},{"id":"7fb715db.138d3c","type":"for","name":"for each subnet-data","xml":"<for index='subnet-data-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data_length`' >\n","comments":"","outputs":1,"x":2519.9999771118164,"y":3295.357278227806,"z":"c281e2a0.b9793","wires":[["747e7dc0.12e944"]]},{"id":"747e7dc0.12e944","type":"switchNode","name":"address-families match?","xml":"<switch test='`$tmp.address-family\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].ip-version`'>\n","comments":"","outputs":1,"x":2746.666603088379,"y":3295.357278227806,"z":"c281e2a0.b9793","wires":[["ed980615.6f71e8"]]},{"id":"ed980615.6f71e8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2926.6665687561035,"y":3295.357684493065,"z":"c281e2a0.b9793","wires":[["d55384f.ba55f78"]]},{"id":"b9054984.486ce8","type":"set","name":"set tmp.address-family","xml":"<set>\n<parameter name='tmp.address-family'\n value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-address-family`' />\n","comments":"","x":2351.666561126709,"y":3158.6907724142075,"z":"c281e2a0.b9793","wires":[]},{"id":"fea6d69d.d54528","type":"switchNode","name":"switch vnfc-subnet-ip_length","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip_length`'>\n","comments":"","outputs":1,"x":1796.666904449463,"y":3155.3578075170517,"z":"c281e2a0.b9793","wires":[["6ff2b1b6.97745","1dd0e662.d10d8a","5ba80aca.dec534"]]},{"id":"6ff2b1b6.97745","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1998.3334159851074,"y":3055.357350707054,"z":"c281e2a0.b9793","wires":[["15aeaeb0.b6c1f1"]]},{"id":"1dd0e662.d10d8a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1994.7620468139648,"y":3241.3096421957016,"z":"c281e2a0.b9793","wires":[["bfd0cd27.17874"]]},{"id":"15aeaeb0.b6c1f1","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2129.9999656677246,"y":3078.024097800255,"z":"c281e2a0.b9793","wires":[[]]},{"id":"6b48e8f1.05ab58","type":"set","name":"set subnet-id to -1","xml":"<set>\n<parameter name='subnet-id' value='-1' />\n","comments":"","x":3020.0004844665527,"y":3457.024764418602,"z":"c281e2a0.b9793","wires":[]},{"id":"bfd0cd27.17874","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2148.3334617614746,"y":3240.357274413109,"z":"c281e2a0.b9793","wires":[["b9054984.486ce8","2a4765c5.30e19a"]]},{"id":"63d0a0de.61222","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":4280.000082015991,"y":3628.6912413835526,"z":"c281e2a0.b9793","wires":[["3e091462.40e70c","aaa9a679.f9ece8"]]},{"id":"aaa9a679.f9ece8","type":"execute","name":"execute isInSameSubnet","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"isInSameSubnet\">\n\t<parameter name=\"firstIPAddr\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].network-start-address`\" />\n\t<parameter name=\"secondIPAddr\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[0].vnfc-ip-address`\" />\n\t<parameter name=\"subnet\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].cidr-mask`\" />\n\t<parameter name=\"ipType\" value=\"`$ip-type`\" />\n","comments":"","outputs":1,"x":4495.00008392334,"y":3678.6909152269363,"z":"c281e2a0.b9793","wires":[["a4b9a2d6.98cf9"]]},{"id":"3e091462.40e70c","type":"switchNode","name":"switch tmp.address-family","xml":"<switch test='`$tmp.address-family`'>\n","comments":"","outputs":1,"x":4496.667240142822,"y":3585.3579016923904,"z":"c281e2a0.b9793","wires":[["13cdd504.b1a3ab","cb684de4.29a3e"]]},{"id":"13cdd504.b1a3ab","type":"outcome","name":"ipv4","xml":"<outcome value='ipv4'>\n","comments":"","outputs":1,"x":4700.000502268473,"y":3558.6911320288973,"z":"c281e2a0.b9793","wires":[["7ea6517b.eea13"]]},{"id":"cb684de4.29a3e","type":"outcome","name":"ipv6","xml":"<outcome value='ipv6'>\n","comments":"","outputs":1,"x":4700.000175476074,"y":3605.357659459114,"z":"c281e2a0.b9793","wires":[["1086dd41.8fbd03"]]},{"id":"7ea6517b.eea13","type":"set","name":"set ip-type parameter to IPv4","xml":"<set>\n<parameter name='ip-type' value='IPv4' />\n","comments":"","x":4896.666988372803,"y":3557.024605870247,"z":"c281e2a0.b9793","wires":[]},{"id":"1086dd41.8fbd03","type":"set","name":"set ip-type parameter to IPv6","xml":"<set>\n<parameter name='ip-type' value='IPv6' />\n","comments":"","x":4901.66686630249,"y":3605.3576785326004,"z":"c281e2a0.b9793","wires":[]},{"id":"7fc46df.2b38294","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":4835.000114440918,"y":3678.3576785326004,"z":"c281e2a0.b9793","wires":[["4cf41fe7.a3106","74f11025.3f1fc"]]},{"id":"4cf41fe7.a3106","type":"set","name":"set subnet-id","xml":"<set>\n<parameter name='subnet-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].sdnc-subnet-id`' />\n","comments":"","x":5013.333435058594,"y":3655.0241652727127,"z":"c281e2a0.b9793","wires":[]},{"id":"74f11025.3f1fc","type":"break","name":"break","xml":"<break>\n","comments":"","x":4998.333438873291,"y":3701.6911593675613,"z":"c281e2a0.b9793","wires":[]},{"id":"d31bd158.412b6","type":"switchNode","name":"switch subnet-id","xml":"<switch test='`$subnet-id`'>\n","comments":"","outputs":1,"x":3011.666358947754,"y":3618.6914991140366,"z":"c281e2a0.b9793","wires":[["c2f0bf51.995e6"]]},{"id":"c2f0bf51.995e6","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":3168.33292388916,"y":3618.691434264183,"z":"c281e2a0.b9793","wires":[["dede0c8.bac57f"]]},{"id":"dede0c8.bac57f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3316.666114807129,"y":3617.02447450161,"z":"c281e2a0.b9793","wires":[["ca343905.3a2938","870865f7.4f7ae8"]]},{"id":"ca343905.3a2938","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=\"`'Not able to find VNF network subnet that contains address '\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[0].vnfc-ip-address\n `\" />\n\n\n\n","comments":"","x":3484.9994468688965,"y":3633.6909497976303,"z":"c281e2a0.b9793","wires":[]},{"id":"ff78938e.825b6","type":"set","name":"set subnet-id in vnfc-ip-assignments (temp variable)","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].subnet-id' value='`$subnet-id`' />\n","comments":"","x":3123.3330039978027,"y":3695.358270049095,"z":"c281e2a0.b9793","wires":[]},{"id":"3701ddfc.549122","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmodulec.log' />\n","comments":"","outputs":1,"x":476.66659927368164,"y":3290.3575080633163,"z":"c281e2a0.b9793","wires":[[]]},{"id":"a4b9a2d6.98cf9","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4681.666687011719,"y":3678.6914035081863,"z":"c281e2a0.b9793","wires":[["7fc46df.2b38294"]]},{"id":"3fd4ae58.22bfd2","type":"set","name":"set network-id","xml":"<set>\n<parameter name='$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].network-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$idx].network-id`' />\n","comments":"","x":2054.999843597412,"y":2863.6909688711166,"z":"c281e2a0.b9793","wires":[]},{"id":"8511c134.e2a8c","type":"switchNode","name":"switch nfc-naming-code","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code`'>\n","comments":"","outputs":1,"x":1253.333309173584,"y":4478.690696597099,"z":"c281e2a0.b9793","wires":[["fefb667e.d34c38","d37e094c.044388"]]},{"id":"fefb667e.d34c38","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1438.3332557678223,"y":4453.690515398979,"z":"c281e2a0.b9793","wires":[["22f4451.03ddbba"]]},{"id":"d37e094c.044388","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1436.4285278320312,"y":4500.476343035698,"z":"c281e2a0.b9793","wires":[["538b8daa.f6cfd4"]]},{"id":"22f4451.03ddbba","type":"set","name":"set tmp.nfc-naming-code to DEFAULT","xml":"<set>\n<parameter name='tmp.nfc-naming-code' value='DEFAULT' />\n","comments":"","x":1670.0000267028809,"y":4452.023865580559,"z":"c281e2a0.b9793","wires":[]},{"id":"538b8daa.f6cfd4","type":"set","name":"set tmp.nfc-naming-code","xml":"<set>\n<parameter name='tmp.nfc-naming-code' value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code`' />\n","comments":"","x":1626.6665382385254,"y":4500.357363581657,"z":"c281e2a0.b9793","wires":[]},{"id":"502f3bfc.44fe14","type":"switchNode","name":"switch nfc-function","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-function`'>\n","comments":"","outputs":1,"x":1241.6666412353516,"y":4577.02387034893,"z":"c281e2a0.b9793","wires":[["e45a052c.062058","3fa16d0d.6e4072"]]},{"id":"e45a052c.062058","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1438.3332481384277,"y":4552.023668169975,"z":"c281e2a0.b9793","wires":[["f1f8cad2.a52678"]]},{"id":"3fa16d0d.6e4072","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1436.4285202026367,"y":4598.809495806694,"z":"c281e2a0.b9793","wires":[["b39423fa.914b2"]]},{"id":"f1f8cad2.a52678","type":"set","name":"set tmp.nfc-function to DEFAULT","xml":"<set>\n<parameter name='tmp.nfc-function' value='DEFAULT' />\n","comments":"","x":1650.0000305175781,"y":4550.356877207756,"z":"c281e2a0.b9793","wires":[]},{"id":"b39423fa.914b2","type":"set","name":"set tmp.nfc-function","xml":"<set>\n<parameter name='tmp.nfc-function' value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-function`' />\n","comments":"","x":1608.3331604003906,"y":4598.690538287163,"z":"c281e2a0.b9793","wires":[]},{"id":"335ebcdf.36a974","type":"call","name":"call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback","xml":"<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n","comments":"","outputs":1,"x":2881.6666297912598,"y":2233.6910041570663,"z":"c281e2a0.b9793","wires":[[]]},{"id":"5b13f1bd.9caa2","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2788.3331336975098,"y":2308.6910041570663,"z":"c281e2a0.b9793","wires":[["d1ff1b92.db4a78","335ebcdf.36a974"]]},{"id":"9d4e3c9a.59748","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1993.3331871032715,"y":2368.690867781639,"z":"c281e2a0.b9793","wires":[["587561df.2ca4a","335ebcdf.36a974"]]},{"id":"893d3e7a.e5b1f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2255.000051498413,"y":2423.6910346746445,"z":"c281e2a0.b9793","wires":[["f8e976f1.7db4f8","335ebcdf.36a974"]]},{"id":"23327f6f.5cc69","type":"switchNode","name":"switch network-roles match?","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-network-role\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].network-role`'>\n","comments":"","outputs":1,"x":1914.99995803833,"y":5475.69089782238,"z":"c281e2a0.b9793","wires":[["855fc1b0.470bd"]]},{"id":"855fc1b0.470bd","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2113.333427429199,"y":5475.358053088188,"z":"c281e2a0.b9793","wires":[["3f52c68d.db16fa"]]},{"id":"5ca9d01e.1d8bc","type":"switchNode","name":"switch network-roles match?","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].network-role`'>\n","comments":"","outputs":1,"x":1918.3333015441895,"y":5635.357345461845,"z":"c281e2a0.b9793","wires":[["f791184e.351938"]]},{"id":"f791184e.351938","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2116.6667709350586,"y":5635.0245007276535,"z":"c281e2a0.b9793","wires":[["de59419e.974cd"]]},{"id":"d11c836e.c57ae","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1821.6665840148926,"y":6213.69076526165,"z":"c281e2a0.b9793","wires":[["16a29da1.16be62","4f07c4c.b2fe53c"]]},{"id":"2e71e36.46fa41c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1823.3333320617676,"y":6528.690776705742,"z":"c281e2a0.b9793","wires":[["130606e9.a6f699","f15c2e92.d48f7"]]},{"id":"4f07c4c.b2fe53c","type":"for","name":"for each vnfc-network-role","xml":"<for silentFailure='true' index='vnfc-network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data_length`' >\n","comments":"","outputs":1,"x":2038.3335304260254,"y":6272.023936152458,"z":"c281e2a0.b9793","wires":[["9934c0c5.d4a4f"]]},{"id":"e62cf23e.da265","type":"save","name":"save vip-ipv4-address-list relationship to cp","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vip-ipv4-address-list:relationship-list\"\n key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv4-address-list.vip-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4[$ipv4-index]\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"cp\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/vnfcs/vnfc/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n + '/cps/cp/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-role-index].connection-point.connection-point-id`\" />\n","comments":"","outputs":1,"x":2713.33345413208,"y":6272.023774981499,"z":"c281e2a0.b9793","wires":[["cddad6ff.adc0f8","b720eecf.4edee"]]},{"id":"c5ca07d0.0eed48","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=\"Error updating vip-ipv4-address-list relationship to cp in AAI\" />\n","comments":"","x":3271.666675567627,"y":6265.357183337212,"z":"c281e2a0.b9793","wires":[]},{"id":"7d7a1cba.6ee544","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=\"Not-found error updating vip-ipv4-address-list relationship to cp\" />\n","comments":"","x":3271.8336448669434,"y":6315.341357052326,"z":"c281e2a0.b9793","wires":[]},{"id":"41faa6f2.0ce628","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3105.16654586792,"y":6245.341556429863,"z":"c281e2a0.b9793","wires":[["c5ca07d0.0eed48","d97fd47e.81be38"]]},{"id":"918c8065.51778","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3105.1666221618652,"y":6298.341315150261,"z":"c281e2a0.b9793","wires":[["7d7a1cba.6ee544","d97fd47e.81be38"]]},{"id":"cddad6ff.adc0f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2948.3334312438965,"y":6245.357226252556,"z":"c281e2a0.b9793","wires":[["41faa6f2.0ce628"]]},{"id":"b720eecf.4edee","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2956.9049644470215,"y":6297.976370692253,"z":"c281e2a0.b9793","wires":[["918c8065.51778"]]},{"id":"f15c2e92.d48f7","type":"for","name":"for each vnfc-network-role","xml":"<for silentFailure='true' index='vnfc-network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data_length`' >\n","comments":"","outputs":1,"x":2039.999927520752,"y":6595.357345461845,"z":"c281e2a0.b9793","wires":[["825e7345.364df"]]},{"id":"6956e16a.25406","type":"save","name":"save vip-ipv6-address-list relationship to cp","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vip-ipv6-address-list:relationship-list\"\n key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv6-address-list.vip-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6[$ipv6-index]\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"cp\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/vnfcs/vnfc/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n + '/cps/cp/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-role-index].connection-point.connection-point-id`\" />\n","comments":"","outputs":1,"x":2709.9998817443848,"y":6593.690128207207,"z":"c281e2a0.b9793","wires":[["2f5ed9c4.0c68e6","71893f41.6f1ae"]]},{"id":"8e980bb1.a44fd8","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=\"Error updating vip-ipv4-address-list relationship to cp in AAI\" />\n","comments":"","x":3268.3331031799316,"y":6587.02353656292,"z":"c281e2a0.b9793","wires":[]},{"id":"ab83bee.d05ae4","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=\"Not-found error updating vip-ipv4-address-list relationship to cp\" />\n","comments":"","x":3268.500072479248,"y":6637.007710278034,"z":"c281e2a0.b9793","wires":[]},{"id":"d0ad927.298097","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3101.8329734802246,"y":6567.007909655571,"z":"c281e2a0.b9793","wires":[["8e980bb1.a44fd8"]]},{"id":"5be147c2.a43998","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3101.83304977417,"y":6620.007668375969,"z":"c281e2a0.b9793","wires":[["ab83bee.d05ae4"]]},{"id":"2f5ed9c4.0c68e6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2944.999858856201,"y":6567.023579478264,"z":"c281e2a0.b9793","wires":[["d0ad927.298097"]]},{"id":"71893f41.6f1ae","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2953.571392059326,"y":6619.642723917961,"z":"c281e2a0.b9793","wires":[["5be147c2.a43998"]]},{"id":"9934c0c5.d4a4f","type":"switchNode","name":"switch network-roles match?","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role\n == $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-role-index].vnfc-network-role`'>\n","comments":"","outputs":1,"x":2291.6665992736816,"y":6272.023612856865,"z":"c281e2a0.b9793","wires":[["582dbc15.d387a4"]]},{"id":"582dbc15.d387a4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2478.3334426879883,"y":6272.024100184441,"z":"c281e2a0.b9793","wires":[["e62cf23e.da265"]]},{"id":"825e7345.364df","type":"switchNode","name":"switch network-roles match?","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role\n == $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-role-index].vnfc-network-role`'>\n","comments":"","outputs":1,"x":2288.333179473877,"y":6593.690353274345,"z":"c281e2a0.b9793","wires":[["a65004e7.415cc8"]]},{"id":"a65004e7.415cc8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2475.0000228881836,"y":6593.690840601921,"z":"c281e2a0.b9793","wires":[["6956e16a.25406"]]},{"id":"3759e633.b179fa","type":"comment","name":"SELF-SERVE FORK","info":"","comments":"","x":658.0476226806641,"y":882.0476239919662,"z":"c281e2a0.b9793","wires":[]},{"id":"137fbedc.65c061","type":"call","name":"call self-serve-vf-module-assign","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vf-module-assign' mode='sync' >\n","comments":"","outputs":1,"x":1191.0827674865723,"y":926.9644302129745,"z":"c281e2a0.b9793","wires":[["937bb6ab.d3e928"]]},{"id":"fdcc1343.84631","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=\"`'Failed to create self-serve assignment for vf-module with vf-module-id=' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + ' with error: ' + $error-message`\" />\n","comments":"","x":1575.1541442871094,"y":926.9643806219101,"z":"c281e2a0.b9793","wires":[]},{"id":"937bb6ab.d3e928","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1411.3803482055664,"y":926.4524616003036,"z":"c281e2a0.b9793","wires":[["fdcc1343.84631"]]},{"id":"6a0dafd2.849e5","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":1137.9520111083984,"y":1076.8093494176865,"z":"c281e2a0.b9793","wires":[]},{"id":"cc9761fc.c3c32","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnfend.log' />\n","comments":"","outputs":1,"x":1129.99955368042,"y":1031.300893187523,"z":"c281e2a0.b9793","wires":[[]]},{"id":"a85a3080.68cd","type":"set","name":"set order-status to PendingCreate","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status'\n value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n","comments":"","x":1200.690071105957,"y":980.2617877721786,"z":"c281e2a0.b9793","wires":[]},{"id":"9c7519a.27013e8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":911.7854995727539,"y":926.6425918340683,"z":"c281e2a0.b9793","wires":[["137fbedc.65c061","a85a3080.68cd","cc9761fc.c3c32","6a0dafd2.849e5"]]},{"id":"ef0240de.c2124","type":"comment","name":"First, count the subnets for this address family","info":"","comments":"","x":2653.3337364196777,"y":3204.999768614769,"z":"c281e2a0.b9793","wires":[]},{"id":"5db15b6.cca79a4","type":"for","name":"for each subnet-data","xml":"<for index='subnet-data-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data_length`' >\n","comments":"","outputs":1,"x":3026.6664237976074,"y":3500.000272154808,"z":"c281e2a0.b9793","wires":[["e0589a82.b6b1d8"]]},{"id":"e0589a82.b6b1d8","type":"switchNode","name":"address-families match?","xml":"<switch test='`$tmp.address-family\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].ip-version`'>\n","comments":"","outputs":1,"x":3253.33304977417,"y":3500.000272154808,"z":"c281e2a0.b9793","wires":[["4ec55305.664b0c"]]},{"id":"4ec55305.664b0c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3433.3330154418945,"y":3500.000678420067,"z":"c281e2a0.b9793","wires":[["625e2ff1.7ba5e"]]},{"id":"3542e589.394d0a","type":"set","name":"set af-count to 0","xml":"<set>\n<parameter name='af-count' value='0' />\n","comments":"","x":2508.333309173584,"y":3246.6665204763412,"z":"c281e2a0.b9793","wires":[]},{"id":"6857e7c7.9ac808","type":"set","name":"increment af-count","xml":"<set>\n<parameter name='af-count' value='`$af-count + 1`' />\n","comments":"","x":3256.666675567627,"y":3313.333270430565,"z":"c281e2a0.b9793","wires":[]},{"id":"d55384f.ba55f78","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3073.33304977417,"y":3294.999955534935,"z":"c281e2a0.b9793","wires":[["6857e7c7.9ac808","76e163ca.f2491c"]]},{"id":"76e163ca.f2491c","type":"set","name":"set subnet-id","xml":"<set>\n<parameter name='subnet-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].sdnc-subnet-id`' />\n","comments":"","x":3238.333095550537,"y":3268.3332685232162,"z":"c281e2a0.b9793","wires":[]},{"id":"58b2c621.464728","type":"switchNode","name":"switch af-count","xml":"<switch test='`$af-count`'>\n","comments":"","outputs":1,"x":2498.3337211608887,"y":3483.3334373235703,"z":"c281e2a0.b9793","wires":[["e6df7a02.54e718","ebdc3582.f7c488"]]},{"id":"e6df7a02.54e718","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":2658.333240509033,"y":3381.6666063070297,"z":"c281e2a0.b9793","wires":[["8ca971fd.7953b"]]},{"id":"8ca971fd.7953b","type":"set","name":"set subnet-id in vnfc-ip-assignments (temp variable)","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].subnet-id'\n value='`$subnet-id`' />\n","comments":"","x":2931.66654586792,"y":3379.999955534935,"z":"c281e2a0.b9793","wires":[]},{"id":"ebdc3582.f7c488","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2658.3331565856934,"y":3583.3335260152817,"z":"c281e2a0.b9793","wires":[["42d68fbe.9be82"]]},{"id":"42d68fbe.9be82","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2814.999797821045,"y":3583.33320748806,"z":"c281e2a0.b9793","wires":[["6b48e8f1.05ab58","5db15b6.cca79a4","d31bd158.412b6","ff78938e.825b6"]]},{"id":"625e2ff1.7ba5e","type":"switchNode","name":"switch network-start-address","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].network-start-address`'>\n","comments":"","outputs":1,"x":3628.333194732666,"y":3498.3335222005844,"z":"c281e2a0.b9793","wires":[["2d6c2df0.f0f642","b9ce861f.3022c8"]]},{"id":"2d6c2df0.f0f642","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":3825.00004196167,"y":3433.3331328630447,"z":"c281e2a0.b9793","wires":[["41bb84ce.add04c"]]},{"id":"b9ce861f.3022c8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3818.0954399108887,"y":3567.6190444231033,"z":"c281e2a0.b9793","wires":[["5a93119c.cf602"]]},{"id":"5a93119c.cf602","type":"switchNode","name":"switch cidr-mask","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].cidr-mask`'>\n","comments":"","outputs":1,"x":3973.3332328796387,"y":3566.6662513017654,"z":"c281e2a0.b9793","wires":[["8a2d4bda.e6bad8","6b592583.089c9c"]]},{"id":"8a2d4bda.e6bad8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":4128.333309173584,"y":3496.666550755501,"z":"c281e2a0.b9793","wires":[["6444f1bd.5b332"]]},{"id":"6b592583.089c9c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":4131.429105758667,"y":3629.285637974739,"z":"c281e2a0.b9793","wires":[["63d0a0de.61222"]]},{"id":"5ba80aca.dec534","type":"outcome","name":"0","xml":"<outcome value='0'>","comments":"","outputs":1,"x":1999.9999198913574,"y":3103.33320748806,"z":"c281e2a0.b9793","wires":[["15aeaeb0.b6c1f1"]]},{"id":"fa3499eb.092408","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 subnet id '\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].sdnc-subnet-id\n + ' does not have network-start-address populated'`\" />\n\n\n\n","comments":"","x":4133.333545684814,"y":3448.3329697847366,"z":"c281e2a0.b9793","wires":[]},{"id":"41bb84ce.add04c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3969.999969482422,"y":3433.3329001665115,"z":"c281e2a0.b9793","wires":[["fa3499eb.092408","870865f7.4f7ae8"]]},{"id":"7aa00293.47497c","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 subnet id '\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].sdnc-subnet-id\n + ' does not have cidr-mask populated'`\" />\n\n\n\n","comments":"","x":4438.333400726318,"y":3509.999837040901,"z":"c281e2a0.b9793","wires":[]},{"id":"6444f1bd.5b332","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":4274.999824523926,"y":3494.999767422676,"z":"c281e2a0.b9793","wires":[["7aa00293.47497c","870865f7.4f7ae8"]]},{"id":"98127124.d9fe3","type":"comment","name":"Ignore address families with no addresses","info":"","comments":"","x":2274.333293914795,"y":3033.66670358181,"z":"c281e2a0.b9793","wires":[]},{"id":"3895a80b.eba038","type":"switchNode","name":"switch invariant-uuid","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].invariant-uuid`'>\n","comments":"","outputs":1,"x":1245.0001335144043,"y":4663.33308160305,"z":"c281e2a0.b9793","wires":[["a47fd206.3d3c2","45c89d5c.a1aa24"]]},{"id":"a47fd206.3d3c2","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1426.66654586792,"y":4639.99971139431,"z":"c281e2a0.b9793","wires":[["f6afc45b.804248"]]},{"id":"45c89d5c.a1aa24","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1424.761817932129,"y":4686.785539031029,"z":"c281e2a0.b9793","wires":[["3c22f266.7fa8ae"]]},{"id":"f6afc45b.804248","type":"save","name":"save vnfc to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vnfc\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\" >\n<parameter name=\"vnfc-name\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name`\" />\n<parameter name=\"nfc-naming-code\" value=\"`$tmp.nfc-naming-code`\" />\n<parameter name=\"nfc-function\" value=\"`$tmp.nfc-function`\" />\n<parameter name=\"orchestration-status\" value=\"`PendingCreate`\" />\n<parameter name=\"in-maint\" value=\"true\" />\n<parameter name=\"prov-status\" value=\"`PREPROV`\" />\n","comments":"","outputs":1,"x":1588.3331718444824,"y":4641.66670358181,"z":"c281e2a0.b9793","wires":[["79f212bd.d038bc","c592d914.589c38"]]},{"id":"5da7dd5d.f1de64","type":"switchNode","name":"switch input cloud-owner","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-request-input.cloud-owner`'>\n","comments":"","outputs":1,"x":524.0475234985352,"y":271.90473306179047,"z":"c281e2a0.b9793","wires":[["21814d13.e07672","ba916891.51c8d8"]]},{"id":"21814d13.e07672","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":707.3808975219727,"y":241.90472161769867,"z":"c281e2a0.b9793","wires":[["48e33c5f.92d444"]]},{"id":"ba916891.51c8d8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":707.1428031921387,"y":282.8572152853012,"z":"c281e2a0.b9793","wires":[["9fe4b9db.e85ac8"]]},{"id":"48e33c5f.92d444","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":842.3808517456055,"y":240.23806130886078,"z":"c281e2a0.b9793","wires":[[]]},{"id":"9fe4b9db.e85ac8","type":"set","name":"set prop.cloud-region.cloud-owner","xml":"<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$vf-module-topology-operation-input.vf-module-request-input.cloud-owner`' />\n","comments":"","x":924.0475082397461,"y":281.90474259853363,"z":"c281e2a0.b9793","wires":[]},{"id":"e039d8f6.47eef8","type":"call","name":"call self-serve-vf-module-forking-logic","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vf-module-forking-logic' mode='sync' >\n","comments":"","outputs":1,"x":555.634895324707,"y":823.2980636358261,"z":"c281e2a0.b9793","wires":[[]]},{"id":"bf338b07.458e28","type":"switchNode","name":"switch ss.self-serve-flag","xml":"<switch test=\"`$ss.self-serve-flag`\">\n","comments":"","outputs":1,"x":513.7776336669922,"y":1050.298132300377,"z":"c281e2a0.b9793","wires":[["9ccc3f87.c2f8f","21fed37d.10b52c"]]},{"id":"9ccc3f87.c2f8f","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":734.4918327331543,"y":1167.8690313100815,"z":"c281e2a0.b9793","wires":[["53d50dfc.924b64"]]},{"id":"21fed37d.10b52c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":735.0632858276367,"y":926.726668715477,"z":"c281e2a0.b9793","wires":[["9c7519a.27013e8"]]}]
\ No newline at end of file +[
+ {
+ "id": "3c926793.88f8e8",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 112,
+ "y": 77.02430057525635,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8e22c419.c359c8"
+ ]
+ ]
+ },
+ {
+ "id": "8e22c419.c359c8",
+ "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='1-4-2-20181108R1'>",
+ "outputs": 1,
+ "x": 225.85713577270508,
+ "y": 116.83383846282959,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5f18dcaf.1733e4"
+ ]
+ ]
+ },
+ {
+ "id": "5f18dcaf.1733e4",
+ "type": "method",
+ "name": "method vf-module-topology-operation-assign",
+ "xml": "<method rpc='vf-module-topology-operation-assign' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 225.42862701416016,
+ "y": 157.02430057525635,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "bfee1c79.25f4d"
+ ]
+ ]
+ },
+ {
+ "id": "fd852c3d.9d104",
+ "type": "comment",
+ "name": "vf-module-topology-operation-assign",
+ "info": "",
+ "comments": "",
+ "x": 517.3210983276367,
+ "y": 20,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "5621ecb6.141394",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 517.1905097961426,
+ "y": 332.548122882843,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "27ea8761.a38d7",
+ "39338a50.ba0c9e"
+ ]
+ ]
+ },
+ {
+ "id": "27ea8761.a38d7",
+ "type": "outcome",
+ "name": "CreateVfModuleInstance",
+ "xml": "<outcome value='CreateVfModuleInstance'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 779.2381248474121,
+ "y": 309.6910090446472,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e24ff94b.792af8"
+ ]
+ ]
+ },
+ {
+ "id": "39338a50.ba0c9e",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 722.9047698974609,
+ "y": 355.07199811935425,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d1fcb1c9.df0ba"
+ ]
+ ]
+ },
+ {
+ "id": "e24ff94b.792af8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 969.0952892303467,
+ "y": 309.69104051589966,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d1fcb1c9.df0ba",
+ "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=\"If svc-action is 'assign' then request-action must be 'CreateVfModuleInstance'\" />\n",
+ "comments": "",
+ "x": 987.9047775268555,
+ "y": 355.40531063079834,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "b13c4350.370938",
+ "type": "get-resource",
+ "name": "get-resource VF_MODULE_MODEL",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODULE_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-module-model'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 564.5237770080566,
+ "y": 423.6910729408264,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "571b8345.3afedc",
+ "dee1e46d.9ae7c8"
+ ]
+ ]
+ },
+ {
+ "id": "e0e2e8ab.4a9f9",
+ "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=\"`'No model found for VF module customization UUID ' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`\" />\n",
+ "comments": "",
+ "x": 1005.9521980285645,
+ "y": 448.1195454597473,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "571b8345.3afedc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 830.3094673156738,
+ "y": 404.0719037055969,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a50bc128.476618"
+ ]
+ ]
+ },
+ {
+ "id": "dee1e46d.9ae7c8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 838.8808975219727,
+ "y": 448.3576169013977,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e0e2e8ab.4a9f9"
+ ]
+ ]
+ },
+ {
+ "id": "a50bc128.476618",
+ "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=\"Error reading VF_MODULE_MODEL table\" />\n",
+ "comments": "",
+ "x": 1005.309398651123,
+ "y": 403.21480417251587,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "fe2663d3.ad286",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 559.6190414428711,
+ "y": 632.2624082565308,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "c2c56698.b84c38",
+ "69d3fcd2.10cc54"
+ ]
+ ]
+ },
+ {
+ "id": "c2c56698.b84c38",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 800.3333129882812,
+ "y": 609.4051485061646,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "71fe3c04.e95c14"
+ ]
+ ]
+ },
+ {
+ "id": "69d3fcd2.10cc54",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 800.0951538085938,
+ "y": 650.3576669692993,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f260a284.46dcc"
+ ]
+ ]
+ },
+ {
+ "id": "72f655d6.4f3d74",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 138.19043731689453,
+ "y": 3113.92930662632,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "32d3cb49.a3ac2c",
+ "bd2a2adb.54955",
+ "47c04218.47c91c",
+ "5d68b4f6.9bd994",
+ "4cbe79da.e231f8",
+ "2b324bfd.26e0fc",
+ "ed77dce7.269d88",
+ "62ca20ce.f4db7",
+ "cd265369.c8e4",
+ "4772b1e6.c27368",
+ "533af805.057888",
+ "acb49220.447a5",
+ "7f55025b.b643ec",
+ "87463151.06bbf8",
+ "5dbea689.bf65d8",
+ "b96e4724.95afc",
+ "9aa91724.bae38",
+ "1a40ee60.b28b3a",
+ "beb8db1.da0a8a8",
+ "d321cb9d.153fd8",
+ "ed92ecd.0ad519",
+ "1d19c87b.60a2d",
+ "e7b2dbd5.bd9e",
+ "facd6ff7.1eed9",
+ "f10f9580.1e0308",
+ "e7fac88.832d038",
+ "def45b38.4bd55",
+ "7f309670.a38298",
+ "b80a89b3.da4648",
+ "1781a3e7.247ed4",
+ "69eb61e5.2ebc48"
+ ]
+ ]
+ },
+ {
+ "id": "71fe3c04.e95c14",
+ "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=\"There are no VNFs defined in MD-SAL\" />\n",
+ "comments": "",
+ "x": 966.999927520752,
+ "y": 608.6909036636353,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "f260a284.46dcc",
+ "type": "for",
+ "name": "for each vnf",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 962.3332977294922,
+ "y": 650.0242853164673,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "7deaebc4.ac7614"
+ ]
+ ]
+ },
+ {
+ "id": "7deaebc4.ac7614",
+ "type": "switchNode",
+ "name": "switch service data vnf == input vnf",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1213.6665954589844,
+ "y": 649.6910133361816,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "51d14b17.854d7c"
+ ]
+ ]
+ },
+ {
+ "id": "51d14b17.854d7c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1443.6666069030762,
+ "y": 649.0243263244629,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "77c2e270.ed179c"
+ ]
+ ]
+ },
+ {
+ "id": "b064f8ff.c2b5c",
+ "type": "set",
+ "name": "set vnf-index to -1",
+ "xml": "<set>\n<parameter name='vnf-index' value='-1' />\n",
+ "comments": "",
+ "x": 508.66666412353516,
+ "y": 563.6909074783325,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "d54d91d7.8b3e78",
+ "type": "set",
+ "name": "set vnf-index to idx",
+ "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
+ "comments": "",
+ "x": 1765.3332443237305,
+ "y": 620.024284362793,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "a5f7f097.af8f7",
+ "type": "switchNode",
+ "name": "switch vnf-index",
+ "xml": "<switch test='`$vnf-index`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 498.6666717529297,
+ "y": 700.3576040267944,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "be112994.00d4d8"
+ ]
+ ]
+ },
+ {
+ "id": "be112994.00d4d8",
+ "type": "outcome",
+ "name": "-1",
+ "xml": "<outcome value='-1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 677.000057220459,
+ "y": 699.6909799575806,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "470db32f.b4b60c"
+ ]
+ ]
+ },
+ {
+ "id": "470db32f.b4b60c",
+ "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=\"`'Unable to find VNF ID ' + $vf-module-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'`\" />\n",
+ "comments": "",
+ "x": 836.9999656677246,
+ "y": 699.0242834091187,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "32d3cb49.a3ac2c",
+ "type": "switchNode",
+ "name": "switch vf-module_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 515.3333930969238,
+ "y": 1330.3578004837036,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "7ab560e4.1a6d38",
+ "5f6aa735.a00798"
+ ]
+ ]
+ },
+ {
+ "id": "7ab560e4.1a6d38",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 772.7143478393555,
+ "y": 1297.5005741119385,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a613543c.e2cc28"
+ ]
+ ]
+ },
+ {
+ "id": "a613543c.e2cc28",
+ "type": "set",
+ "name": "set vf-module-index=0",
+ "xml": "<set>\n<parameter name='vf-module-index' value='0' />\n",
+ "comments": "",
+ "x": 960.3333854675293,
+ "y": 1298.1673488616943,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "5f6aa735.a00798",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 773.1428909301758,
+ "y": 1361.7864322662354,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b60fe042.ca106"
+ ]
+ ]
+ },
+ {
+ "id": "da90dded.536778",
+ "type": "set",
+ "name": "set vf-module-index = vf-module_length",
+ "xml": "<set>\n<parameter name='vf-module-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n",
+ "comments": "",
+ "x": 1158.3334312438965,
+ "y": 1341.97682762146,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "d9bea081.a8647",
+ "type": "for",
+ "name": "for each existing VF module",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1117.428524017334,
+ "y": 1386.072057723999,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1df57378.738945"
+ ]
+ ]
+ },
+ {
+ "id": "b60fe042.ca106",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 909.8571701049805,
+ "y": 1361.7863578796387,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "da90dded.536778",
+ "d9bea081.a8647"
+ ]
+ ]
+ },
+ {
+ "id": "1df57378.738945",
+ "type": "switchNode",
+ "name": "switch vf-module-information.vf-module-id == service-data.vnfs.vnf[].vf-modules.vf-module[].vf-module-id",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1621.0476264953613,
+ "y": 1385.6434688568115,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "885ce266.411c5"
+ ]
+ ]
+ },
+ {
+ "id": "885ce266.411c5",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2063.666675567627,
+ "y": 1385.2149200439453,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1d1cc66f.ea78a2"
+ ]
+ ]
+ },
+ {
+ "id": "1d1cc66f.ea78a2",
+ "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=\"`'VF module id ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id\n + ' already exists, and status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.vf-module-level-oper-status.order-status`\" />\n",
+ "comments": "",
+ "x": 2215.5715560913086,
+ "y": 1385.2149066925049,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "a40536a4.046de8",
+ "type": "comment",
+ "name": "make sure this VF module doesn't exist already",
+ "info": "",
+ "comments": "",
+ "x": 1647.4999732971191,
+ "y": 1340.2709608078003,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "bd2a2adb.54955",
+ "type": "set",
+ "name": "set new vf-module_length",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-module-index + 1`' />\n",
+ "comments": "",
+ "x": 525.9999732971191,
+ "y": 1441.3576555252075,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "47c04218.47c91c",
+ "type": "set",
+ "name": "set vf-module-topology data",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-type' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-type`' />\n<parameter name='tmp.vf-module-topology.tenant' value='`$vf-module-topology-operation-input.vf-module-request-input.tenant`' />\n<parameter name='tmp.vf-module-topology.aic-cloud-region' value='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`' />\n",
+ "comments": "",
+ "x": 532.4999923706055,
+ "y": 1553.857762336731,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "b167e5bd.dfc368",
+ "type": "set",
+ "name": "set aic-clli",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli'\n value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n",
+ "comments": "",
+ "x": 1293.4522514343262,
+ "y": 1713.0956888198853,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "5d68b4f6.9bd994",
+ "type": "switchNode",
+ "name": "switch aic-clli",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 492.4999122619629,
+ "y": 1827.0480289459229,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8b438660.c4b018"
+ ]
+ ]
+ },
+ {
+ "id": "8b438660.c4b018",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 637.7856025695801,
+ "y": 1827.0480976104736,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a98150bd.2afc08"
+ ]
+ ]
+ },
+ {
+ "id": "a98150bd.2afc08",
+ "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=\"`'Unable to find aic-clli in AAI for aic-cloud-region ' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`\" />\n",
+ "comments": "",
+ "x": 784.9284629821777,
+ "y": 1826.6195316314697,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "4cbe79da.e231f8",
+ "type": "get-resource",
+ "name": "get-resource cloud region",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"cloud-region\" \n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND \n\t\t cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\"\n pfx='aai.cloud-region' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 531.3571281433105,
+ "y": 1627.1913003921509,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a77893f2.866208",
+ "54a4425.3eaf1bc"
+ ]
+ ]
+ },
+ {
+ "id": "54a4425.3eaf1bc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 745.6033210754395,
+ "y": 1645.3421564102173,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "ba04d0eb.3dae9"
+ ]
+ ]
+ },
+ {
+ "id": "ba04d0eb.3dae9",
+ "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=\"Error retrieving cloud region from AAI\" />\n",
+ "comments": "",
+ "x": 920.6032943725586,
+ "y": 1645.3421926498413,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "a77893f2.866208",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 754.5319175720215,
+ "y": 1603.6278896331787,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "234062c6.8fefc6"
+ ]
+ ]
+ },
+ {
+ "id": "234062c6.8fefc6",
+ "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=\"Cloud region not found in AAI\" />\n",
+ "comments": "",
+ "x": 920.8811950683594,
+ "y": 1602.933466911316,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "77c2e270.ed179c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1592.0000686645508,
+ "y": 647.9440250396729,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d54d91d7.8b3e78",
+ "bfe3038c.a182"
+ ]
+ ]
+ },
+ {
+ "id": "bfe3038c.a182",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 1727.0000343322754,
+ "y": 669.6106109619141,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "904b2f3e.415788",
+ "type": "set",
+ "name": "set from DB",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n value='`$db.vf-module-model.invariant-uuid`' />\n",
+ "comments": "",
+ "x": 906.833251953125,
+ "y": 1868.44402217865,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "2b324bfd.26e0fc",
+ "type": "switchNode",
+ "name": "switch input model-invariant-uuid",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 550.6903266906738,
+ "y": 1891.2684659957886,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "385357de.ea8398",
+ "299c303.4cf2ad"
+ ]
+ ]
+ },
+ {
+ "id": "385357de.ea8398",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 756.3569984436035,
+ "y": 1868.4114294052124,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "904b2f3e.415788"
+ ]
+ ]
+ },
+ {
+ "id": "299c303.4cf2ad",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 757.7855949401855,
+ "y": 1912.6970205307007,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f7953ce0.dfc7c"
+ ]
+ ]
+ },
+ {
+ "id": "f7953ce0.dfc7c",
+ "type": "set",
+ "name": "set from input",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n",
+ "comments": "",
+ "x": 912.0713310241699,
+ "y": 1912.1255927085876,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "733eafb4.30c8d",
+ "type": "set",
+ "name": "set from DB",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n value='`$db.vf-module-model.uuid`' />\n",
+ "comments": "",
+ "x": 907.7855224609375,
+ "y": 1956.9826984405518,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "ed77dce7.269d88",
+ "type": "switchNode",
+ "name": "switch input model-uuid",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 523.3093452453613,
+ "y": 1979.8072032928467,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9008b525.6a4788",
+ "f3c2a46.0aaa8d8"
+ ]
+ ]
+ },
+ {
+ "id": "9008b525.6a4788",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 757.3093185424805,
+ "y": 1956.950135231018,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "733eafb4.30c8d"
+ ]
+ ]
+ },
+ {
+ "id": "f3c2a46.0aaa8d8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 758.7379150390625,
+ "y": 2001.2357263565063,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "c4a21df.1175a6"
+ ]
+ ]
+ },
+ {
+ "id": "c4a21df.1175a6",
+ "type": "set",
+ "name": "set from input",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n",
+ "comments": "",
+ "x": 913.0236511230469,
+ "y": 2000.6642985343933,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "1f38b7fe.ab1b8",
+ "type": "set",
+ "name": "set from DB",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n value='`$db.vf-module-model.version`' />\n",
+ "comments": "",
+ "x": 904.9284553527832,
+ "y": 2045.8399057388306,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "62ca20ce.f4db7",
+ "type": "switchNode",
+ "name": "switch input model-version",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 531.4522171020508,
+ "y": 2068.6643505096436,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "41183df5.95a124",
+ "87e93be5.4c098"
+ ]
+ ]
+ },
+ {
+ "id": "41183df5.95a124",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 754.4522018432617,
+ "y": 2045.807312965393,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1f38b7fe.ab1b8"
+ ]
+ ]
+ },
+ {
+ "id": "87e93be5.4c098",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 755.8807983398438,
+ "y": 2090.0929040908813,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5cce1634.662ce8"
+ ]
+ ]
+ },
+ {
+ "id": "5cce1634.662ce8",
+ "type": "set",
+ "name": "set from input",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\n",
+ "comments": "",
+ "x": 910.1665344238281,
+ "y": 2089.5214762687683,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "c2177442.81abc",
+ "type": "set",
+ "name": "set from DB",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n value='`$db.vf-module-model.name`' />\n",
+ "comments": "",
+ "x": 904.9284553527832,
+ "y": 2132.9827280044556,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "cd265369.c8e4",
+ "type": "switchNode",
+ "name": "switch input model-name",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 526.4522171020508,
+ "y": 2155.8071727752686,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "68b6f8a8.a68c3",
+ "4f8262ee.1ebcac"
+ ]
+ ]
+ },
+ {
+ "id": "68b6f8a8.a68c3",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 754.4522018432617,
+ "y": 2132.950135231018,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "c2177442.81abc"
+ ]
+ ]
+ },
+ {
+ "id": "4f8262ee.1ebcac",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 755.8807983398438,
+ "y": 2177.2357263565063,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "2f3b60e4.144198"
+ ]
+ ]
+ },
+ {
+ "id": "2f3b60e4.144198",
+ "type": "set",
+ "name": "set from input",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`' />\n",
+ "comments": "",
+ "x": 910.1665344238281,
+ "y": 2176.6642985343933,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "4772b1e6.c27368",
+ "type": "set",
+ "name": "set model-customization-uuid",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-customization-uuid'\n value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n",
+ "comments": "",
+ "x": 540.9045524597168,
+ "y": 2228.316162109375,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "533af805.057888",
+ "type": "set",
+ "name": "set vf-module-id",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id'\n value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n",
+ "comments": "",
+ "x": 494.09519958496094,
+ "y": 1497.0393381118774,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "acb49220.447a5",
+ "type": "for",
+ "name": "for each cloud-region relationship",
+ "xml": "<for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 553.6109428405762,
+ "y": 1715.6979837417603,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "59afb518.40828c"
+ ]
+ ]
+ },
+ {
+ "id": "59afb518.40828c",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 801.2894859313965,
+ "y": 1715.4479131698608,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5978af5d.b1d4a"
+ ]
+ ]
+ },
+ {
+ "id": "5978af5d.b1d4a",
+ "type": "outcome",
+ "name": "complex",
+ "xml": "<outcome value='complex'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 970.7538070678711,
+ "y": 1714.8407354354858,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "7b948c9e.d27a6c"
+ ]
+ ]
+ },
+ {
+ "id": "2a23b2e8.9b4796",
+ "type": "execute",
+ "name": "split related-link",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='aai-uid-split' />\n <parameter name='original_string' value='`$aai.cloud-region.relationship-list.relationship[$idx].related-link`' />\n <parameter name='regex' value='/' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1310.848964691162,
+ "y": 1669.269310951233,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7b948c9e.d27a6c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1130.51566696167,
+ "y": 1715.9360990524292,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "2a23b2e8.9b4796",
+ "d28b8bb2.cca418",
+ "b167e5bd.dfc368"
+ ]
+ ]
+ },
+ {
+ "id": "d28b8bb2.cca418",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 1280.5156288146973,
+ "y": 1759.269395828247,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "c4f07890.7e2328",
+ "type": "execute",
+ "name": "execute PropertiesNode",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 531.0476226806641,
+ "y": 186.5481081008911,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "beb8db1.da0a8a8",
+ "type": "set",
+ "name": "set order-status to PendingCreate",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status'\n value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",
+ "comments": "",
+ "x": 436.2622375488281,
+ "y": 7324.904296875,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "ed92ecd.0ad519",
+ "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": 375.8335418701172,
+ "y": 7438.522626876831,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "1a40ee60.b28b3a",
+ "type": "set",
+ "name": "copy input data",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.sdnc-request-header.'\n value='$vf-module-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.request-information.'\n value='$vf-module-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.'\n value='$vf-module-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.'\n value='$vf-module-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.'\n value='$vf-module-topology-operation-input.vf-module-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.'\n value='$vf-module-topology-operation-input.vf-module-request-input.' />\n\n",
+ "comments": "",
+ "x": 392.11924743652344,
+ "y": 7181.252753674984,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "9aa91724.bae38",
+ "type": "set",
+ "name": "copy vf-module-topology data",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.' value='tmp.vf-module-topology.' />\n",
+ "comments": "",
+ "x": 437.00025177001953,
+ "y": 7133.038265645504,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "d321cb9d.153fd8",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmodule.log' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 370.71449279785156,
+ "y": 7390.752443313599,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "87463151.06bbf8",
+ "type": "save",
+ "name": "update vf-module",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vf-module\"\n key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"vf-module-name\" value=\"`$tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name`\" />\n<parameter name=\"model-invariant-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vf-module-object-path`\" />\n<parameter name=\"automated-assignment\" value=\"`$automated-assignment`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 456.1429786682129,
+ "y": 4335.039919495583,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "87a0c83.d4f18b8",
+ "2196c18e.80b246"
+ ]
+ ]
+ },
+ {
+ "id": "e5deac0d.5b71f8",
+ "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=\"`'No vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n",
+ "comments": "",
+ "x": 961.1906547546387,
+ "y": 4369.801350176334,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "87a0c83.d4f18b8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 631.2146186828613,
+ "y": 4303.420541405678,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "c70cad3e.594bf8"
+ ]
+ ]
+ },
+ {
+ "id": "2196c18e.80b246",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 639.7859916687012,
+ "y": 4372.039631426334,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1eb8d0e0.ac8f6f"
+ ]
+ ]
+ },
+ {
+ "id": "d82a525d.d6db7",
+ "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=\"Error updating vf-module in AAI\" />\n",
+ "comments": "",
+ "x": 966.2145729064941,
+ "y": 4321.564098000526,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "7f55025b.b643ec",
+ "type": "set",
+ "name": "set vf-module-object-path",
+ "xml": "<set>\n<parameter name='vf-module-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "comments": "",
+ "x": 479.80978775024414,
+ "y": 4210.564148545265,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "79853c6f.4b0794",
+ "type": "save",
+ "name": "save vf-module relationships",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vf-module:relationship-list\"\n key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1249.8335342407227,
+ "y": 5893.192313909531,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "ac4bfc2f.5cef8",
+ "85becea2.445cd8"
+ ]
+ ]
+ },
+ {
+ "id": "ac4bfc2f.5cef8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1469.666877746582,
+ "y": 5864.064058065414,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f57dfbe7.74b008"
+ ]
+ ]
+ },
+ {
+ "id": "85becea2.445cd8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1478.238410949707,
+ "y": 5916.683202505112,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "85b716e7.f0d18"
+ ]
+ ]
+ },
+ {
+ "id": "d4f9dca3.c75278",
+ "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=\"Error updating vf-module relationships in AAI\" />\n",
+ "comments": "",
+ "x": 1804.6670112609863,
+ "y": 5883.873954534531,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "5dbea689.bf65d8",
+ "type": "for",
+ "name": "for each vm-type",
+ "xml": "<for silentFailure='true' index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 429.50025939941406,
+ "y": 5658.5258667469025,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f3590468.ca37a8"
+ ]
+ ]
+ },
+ {
+ "id": "7375d6bd.7dd03",
+ "type": "for",
+ "name": "for each vm-network",
+ "xml": "<for silentFailure='true' index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 826.5002708435059,
+ "y": 6077.192698955536,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9c50ae11.ecd5d8"
+ ]
+ ]
+ },
+ {
+ "id": "da118248.b8eea8",
+ "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=\"`'No l3-network found in AAI for network ID '\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id`\" />\n",
+ "comments": "",
+ "x": 1806.5003852844238,
+ "y": 5933.858495473862,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "b96e4724.95afc",
+ "type": "for",
+ "name": "for each vm-type",
+ "xml": "<for silentFailure='true' index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 403.92879486083984,
+ "y": 7025.571922242641,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "3aa89432.ca7a1c"
+ ]
+ ]
+ },
+ {
+ "id": "3aa89432.ca7a1c",
+ "type": "for",
+ "name": "for each vm",
+ "xml": "<for index='vm-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 598.928825378418,
+ "y": 7024.904930055141,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8a1e25bc.ee0138"
+ ]
+ ]
+ },
+ {
+ "id": "f7264697.889458",
+ "type": "save",
+ "name": "save VIPR_CONFIGURATION",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"INSERT INTO VIPR_CONFIGURATION (vnf_id, vnf_name, ecomp_service_instance_id, vm_name, cloud_region_id, cloud_owner) VALUES ( $service-data.vnfs.vnf[$vnf-index].vnf-id , $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name , $service-data.service-information.service-instance-id , $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index] , $tmp.vf-module-topology.aic-cloud-region , $prop.cloud-region.cloud-owner )\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 990.5955276489258,
+ "y": 7047.57258027792,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "ebadf32a.3c0bf"
+ ]
+ ]
+ },
+ {
+ "id": "903c2202.9792d",
+ "type": "comment",
+ "name": "Not a failure",
+ "info": "",
+ "comments": "",
+ "x": 1510.5954284667969,
+ "y": 7047.572585046291,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "ebadf32a.3c0bf",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1200.5955123901367,
+ "y": 7047.572730004787,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5ca4a5a3.8a7004"
+ ]
+ ]
+ },
+ {
+ "id": "5ca4a5a3.8a7004",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1343.928955078125,
+ "y": 7047.572567880154,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d3f1c108.98d52",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1373.9290771484375,
+ "y": 6998.904281556606,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "cf4b2a0c.51aca"
+ ]
+ ]
+ },
+ {
+ "id": "2661f5f7.f49d62",
+ "type": "comment",
+ "name": "Not a failure",
+ "info": "",
+ "comments": "",
+ "x": 1697.2621307373047,
+ "y": 6997.2381038069725,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "cf4b2a0c.51aca",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1519.929012298584,
+ "y": 6998.904914796352,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8a1e25bc.ee0138",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 767.2622184753418,
+ "y": 7023.904774606228,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b143aaa7.b261e",
+ "f7264697.889458"
+ ]
+ ]
+ },
+ {
+ "id": "b143aaa7.b261e",
+ "type": "delete",
+ "name": "delete any pre-existing records in VIPR_CONFIGURATION",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='DELETE from VIPR_CONFIGURATION WHERE vnf_id = $service-data.vnfs.vnf[$vnf-index].vnf-id\n AND ecomp_service_instance_id = $service-data.service-information.service-instance-id\n AND vm_name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1080.5955429077148,
+ "y": 6999.238914430141,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d3f1c108.98d52"
+ ]
+ ]
+ },
+ {
+ "id": "c70cad3e.594bf8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 789.500186920166,
+ "y": 4303.191212296486,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d82a525d.d6db7",
+ "8a1998a9.fb5c4"
+ ]
+ ]
+ },
+ {
+ "id": "1eb8d0e0.ac8f6f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 790.5001029968262,
+ "y": 4369.857502520084,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e5deac0d.5b71f8",
+ "8a1998a9.fb5c4"
+ ]
+ ]
+ },
+ {
+ "id": "f57dfbe7.74b008",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1638.1668815612793,
+ "y": 5863.858327627182,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d4f9dca3.c75278",
+ "751caeb9.f5faf"
+ ]
+ ]
+ },
+ {
+ "id": "85b716e7.f0d18",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1633.1668815612793,
+ "y": 5916.85817027092,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "da118248.b8eea8",
+ "751caeb9.f5faf"
+ ]
+ ]
+ },
+ {
+ "id": "9c7304a7.47b438",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get preload-list",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value=\"`$prop.controller.url + $prop.restapi.preloadinformation + $vf-module-topology-operation-input.vf-module-request-input.vf-module-name + '/vf-module'`\" />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-preload\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 975.3333778381348,
+ "y": 2373.1915349960327,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "688ed38d.1404a4",
+ "97bc7502.9be918"
+ ]
+ ]
+ },
+ {
+ "id": "688ed38d.1404a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1238.6666933695474,
+ "y": 2336.524751345316,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5a744c0f.0a917c"
+ ]
+ ]
+ },
+ {
+ "id": "97bc7502.9be918",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1241.9999809265137,
+ "y": 2411.5247468948364,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "432a7e86.1cf1f"
+ ]
+ ]
+ },
+ {
+ "id": "5a744c0f.0a917c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1400.333381652832,
+ "y": 2334.8580360412598,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e468489c.39809"
+ ]
+ ]
+ },
+ {
+ "id": "432a7e86.1cf1f",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1396.9999885559082,
+ "y": 2411.5245885849,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "3588e36f.27b7f4"
+ ]
+ ]
+ },
+ {
+ "id": "e468489c.39809",
+ "type": "switchNode",
+ "name": "switch mdsal-preload.response-code",
+ "xml": "<switch test='`$mdsal-preload.response-code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1628.6666831970215,
+ "y": 2334.8580770492554,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "62edebed.7913a4",
+ "37d8f344.138aec"
+ ]
+ ]
+ },
+ {
+ "id": "62edebed.7913a4",
+ "type": "outcome",
+ "name": "404 (not found)",
+ "xml": "<outcome value='404'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1880.3334197998047,
+ "y": 2298.191451072693,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "eae1dfc6.c9a018"
+ ]
+ ]
+ },
+ {
+ "id": "eae1dfc6.c9a018",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-operation-assign-no-preload",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-assign-no-preload' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2276.9998893737793,
+ "y": 2296.5245790481567,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8901225d.847b7"
+ ]
+ ]
+ },
+ {
+ "id": "8901225d.847b7",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2647.0000381469727,
+ "y": 2294.858115196228,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "aa023fe5.47b5f8"
+ ]
+ ]
+ },
+ {
+ "id": "d0aa2f4d.891c28",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 2955.3334159851074,
+ "y": 2326.5248517990112,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "37d8f344.138aec",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1855.3334999084473,
+ "y": 2354.8579416275024,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e944765.ab28a88"
+ ]
+ ]
+ },
+ {
+ "id": "bcf4c56.2e632b8",
+ "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=\"Error retrieving preload-information\" />\n",
+ "comments": "",
+ "x": 2168.666404724121,
+ "y": 2371.52436542511,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "3588e36f.27b7f4",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-operation-assign-preload",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-assign-preload' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1760.3332786560059,
+ "y": 2413.191336631775,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "20ee04ba.8175bc"
+ ]
+ ]
+ },
+ {
+ "id": "20ee04ba.8175bc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2116.000141143799,
+ "y": 2411.5249547958374,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "589f1683.8c95c"
+ ]
+ ]
+ },
+ {
+ "id": "b1df2727.b9c3d",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 2424.333393096924,
+ "y": 2433.191849708557,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "f3590468.ca37a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 620.0003280639648,
+ "y": 5659.35910153389,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "7375d6bd.7dd03",
+ "d5512709.6a25b8"
+ ]
+ ]
+ },
+ {
+ "id": "d5512709.6a25b8",
+ "type": "for",
+ "name": "for each vnfc",
+ "xml": "<for silentFailure='true' index='vnfc-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 871.0003776550293,
+ "y": 4864.025192737579,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "753035d1.1e8274"
+ ]
+ ]
+ },
+ {
+ "id": "ce29a815.f5683",
+ "type": "save",
+ "name": "save vnfc to A&AI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vnfc\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\" >\n<parameter name=\"vnfc-name\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name`\" />\n<parameter name=\"nfc-naming-code\" value=\"`$tmp.nfc-naming-code`\" />\n<parameter name=\"nfc-function\" value=\"`$tmp.nfc-function`\" />\n<parameter name=\"model-invariant-id\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].model-customization-uuid`\" />\n<parameter name=\"orchestration-status\" value=\"`PendingCreate`\" />\n<parameter name=\"in-maint\" value=\"true\" />\n<parameter name=\"prov-status\" value=\"`PREPROV`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1597.00044631958,
+ "y": 4672.3591232299805,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b05fd296.8c44d8",
+ "9ce78c9c.21d2e"
+ ]
+ ]
+ },
+ {
+ "id": "753035d1.1e8274",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1039.3336791992188,
+ "y": 4864.692019939423,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "2b20b1ce.c729ce",
+ "d7c01db4.00c9a",
+ "2fb493e6.57a1c4",
+ "8ca3ab85.032598",
+ "805bb33d.dc18f",
+ "57662986.d12c8"
+ ]
+ ]
+ },
+ {
+ "id": "b05fd296.8c44d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1788.0004844665527,
+ "y": 4624.692457199097,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f1e503ea.34a2d8"
+ ]
+ ]
+ },
+ {
+ "id": "d42c0b98.75f36",
+ "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=\"Error saving vnfc to AAI\" />\n",
+ "comments": "",
+ "x": 2127.0006370544434,
+ "y": 4658.835712790489,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "f1e503ea.34a2d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1953.1671714782715,
+ "y": 4638.820290505886,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d42c0b98.75f36",
+ "6cb8c914.ed3b6"
+ ]
+ ]
+ },
+ {
+ "id": "2fb493e6.57a1c4",
+ "type": "save",
+ "name": "save vnfc relationships",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vnfc:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/generic-vnfs/generic-vnf/' +\n $vf-module-topology-operation-input.vnf-information.vnf-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"vf-module\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/generic-vnfs/generic-vnf/' +\n $vf-module-topology-operation-input.vnf-information.vnf-id +\n '/vf-modules/vf-module/' +\n $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1263.9049644470215,
+ "y": 4772.978354930878,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "90db0abc.901b8",
+ "5dbb78a0.db6928"
+ ]
+ ]
+ },
+ {
+ "id": "29cef8c8.08702",
+ "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=\"Error updating vnfc relationships in AAI\" />\n",
+ "comments": "",
+ "x": 1773.904899597168,
+ "y": 4764.64519071579,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "ee073caa.2c8978",
+ "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=\"Not-found error updating vnfc relationships\" />\n",
+ "comments": "",
+ "x": 1769.0718078613281,
+ "y": 4816.296397686005,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "60b5b7f4.1931b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1595.7381553649902,
+ "y": 4746.29597902298,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "29cef8c8.08702",
+ "6cb8c914.ed3b6"
+ ]
+ ]
+ },
+ {
+ "id": "1c2653f1.974004",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1595.7382316589355,
+ "y": 4799.295737743378,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "ee073caa.2c8978",
+ "6cb8c914.ed3b6"
+ ]
+ ]
+ },
+ {
+ "id": "90db0abc.901b8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1438.9050407409668,
+ "y": 4746.311648845673,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "60b5b7f4.1931b"
+ ]
+ ]
+ },
+ {
+ "id": "5dbb78a0.db6928",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1447.4765739440918,
+ "y": 4798.93079328537,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1c2653f1.974004"
+ ]
+ ]
+ },
+ {
+ "id": "2b20b1ce.c729ce",
+ "type": "for",
+ "name": "for each vnfc-network-role",
+ "xml": "<for silentFailure='true' index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1261.3810844421387,
+ "y": 5189.834763050079,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8ef35028.d3c7d8"
+ ]
+ ]
+ },
+ {
+ "id": "1d19c87b.60a2d",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmoduleb.log' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 481.9999885559082,
+ "y": 2497.73858499527,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c587555a.9764c8",
+ "type": "for",
+ "name": "for each vnfc-subnetwork-role",
+ "xml": "<for silentFailure='true' index='subnet-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1717.3336219787598,
+ "y": 5153.025196552277,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "646ce656.488b28"
+ ]
+ ]
+ },
+ {
+ "id": "646ce656.488b28",
+ "type": "for",
+ "name": "for each vnfc-address-family",
+ "xml": "<for silentFailure='true' index='address-family-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1984.6669654846191,
+ "y": 5152.025684833527,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "830c0220.91b9c"
+ ]
+ ]
+ },
+ {
+ "id": "cdc035b3.67e6e8",
+ "type": "for",
+ "name": "for each vnfc-ip-address",
+ "xml": "<for silentFailure='true' index='address-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2416.666576385498,
+ "y": 5218.691384315491,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4ac2f856.4d21a"
+ ]
+ ]
+ },
+ {
+ "id": "830c0220.91b9c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2195.666736602783,
+ "y": 5152.025141239166,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "dcce10c4.7be118",
+ "cdc035b3.67e6e8"
+ ]
+ ]
+ },
+ {
+ "id": "dcce10c4.7be118",
+ "type": "set",
+ "name": "set tmp.address-family",
+ "xml": "<set>\n<parameter name='tmp.address-family'\n value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-address-family`' />\n",
+ "comments": "",
+ "x": 2415.667064666748,
+ "y": 5072.025038719177,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "4ac2f856.4d21a",
+ "type": "switchNode",
+ "name": "switch address family",
+ "xml": "<switch test='`$tmp.address-family`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2655.6666679382324,
+ "y": 5217.025206565857,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d2b5d9a8.4fd5e8",
+ "24a90faa.98e37"
+ ]
+ ]
+ },
+ {
+ "id": "d2b5d9a8.4fd5e8",
+ "type": "outcome",
+ "name": "ipv4",
+ "xml": "<outcome value='ipv4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2852.809673309326,
+ "y": 5120.596467018127,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "422e7141.76707"
+ ]
+ ]
+ },
+ {
+ "id": "24a90faa.98e37",
+ "type": "outcome",
+ "name": "ipv6",
+ "xml": "<outcome value='ipv6'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2850.4287452697754,
+ "y": 5300.358498573303,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "644b913f.522e68"
+ ]
+ ]
+ },
+ {
+ "id": "63f4b67.4ec08c8",
+ "type": "comment",
+ "name": "Fixed IPs",
+ "info": "",
+ "comments": "",
+ "x": 1734.3336372375488,
+ "y": 5114.692573547363,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "1637640f.3b1ca4",
+ "type": "save",
+ "name": "save l3-interface-ipv4-address-list object to A&AI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-interface-ipv4-address-list\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\n\t AND l3-interface-ipv4-address-list.l3-interface-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address\" >\n<parameter name=\"l3-interface-ipv4-address\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address`\" />\n<parameter name=\"l3-interface-ipv4-prefix-length\" value=\"32\" />\n<parameter name=\"is-floating\" value=\"false\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3296.1428031921387,
+ "y": 5068.929546991985,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "516f7849.a1f358"
+ ]
+ ]
+ },
+ {
+ "id": "422e7141.76707",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3002.809673309326,
+ "y": 5120.59638563792,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1637640f.3b1ca4",
+ "d964b923.e557d"
+ ]
+ ]
+ },
+ {
+ "id": "29157e1f.b307d2",
+ "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=\"Error creating l3-interface-ipv4-address-list object in AAI\" />\n",
+ "comments": "",
+ "x": 3879.4763221740723,
+ "y": 5087.263206164043,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "8892b8a2.cfbe48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3709.642677307129,
+ "y": 5068.914039293926,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "29157e1f.b307d2",
+ "ab19f58c.bd384"
+ ]
+ ]
+ },
+ {
+ "id": "516f7849.a1f358",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3552.8095626831055,
+ "y": 5068.929709116619,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8892b8a2.cfbe48"
+ ]
+ ]
+ },
+ {
+ "id": "d964b923.e557d",
+ "type": "save",
+ "name": "save l3-interface-ipv4-address-list relationships",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"l3-interface-ipv4-address-list:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\n\t AND l3-interface-ipv4-address-list.l3-interface-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].network-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"subnet\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].network-id +\n '/subnets/subnet/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].subnet-id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3291.1430473327637,
+ "y": 5167.262965838116,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8ae58a30.bea5e",
+ "c00d26fd.0b7fa8"
+ ]
+ ]
+ },
+ {
+ "id": "a4c2dc75.a86138",
+ "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=\"Error updating l3-interface-ipv4-address-list relationships in AAI\" />\n",
+ "comments": "",
+ "x": 3877.809429168701,
+ "y": 5158.929637591045,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "623384cf.019e64",
+ "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=\"Not-found error updating l3-interface-ipv4-address-list relationships\" />\n",
+ "comments": "",
+ "x": 3877.976291656494,
+ "y": 5208.914095560711,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "c225d55b.e00f4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3711.309299468994,
+ "y": 5138.914010683697,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a4c2dc75.a86138",
+ "ab19f58c.bd384"
+ ]
+ ]
+ },
+ {
+ "id": "fa08395c.d3bfd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3711.3093757629395,
+ "y": 5191.913769404095,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "623384cf.019e64",
+ "ab19f58c.bd384"
+ ]
+ ]
+ },
+ {
+ "id": "8ae58a30.bea5e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3554.4761848449707,
+ "y": 5138.92968050639,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "c225d55b.e00f4"
+ ]
+ ]
+ },
+ {
+ "id": "c00d26fd.0b7fa8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3563.0477180480957,
+ "y": 5191.548824946087,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "fa08395c.d3bfd"
+ ]
+ ]
+ },
+ {
+ "id": "9f97d2b1.490b88",
+ "type": "save",
+ "name": "save l3-interface-ipv6-address-list object to A&AI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-interface-ipv6-address-list\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\n\t AND l3-interface-ipv6-address-list.l3-interface-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address\" >\n<parameter name=\"l3-interface-ipv6-address\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address`\" />\n<parameter name=\"l3-interface-ipv6-prefix-length\" value=\"128\" />\n<parameter name=\"is-floating\" value=\"false\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3294.9525413513184,
+ "y": 5247.977602958679,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "575beeb7.db0eb8"
+ ]
+ ]
+ },
+ {
+ "id": "644b913f.522e68",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3001.619411468506,
+ "y": 5299.644441604614,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9f97d2b1.490b88",
+ "1c9488a1.dbf7bf"
+ ]
+ ]
+ },
+ {
+ "id": "1b3c364b.f4083a",
+ "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=\"Error creating l3-interface-ipv6-address-list object in AAI\" />\n",
+ "comments": "",
+ "x": 3878.286060333252,
+ "y": 5266.311262130737,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "55bcda47.670024",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3708.4524154663086,
+ "y": 5247.96209526062,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1b3c364b.f4083a",
+ "ab19f58c.bd384"
+ ]
+ ]
+ },
+ {
+ "id": "575beeb7.db0eb8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3551.619300842285,
+ "y": 5247.977765083313,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "55bcda47.670024"
+ ]
+ ]
+ },
+ {
+ "id": "1c9488a1.dbf7bf",
+ "type": "save",
+ "name": "save l3-interface-ipv6-address-list relationships",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"l3-interface-ipv6-address-list:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\n\t AND l3-interface-ipv6-address-list.l3-interface-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[$address-index].vnfc-ip-address\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].network-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"subnet\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].network-id +\n '/subnets/subnet/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].subnet-id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3289.9527854919434,
+ "y": 5346.31102180481,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "3f5a76d4.d0b6ca",
+ "a74ee1d6.e4ad68"
+ ]
+ ]
+ },
+ {
+ "id": "b0e3be9c.c1618",
+ "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=\"Error updating l3-interface-ipv6-address-list relationships in AAI\" />\n",
+ "comments": "",
+ "x": 3876.619167327881,
+ "y": 5337.977693557739,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "66075d54.cd658c",
+ "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=\"Not-found error updating l3-interface-ipv6-address-list relationships\" />\n",
+ "comments": "",
+ "x": 3880.1193885803223,
+ "y": 5384.628710031509,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "24ecf111.9044a6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3710.119037628174,
+ "y": 5317.962066650391,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b0e3be9c.c1618",
+ "ab19f58c.bd384"
+ ]
+ ]
+ },
+ {
+ "id": "1cf894fa.a3757b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3710.119113922119,
+ "y": 5370.961825370789,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "66075d54.cd658c",
+ "ab19f58c.bd384"
+ ]
+ ]
+ },
+ {
+ "id": "3f5a76d4.d0b6ca",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3553.2859230041504,
+ "y": 5317.9777364730835,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "24ecf111.9044a6"
+ ]
+ ]
+ },
+ {
+ "id": "a74ee1d6.e4ad68",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3561.8574562072754,
+ "y": 5370.596880912781,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1cf894fa.a3757b"
+ ]
+ ]
+ },
+ {
+ "id": "9c50ae11.ecd5d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1016.3335914611816,
+ "y": 6076.692138195038,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f765dfab.5a8ab8",
+ "79853c6f.4b0794",
+ "7d3563ad.bafe6c",
+ "eb32fc41.713248"
+ ]
+ ]
+ },
+ {
+ "id": "be8fcb49.a0ce6",
+ "type": "for",
+ "name": "for each vnfc",
+ "xml": "<for silentFailure='true' index='vnfc-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1664.3337669372559,
+ "y": 6199.025886058807,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "bc8c9230.4f5cf8"
+ ]
+ ]
+ },
+ {
+ "id": "18f68602.60a112",
+ "type": "save",
+ "name": "save vip-ipv4-address-list object to A&AI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vip-ipv4-address-list\" \n\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv4-address-list.vip-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4[$ipv4-index]\" >\n<parameter name=\"vip-ipv4-address\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4[$ipv4-index]`\" />\n<parameter name=\"vip-ipv4-prefix-length\" value=\"32\" />\n<parameter name=\"is-floating\" value=\"false\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1747.3336219787598,
+ "y": 6030.358897686005,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "15b4c37c.7ee625",
+ "f6385911.c3478"
+ ]
+ ]
+ },
+ {
+ "id": "7d3563ad.bafe6c",
+ "type": "for",
+ "name": "for each floating ipv4 address",
+ "xml": "<for silentFailure='true' index='ipv4-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1255.3336143493652,
+ "y": 6088.358970165253,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "643639b2.a807b8"
+ ]
+ ]
+ },
+ {
+ "id": "643639b2.a807b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1481.3336143493652,
+ "y": 6086.358970165253,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "18f68602.60a112",
+ "79481073.dabf6",
+ "be8fcb49.a0ce6"
+ ]
+ ]
+ },
+ {
+ "id": "4f4eea49.69364c",
+ "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=\"Error saving vip-ipv4-address-list in AAI\" />\n",
+ "comments": "",
+ "x": 2309.3336219787598,
+ "y": 6020.358897686005,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "87cb782b.0a68b8",
+ "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=\"Not-found error saving vip-ipv4-address-list\" />\n",
+ "comments": "",
+ "x": 2309.5004844665527,
+ "y": 6070.34335565567,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "1002735d.48782d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2142.8334922790527,
+ "y": 6000.343270778656,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4f4eea49.69364c",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "9394e2e6.c9ed4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2142.833568572998,
+ "y": 6053.343029499054,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "87cb782b.0a68b8",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "15b4c37c.7ee625",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1986.0003776550293,
+ "y": 6000.358940601349,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1002735d.48782d"
+ ]
+ ]
+ },
+ {
+ "id": "f6385911.c3478",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1994.5719108581543,
+ "y": 6052.978085041046,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9394e2e6.c9ed4"
+ ]
+ ]
+ },
+ {
+ "id": "1f81499d.5e5af6",
+ "type": "save",
+ "name": "save vip-ipv4-address-list relationships",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vip-ipv4-address-list:relationship-list\"\n key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv4-address-list.vip-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4[$ipv4-index]\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"subnet\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].network-id\n + '/subnets/subnet/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.ipv4-subnet-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"vnfc\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/vnfcs/vnfc/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2083.000217437744,
+ "y": 6143.0255608558655,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9402f7a2.c004f8",
+ "43ffb8db.dfd838"
+ ]
+ ]
+ },
+ {
+ "id": "a145395d.8e9c88",
+ "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=\"Error updating vip-ipv4-address-list relationships in AAI\" />\n",
+ "comments": "",
+ "x": 2652.6666259765625,
+ "y": 6135.025530397892,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "f29625da.c7a2a",
+ "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=\"Not-found error updating vip-ipv4-address-list relationships\" />\n",
+ "comments": "",
+ "x": 2652.833595275879,
+ "y": 6185.009704113007,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "3507458.c6c0fba",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2486.1664962768555,
+ "y": 6115.009903490543,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a145395d.8e9c88",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "2bfcdbd8.b2861c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2486.166572570801,
+ "y": 6168.009662210941,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f29625da.c7a2a",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "9402f7a2.c004f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2329.333381652832,
+ "y": 6115.025573313236,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "3507458.c6c0fba"
+ ]
+ ]
+ },
+ {
+ "id": "43ffb8db.dfd838",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2337.904914855957,
+ "y": 6167.6447177529335,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "2bfcdbd8.b2861c"
+ ]
+ ]
+ },
+ {
+ "id": "5f93b476.1dc79c",
+ "type": "save",
+ "name": "save vip-ipv6-address-list object to A&AI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vip-ipv6-address-list\" \n\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv6-address-list.vip-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6[$ipv6-index]\" >\n<parameter name=\"vip-ipv6-address\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6[$ipv6-index]`\" />\n<parameter name=\"vip-ipv6-prefix-length\" value=\"128\" />\n<parameter name=\"is-floating\" value=\"false\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1750.66695022583,
+ "y": 6353.691581249237,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "67236f18.227f98",
+ "c2a53df.84d114"
+ ]
+ ]
+ },
+ {
+ "id": "eb32fc41.713248",
+ "type": "for",
+ "name": "for each floating ipv6 address",
+ "xml": "<for silentFailure='true' index='ipv6-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1258.6669425964355,
+ "y": 6410.691653728485,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "78198d85.1f46bc"
+ ]
+ ]
+ },
+ {
+ "id": "78198d85.1f46bc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1484.6669425964355,
+ "y": 6409.691653728485,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5f93b476.1dc79c",
+ "cde033d4.f6fd",
+ "b51d7c07.17b7c"
+ ]
+ ]
+ },
+ {
+ "id": "6d658b88.2e8a3c",
+ "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=\"Error saving vip-ipv6-address-list in AAI\" />\n",
+ "comments": "",
+ "x": 2312.66695022583,
+ "y": 6343.691581249237,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "3a7db074.96feb8",
+ "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=\"Not-found error saving vip-ipv6-address-list\" />\n",
+ "comments": "",
+ "x": 2312.833812713623,
+ "y": 6393.676039218903,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "7b77c41a.48512c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2146.166820526123,
+ "y": 6323.675954341888,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "6d658b88.2e8a3c",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "fb34c0be.1fb228",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2146.1668968200684,
+ "y": 6376.675713062286,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "3a7db074.96feb8",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "67236f18.227f98",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1989.3337059020996,
+ "y": 6323.691624164581,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "7b77c41a.48512c"
+ ]
+ ]
+ },
+ {
+ "id": "c2a53df.84d114",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1997.9052391052246,
+ "y": 6376.310768604279,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "fb34c0be.1fb228"
+ ]
+ ]
+ },
+ {
+ "id": "31f35206.0f932e",
+ "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=\"Error updating vip-ipv6-address-list relationships in AAI\" />\n",
+ "comments": "",
+ "x": 2646.0002059936523,
+ "y": 6456.6916318535805,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "132ba90c.08b887",
+ "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=\"Not-found error updating vip-ipv6-address-list relationships\" />\n",
+ "comments": "",
+ "x": 2646.1670684814453,
+ "y": 6506.676089823246,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "de40c9e6.508858",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2479.5000762939453,
+ "y": 6436.676004946232,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "31f35206.0f932e",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "44d321f1.eca488",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2479.5001525878906,
+ "y": 6489.67576366663,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "132ba90c.08b887",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "535c2132.4b5b3",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2322.666961669922,
+ "y": 6436.691674768925,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "de40c9e6.508858"
+ ]
+ ]
+ },
+ {
+ "id": "8380291.86ec7d8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2331.238494873047,
+ "y": 6489.310819208622,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "44d321f1.eca488"
+ ]
+ ]
+ },
+ {
+ "id": "47c03850.21f5a",
+ "type": "save",
+ "name": "save vip-ipv6-address-list relationships",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vip-ipv6-address-list:relationship-list\"\n key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv6-address-list.vip-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6[$ipv6-index]\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"subnet\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].network-id\n + '/subnets/subnet/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.ipv6-subnet-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"vnfc\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/vnfcs/vnfc/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2078.3338050842285,
+ "y": 6465.358093738556,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "535c2132.4b5b3",
+ "8380291.86ec7d8"
+ ]
+ ]
+ },
+ {
+ "id": "8a1998a9.fb5c4",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1134.3334770202637,
+ "y": 4273.691486895084,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6cb8c914.ed3b6",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2299.0004234313965,
+ "y": 4611.692221999168,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "751caeb9.f5faf",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2007.6670036315918,
+ "y": 5828.6920592188835,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7d8d801d.5aba58",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2956.667133331299,
+ "y": 5947.691905498505,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ab19f58c.bd384",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4276.0001220703125,
+ "y": 4995.357985436916,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d7c01db4.00c9a",
+ "type": "set",
+ "name": "set created_flag",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].created_flag' value='true' />\n",
+ "comments": "",
+ "x": 1241.0002479553223,
+ "y": 4712.691877782345,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "f765dfab.5a8ab8",
+ "type": "set",
+ "name": "set created-flag",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].created-flag' value='true' />\n",
+ "comments": "",
+ "x": 1211.6670036315918,
+ "y": 5960.6920592188835,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "79481073.dabf6",
+ "type": "set",
+ "name": "set created-ipv4-flag",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.created-ipv4-flag' value='true' />\n",
+ "comments": "",
+ "x": 1684.6669692993164,
+ "y": 6088.6921390891075,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "cde033d4.f6fd",
+ "type": "set",
+ "name": "set created-ipv6-flag",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.created-ipv6-flag' value='true' />\n",
+ "comments": "",
+ "x": 1690.0003051757812,
+ "y": 6414.691742360592,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "9ce78c9c.21d2e",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1791.0004234313965,
+ "y": 4672.692116677761,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f1e503ea.34a2d8"
+ ]
+ ]
+ },
+ {
+ "id": "e7b2dbd5.bd9e",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-vlan-tagging-assign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-vlan-tagging-assign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 574.6667823791504,
+ "y": 6752.691919803619,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "acea42fa.fe209"
+ ]
+ ]
+ },
+ {
+ "id": "acea42fa.fe209",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 919.0001983642578,
+ "y": 6752.025414943695,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "bb8b3ecf.0d4b8"
+ ]
+ ]
+ },
+ {
+ "id": "bb8b3ecf.0d4b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1074.000072479248,
+ "y": 6752.025210857391,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8d4ed162.86b8b8",
+ "277ec139.1f8766",
+ "4bc02c78.2ff744"
+ ]
+ ]
+ },
+ {
+ "id": "8d4ed162.86b8b8",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1422.3333625793457,
+ "y": 6697.025630712509,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "277ec139.1f8766",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n",
+ "comments": "",
+ "x": 1250.6668014526367,
+ "y": 6795.358858704567,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "4bc02c78.2ff744",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vlantaggingfailure.log' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1245.6666984558105,
+ "y": 6748.691714763641,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bfee1c79.25f4d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 212.8928680419922,
+ "y": 508.5714416503906,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "c4f07890.7e2328",
+ "5621ecb6.141394",
+ "b13c4350.370938",
+ "b064f8ff.c2b5c",
+ "fe2663d3.ad286",
+ "a5f7f097.af8f7",
+ "498f5a29.9e1ca4",
+ "f0c546c1.be6dc",
+ "40af7b28.67ea64"
+ ]
+ ]
+ },
+ {
+ "id": "b80a89b3.da4648",
+ "type": "switchNode",
+ "name": "switch from-preload",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.from-preload`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 503.90471267700195,
+ "y": 2564.1672048568726,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "3b57b841.e4ee",
+ "5c063e0d.485f8"
+ ]
+ ]
+ },
+ {
+ "id": "3b57b841.e4ee",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 675.8094444274902,
+ "y": 2541.548225402832,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "2b41d2.bfd34e2e"
+ ]
+ ]
+ },
+ {
+ "id": "5c063e0d.485f8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 677.4760971069336,
+ "y": 2586.5480642318726,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9acd2d4c.7f4f58"
+ ]
+ ]
+ },
+ {
+ "id": "2b41d2.bfd34e2e",
+ "type": "set",
+ "name": "set automated-assignment to true",
+ "xml": "<set>\n<parameter name='automated-assignment' value='true' />\n",
+ "comments": "",
+ "x": 890.8094291687012,
+ "y": 2539.88139629364,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "9acd2d4c.7f4f58",
+ "type": "set",
+ "name": "set automated-assignment to false",
+ "xml": "<set>\n<parameter name='automated-assignment' value='false' />\n",
+ "comments": "",
+ "x": 889.142749786377,
+ "y": 2584.8813161849976,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "b51d7c07.17b7c",
+ "type": "for",
+ "name": "for each vnfc",
+ "xml": "<for silentFailure='true' index='vnfc-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1665.4288368225098,
+ "y": 6513.572165966034,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5f97f00c.f2f7a"
+ ]
+ ]
+ },
+ {
+ "id": "bc7a6a83.8ca178",
+ "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=\"Test return\" />\n",
+ "comments": "",
+ "x": 130.00014877319336,
+ "y": 6993.359684050083,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "facd6ff7.1eed9",
+ "type": "for",
+ "name": "for each vm-type",
+ "xml": "<for silentFailure='true' index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 482.66680908203125,
+ "y": 3924.358087539673,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f42a02f0.2fdc5"
+ ]
+ ]
+ },
+ {
+ "id": "f42a02f0.2fdc5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 673.166877746582,
+ "y": 3925.19132232666,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f2b8f79a.47d0c8"
+ ]
+ ]
+ },
+ {
+ "id": "f2b8f79a.47d0c8",
+ "type": "for",
+ "name": "for each vm-network",
+ "xml": "<for silentFailure='true' index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 874.6668090820312,
+ "y": 3924.358087539673,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "74a58a99.78bf9c"
+ ]
+ ]
+ },
+ {
+ "id": "74a58a99.78bf9c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1064.500129699707,
+ "y": 3923.857526779175,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d3a7ff95.69fdf"
+ ]
+ ]
+ },
+ {
+ "id": "d3a7ff95.69fdf",
+ "type": "get-resource",
+ "name": "get-resource VFC_RELATED_NETWORK_ROLE",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VFC_RELATED_NETWORK_ROLE where vfc_customization_uuid = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].model-customization-uuid\n and network_role = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role'\n pfx='db.vnf-related-network-role[]'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1354.0001029968262,
+ "y": 3922.358169555664,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "ac281675.6e9ef8",
+ "441cde65.25a5c"
+ ]
+ ]
+ },
+ {
+ "id": "ac281675.6e9ef8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1625.00004196167,
+ "y": 3827.024871826172,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "21c357a6.90267"
+ ]
+ ]
+ },
+ {
+ "id": "21c357a6.90267",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1772.190559387207,
+ "y": 3825.57288646698,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "3f8cbef4.25bb0a",
+ "77e726f5.a576b8"
+ ]
+ ]
+ },
+ {
+ "id": "441cde65.25a5c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1613.333293914795,
+ "y": 4046.691343307495,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e7e940b7.17edf"
+ ]
+ ]
+ },
+ {
+ "id": "54eeb4ef.84d784",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2031.66654586792,
+ "y": 4048.69109916687,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d075ed57.96e16",
+ "7659ed81.4f2dfc",
+ "c5babea5.d9aba",
+ "e02da5bb.106d78",
+ "33b270a2.44aa78",
+ "f0d8d701.a9fbc8",
+ "1ad9651a.f1635b",
+ "d7d72478.3bd0f"
+ ]
+ ]
+ },
+ {
+ "id": "3f8cbef4.25bb0a",
+ "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=\"Error reading VFC_RELATED_NETWORK_ROLE table\" />\n",
+ "comments": "",
+ "x": 1924.3334159851074,
+ "y": 3822.358123779297,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "7659ed81.4f2dfc",
+ "type": "for",
+ "name": "for each vnf network",
+ "xml": "<for silentFailure='true' index='vnf-network-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2226.6666831970215,
+ "y": 3916.0247554779053,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b92d9cbc.21841"
+ ]
+ ]
+ },
+ {
+ "id": "d075ed57.96e16",
+ "type": "set",
+ "name": "set found-related-network to false",
+ "xml": "<set>\n<parameter name='found-related-network' value='false' />\n",
+ "comments": "",
+ "x": 2266.666759490967,
+ "y": 3857.6915321350098,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "18560cbf.0eb0f3",
+ "type": "for",
+ "name": "for each related network",
+ "xml": "<for silentFailure='true' index='related-network-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].related-networks.related-network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2625.666645050049,
+ "y": 3892.6910190582275,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "2c6cef8.3fa721"
+ ]
+ ]
+ },
+ {
+ "id": "b92d9cbc.21841",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2414.6666831970215,
+ "y": 3916.0247554779053,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "18560cbf.0eb0f3",
+ "ff4fdb5d.de766"
+ ]
+ ]
+ },
+ {
+ "id": "2c6cef8.3fa721",
+ "type": "switchNode",
+ "name": "switch network-role matches",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].related-networks.related-network[$related-network-index].network-role\n == $db.vnf-related-network-role[$db-related-network-index].related-network-role`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2877.666561126709,
+ "y": 3892.691095352173,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "16df1c3d.121c74"
+ ]
+ ]
+ },
+ {
+ "id": "e7e940b7.17edf",
+ "type": "for",
+ "name": "for each db related-network",
+ "xml": "<for index='db-related-network-index' start='0' end='`$db.vnf-related-network-role_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1817.6666679382324,
+ "y": 4047.35809135437,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "54eeb4ef.84d784"
+ ]
+ ]
+ },
+ {
+ "id": "678d4c53.0bb2dc",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 298.6669120788574,
+ "y": 6953.359684050083,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "16df1c3d.121c74",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3077.666561126709,
+ "y": 3890.691095352173,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b6af3325.d14fe"
+ ]
+ ]
+ },
+ {
+ "id": "b6af3325.d14fe",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3231.666561126709,
+ "y": 3888.691095352173,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "7ea20a1d.7dcac4",
+ "34e3568a.1d1aca",
+ "3d29969a.2c72ea"
+ ]
+ ]
+ },
+ {
+ "id": "7ea20a1d.7dcac4",
+ "type": "set",
+ "name": "set found-related-network to true",
+ "xml": "<set>\n<parameter name='found-related-network' value='true' />\n",
+ "comments": "",
+ "x": 3463.666721343994,
+ "y": 3848.3576793670654,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "34e3568a.1d1aca",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 3386.999897003174,
+ "y": 3935.024429321289,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "c5babea5.d9aba",
+ "type": "switchNode",
+ "name": "switch found-related-network",
+ "xml": "<switch test='`$found-related-network`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2249.6666145324707,
+ "y": 3991.6912326812744,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d92d1f7b.311be"
+ ]
+ ]
+ },
+ {
+ "id": "d92d1f7b.311be",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2443.6666145324707,
+ "y": 3989.6912326812744,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4c319279.354754"
+ ]
+ ]
+ },
+ {
+ "id": "5fe8d8f9.449b28",
+ "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=\"`'Unable to find related network '\n + $db.vnf-related-network-role[$db-related-network-index].related-network-role + ' in vnf-networks'`\" />\n",
+ "comments": "",
+ "x": 2721.6666145324707,
+ "y": 3987.6912326812744,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "4c319279.354754",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2573.6666145324707,
+ "y": 3989.6912326812744,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5fe8d8f9.449b28",
+ "77e726f5.a576b8"
+ ]
+ ]
+ },
+ {
+ "id": "77e726f5.a576b8",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2666.3334159851074,
+ "y": 3752.358123779297,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e02da5bb.106d78",
+ "type": "set",
+ "name": "set is-trunked and segmentation-id in vm-network",
+ "xml": "<set>\n<parameter name='$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].is-trunked'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].is-trunked`' />\n<parameter name='$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].segmentation-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].segmentation-id`' />\n",
+ "comments": "",
+ "x": 2311.6666145324707,
+ "y": 4039.6912326812744,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "f0d8d701.a9fbc8",
+ "type": "switchNode",
+ "name": "switch rn-index",
+ "xml": "<switch test='`$rn-index`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2199.6666145324707,
+ "y": 4147.691232681274,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "c4302cc3.3c659"
+ ]
+ ]
+ },
+ {
+ "id": "33b270a2.44aa78",
+ "type": "set",
+ "name": "set rn-index to related network length",
+ "xml": "<set>\n<parameter name='rn-index' value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network_length`' />\n",
+ "comments": "",
+ "x": 2271.6666145324707,
+ "y": 4091.6912326812744,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "c4302cc3.3c659",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2363.6666145324707,
+ "y": 4147.691232681274,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "be01e09d.5f1a68"
+ ]
+ ]
+ },
+ {
+ "id": "be01e09d.5f1a68",
+ "type": "set",
+ "name": "set rn-index to 0",
+ "xml": "<set>\n<parameter name='rn-index' value='0' />\n",
+ "comments": "",
+ "x": 2523.6666145324707,
+ "y": 4147.691232681274,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "1ad9651a.f1635b",
+ "type": "set",
+ "name": "set related-network data",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].network-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].network-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].network-role'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].network-role`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].vlan-tags.vlan-interface'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].vlan-tags.vlan-interface`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].vlan-tags.lower-tag-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].vlan-tags.lower-tag-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].vlan-tags.upper-tag-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].vlan-tags.upper-tag-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$rn-index].vlan-tags.is-private'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$saved-vnf-network-index].related-networks.related-network[$saved-related-network-index].vlan-tags.is-private`' />\n",
+ "comments": "",
+ "x": 2223.6666145324707,
+ "y": 4199.691232681274,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "d7d72478.3bd0f",
+ "type": "set",
+ "name": "set new related network length",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network_length'\n value='`$rn-index + 1`' />\n",
+ "comments": "",
+ "x": 2241.6666145324707,
+ "y": 4251.691232681274,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "ff4fdb5d.de766",
+ "type": "switchNode",
+ "name": "switch found-related-network",
+ "xml": "<switch test='`$found-related-network`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2638.6666679382324,
+ "y": 3940.357879638672,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "eba867d8.f5c258"
+ ]
+ ]
+ },
+ {
+ "id": "eba867d8.f5c258",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2835.3335304260254,
+ "y": 3940.3582515716553,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5c631904.ed64f8"
+ ]
+ ]
+ },
+ {
+ "id": "5c631904.ed64f8",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 2965.3334159851074,
+ "y": 3938.691375732422,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "3d29969a.2c72ea",
+ "type": "set",
+ "name": "save indexes",
+ "xml": "<set>\n<parameter name='saved-vnf-network-index' value='`$vnf-network-index`' />\n<parameter name='saved-related-network-index' value='`$related-network-index`' />\n",
+ "comments": "",
+ "x": 3405.3336296081543,
+ "y": 3890.3582496643066,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "6004d50b.b6d2f4",
+ "type": "execute",
+ "name": "generate cp-instance-id",
+ "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"cp-instance-id\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1694.2381210327148,
+ "y": 4919.882302761078,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d7ac8cb2.6c2d6",
+ "type": "save",
+ "name": "save cp to A&AI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"cp\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n\t AND cp.cp-instance-id = $cp-instance-id\" >\n<parameter name=\"cp-instance-id\" value=\"`$cp-instance-id`\" />\n<parameter name=\"port-id\" value=\"0\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1675.90474319458,
+ "y": 4986.5488085746765,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f5dd2f0d.45402",
+ "29186d18.403c52"
+ ]
+ ]
+ },
+ {
+ "id": "f5dd2f0d.45402",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1864.9047241210938,
+ "y": 4962.215422093868,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b5157fa2.e880a8"
+ ]
+ ]
+ },
+ {
+ "id": "b5157fa2.e880a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2032.0714721679688,
+ "y": 4978.009855687618,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "436800e9.7b6c18",
+ "6cb8c914.ed3b6"
+ ]
+ ]
+ },
+ {
+ "id": "29186d18.403c52",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1869.9047241210938,
+ "y": 5011.881681859493,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b5157fa2.e880a8"
+ ]
+ ]
+ },
+ {
+ "id": "436800e9.7b6c18",
+ "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=\"Error creating cp object in AAI\" />\n",
+ "comments": "",
+ "x": 2197.5714836120605,
+ "y": 4989.8820605278015,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "8ef35028.d3c7d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1470.714443206787,
+ "y": 5189.167096614838,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "bf8a8114.e4c588",
+ "c587555a.9764c8",
+ "6004d50b.b6d2f4",
+ "d7ac8cb2.6c2d6",
+ "d458e80b.85d49",
+ "c756041f.7b47"
+ ]
+ ]
+ },
+ {
+ "id": "bf8a8114.e4c588",
+ "type": "set",
+ "name": "set connection point data",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].connection-point.connection-point-id'\n value='`$cp-instance-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].connection-point.port-id'\n value='0' />\n",
+ "comments": "",
+ "x": 1706.2382850646973,
+ "y": 5064.406378269196,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "1c962043.9ade4",
+ "type": "comment",
+ "name": "Floating IPs",
+ "info": "",
+ "comments": "",
+ "x": 1267.0001029968262,
+ "y": 6046.691496551037,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "d458e80b.85d49",
+ "type": "for",
+ "name": "for each vnf-network",
+ "xml": "<for index='vnf-network-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1690.3332862854004,
+ "y": 5460.691872119904,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "581b2add.f9572c"
+ ]
+ ]
+ },
+ {
+ "id": "54717650.92e9c8",
+ "type": "save",
+ "name": "save cp relationship to l3-network",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"cp:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n AND cp.cp-instance-id = $cp-instance-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].network-id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2328.6667671203613,
+ "y": 5460.358379840851,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "be199432.2a2058",
+ "5e67f7b6.3d5b98"
+ ]
+ ]
+ },
+ {
+ "id": "7aece173.4d8018",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2700.4998054504395,
+ "y": 5433.6763281822205,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e9b2c07c.a44a5",
+ "c9a07f93.c346a8"
+ ]
+ ]
+ },
+ {
+ "id": "fde9d8b6.adb198",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2700.4998817443848,
+ "y": 5486.676086902618,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e9b2c07c.a44a5",
+ "7f2c6758.f68da8"
+ ]
+ ]
+ },
+ {
+ "id": "be199432.2a2058",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2543.666690826416,
+ "y": 5433.691998004913,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "7aece173.4d8018"
+ ]
+ ]
+ },
+ {
+ "id": "5e67f7b6.3d5b98",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2552.238224029541,
+ "y": 5486.311142444611,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "fde9d8b6.adb198"
+ ]
+ ]
+ },
+ {
+ "id": "c9a07f93.c346a8",
+ "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=\"Error updating cp relationship to l3-network in AAI\" />\n",
+ "comments": "",
+ "x": 2872.6666145324707,
+ "y": 5456.3587040901175,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "7f2c6758.f68da8",
+ "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=\"Not-found error updating cp relationship to l3-network\" />\n",
+ "comments": "",
+ "x": 2867.833522796631,
+ "y": 5508.009911060332,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "e9b2c07c.a44a5",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3074.3333778381348,
+ "y": 5406.35870218277,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c756041f.7b47",
+ "type": "for",
+ "name": "for each vm-network",
+ "xml": "<for silentFailure='true' index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1690.333438873291,
+ "y": 5621.35822725296,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "f305688b.5fd87"
+ ]
+ ]
+ },
+ {
+ "id": "8f7eb5ab.e0a03",
+ "type": "save",
+ "name": "save cp relationship to l3-network and vlan-tag",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"cp:relationship-list\"\n key=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n AND cp.cp-instance-id = $cp-instance-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/l3-networks/l3-network/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$related-network-index].network-id`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"vlan-tag\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/vlan-tags/vlan-tag/' +\n $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network[$related-network-index].vlan-tags.vlan-interface`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2610.00044631958,
+ "y": 5619.358222484589,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9128c14c.d846d",
+ "7ee1490a.c8b148"
+ ]
+ ]
+ },
+ {
+ "id": "d67f366c.178058",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3016.8334922790527,
+ "y": 5592.67552137375,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4bf8ece5.760084",
+ "e9b2c07c.a44a5"
+ ]
+ ]
+ },
+ {
+ "id": "203e49a1.25bf26",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3016.833568572998,
+ "y": 5645.675280094148,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5212701d.e9f5d8",
+ "e9b2c07c.a44a5"
+ ]
+ ]
+ },
+ {
+ "id": "9128c14c.d846d",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2860.0003776550293,
+ "y": 5592.691191196443,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d67f366c.178058"
+ ]
+ ]
+ },
+ {
+ "id": "7ee1490a.c8b148",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2868.5719108581543,
+ "y": 5645.31033563614,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "203e49a1.25bf26"
+ ]
+ ]
+ },
+ {
+ "id": "4bf8ece5.760084",
+ "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=\"Error updating cp relationship to l3-network and vlan-tag in AAI\" />\n",
+ "comments": "",
+ "x": 3189.000301361084,
+ "y": 5615.357897281647,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "5212701d.e9f5d8",
+ "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=\"Not-found error updating cp relationship to l3-network and vlan-tag\" />\n",
+ "comments": "",
+ "x": 3184.167209625244,
+ "y": 5667.009104251862,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "76067898.ad5ad8",
+ "type": "for",
+ "name": "for each related-network",
+ "xml": "<for silentFailure='true' index='related-network-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].related-networks.related-network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2306.0002784729004,
+ "y": 5619.358223438263,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8f7eb5ab.e0a03"
+ ]
+ ]
+ },
+ {
+ "id": "f10f9580.1e0308",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-generate-heat-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-generate-heat-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 564.3335723876953,
+ "y": 6862.358483910561,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e7fac88.832d038",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmoduleheat.log' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 385.6669006347656,
+ "y": 6910.358586907387,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "def45b38.4bd55",
+ "type": "switchNode",
+ "name": "switch input vf-module-name",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 537.0000038146973,
+ "y": 2346.191044807434,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8db4c205.376b",
+ "1b446cec.4500eb"
+ ]
+ ]
+ },
+ {
+ "id": "8db4c205.376b",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 736.9999961853027,
+ "y": 2323.690947532654,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "eae1dfc6.c9a018"
+ ]
+ ]
+ },
+ {
+ "id": "1b446cec.4500eb",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 737.4285888671875,
+ "y": 2373.81005859375,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9c7304a7.47b438"
+ ]
+ ]
+ },
+ {
+ "id": "8bfe9202.c720d",
+ "type": "for",
+ "name": "for each vnfc-subnet-role",
+ "xml": "<for index='subnet-role-index' start='0'\n end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1294.5001029968262,
+ "y": 3141.190721511841,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8622c4a.ef650b8"
+ ]
+ ]
+ },
+ {
+ "id": "8622c4a.ef650b8",
+ "type": "for",
+ "name": "for each vnfc-address-family",
+ "xml": "<for index='address-family-index' start='0'\n end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1542.8333625793457,
+ "y": 3141.190721511841,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4a1dd17d.5b9948"
+ ]
+ ]
+ },
+ {
+ "id": "7f309670.a38298",
+ "type": "for",
+ "name": "for each vm-type",
+ "xml": "<for silentFailure='true' index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 500.33327865600586,
+ "y": 2859.52405834198,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5a24cbf3.c8832c"
+ ]
+ ]
+ },
+ {
+ "id": "5a24cbf3.c8832c",
+ "type": "for",
+ "name": "for each vnfc",
+ "xml": "<for silentFailure='true' index='vnfc-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 682.000057220459,
+ "y": 2858.191206932068,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "34b1dbe0.125be4"
+ ]
+ ]
+ },
+ {
+ "id": "34b1dbe0.125be4",
+ "type": "for",
+ "name": "for each vnfc-network",
+ "xml": "<for silentFailure='true' index='vnfc-network-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 883.1666297912598,
+ "y": 2858.023896217346,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "c2b28bb1.c543b8"
+ ]
+ ]
+ },
+ {
+ "id": "c2b28bb1.c543b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1095.3333015441895,
+ "y": 2857.024256706238,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a041d6a5.1eaa48",
+ "c20a57e8.44ed5",
+ "765a4edc.cbc36",
+ "8bfe9202.c720d"
+ ]
+ ]
+ },
+ {
+ "id": "a041d6a5.1eaa48",
+ "type": "set",
+ "name": "set vnf-network-index to -1",
+ "xml": "<set>\n<parameter name='vnf-network-index' value='-1' />\n",
+ "comments": "",
+ "x": 1307.0000190734863,
+ "y": 2810.35747051239,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "c20a57e8.44ed5",
+ "type": "for",
+ "name": "for each vnf-network",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1288.6668090820312,
+ "y": 2857.0242223739624,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4e0e361c.f4c848"
+ ]
+ ]
+ },
+ {
+ "id": "4e0e361c.f4c848",
+ "type": "switchNode",
+ "name": "switch network-roles match?",
+ "xml": "<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-network-role\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$idx].network-role`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1530.3332786560059,
+ "y": 2855.357717514038,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "807f0004.8adbb8"
+ ]
+ ]
+ },
+ {
+ "id": "807f0004.8adbb8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1726.99995803833,
+ "y": 2855.357636451721,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "253c224a.85d896"
+ ]
+ ]
+ },
+ {
+ "id": "253c224a.85d896",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1880.333179473877,
+ "y": 2855.357508659363,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a6f5eb0a.e707c8",
+ "9ce5336a.719328",
+ "ca1a48c3.b1baa8"
+ ]
+ ]
+ },
+ {
+ "id": "a6f5eb0a.e707c8",
+ "type": "set",
+ "name": "set vnf-network-index",
+ "xml": "<set>\n<parameter name='vnf-network-index' value='`$idx`' />\n",
+ "comments": "",
+ "x": 2087.000011444092,
+ "y": 2803.6908864974976,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "9ce5336a.719328",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 2041.999927520752,
+ "y": 2893.6908073425293,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "765a4edc.cbc36",
+ "type": "switchNode",
+ "name": "switch vnf-network-index",
+ "xml": "<switch test='`$vnf-network-index`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1300.3333473205566,
+ "y": 2917.024224281311,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "244dfb68.71e964"
+ ]
+ ]
+ },
+ {
+ "id": "244dfb68.71e964",
+ "type": "outcome",
+ "name": "-1",
+ "xml": "<outcome value='-1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1491.9999885559082,
+ "y": 2917.024468421936,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "10ed32c9.c47a65"
+ ]
+ ]
+ },
+ {
+ "id": "10ed32c9.c47a65",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1640.333179473877,
+ "y": 2915.357508659363,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "404dfa80.b1344c",
+ "c6cafcd7.27543"
+ ]
+ ]
+ },
+ {
+ "id": "404dfa80.b1344c",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3168.6668128967285,
+ "y": 2767.024085998535,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c6cafcd7.27543",
+ "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=\"`'VNFC network role '\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-network-role\n + ' is not found in VNF network list'\n `\" />\n\n\n\n",
+ "comments": "",
+ "x": 1808.6665534973145,
+ "y": 2933.690760612488,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "c35abd31.4d97c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2331.999897003174,
+ "y": 3325.3573598861694,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "96ccd849.43cf7",
+ "ff243880.f35278",
+ "6cdf3e0.84820c4"
+ ]
+ ]
+ },
+ {
+ "id": "96ccd849.43cf7",
+ "type": "for",
+ "name": "for each subnet-data",
+ "xml": "<for index='subnet-data-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2528.666648864746,
+ "y": 3280.3572788238525,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "2cef54b4.065124"
+ ]
+ ]
+ },
+ {
+ "id": "2cef54b4.065124",
+ "type": "switchNode",
+ "name": "address-families match?",
+ "xml": "<switch test='`$tmp.address-family\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].ip-version`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2755.3332748413086,
+ "y": 3280.3572788238525,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "37df0574.9a5ed2"
+ ]
+ ]
+ },
+ {
+ "id": "37df0574.9a5ed2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2935.333240509033,
+ "y": 3280.3576850891113,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "788f6a84.68199c"
+ ]
+ ]
+ },
+ {
+ "id": "c57c0c21.024ab8",
+ "type": "set",
+ "name": "set tmp.address-family",
+ "xml": "<set>\n<parameter name='tmp.address-family'\n value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-address-family`' />\n",
+ "comments": "",
+ "x": 2360.3332328796387,
+ "y": 3143.690773010254,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "4a1dd17d.5b9948",
+ "type": "switchNode",
+ "name": "switch vnfc-subnet-ip_length",
+ "xml": "<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1805.3335762023926,
+ "y": 3140.357808113098,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "5f09d3a6.026514",
+ "56c1febc.7db6b",
+ "14889e9b.6b5371"
+ ]
+ ]
+ },
+ {
+ "id": "5f09d3a6.026514",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2007.000087738037,
+ "y": 3040.3573513031006,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "22b591c4.2e4326"
+ ]
+ ]
+ },
+ {
+ "id": "56c1febc.7db6b",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2003.4287185668945,
+ "y": 3226.309642791748,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "ded80477.617b2"
+ ]
+ ]
+ },
+ {
+ "id": "22b591c4.2e4326",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2138.6666374206543,
+ "y": 3063.0240983963013,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ebf41120.205ed",
+ "type": "set",
+ "name": "set subnet-id to -1",
+ "xml": "<set>\n<parameter name='subnet-id' value='-1' />\n",
+ "comments": "",
+ "x": 3028.6671562194824,
+ "y": 3442.0247650146484,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "ded80477.617b2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2157.0001335144043,
+ "y": 3225.3572750091553,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "c57c0c21.024ab8",
+ "c35abd31.4d97c8"
+ ]
+ ]
+ },
+ {
+ "id": "62a4f148.c202c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4288.666753768921,
+ "y": 3613.691241979599,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "afef3972.79782",
+ "4862bc5a.5fb3f4"
+ ]
+ ]
+ },
+ {
+ "id": "4862bc5a.5fb3f4",
+ "type": "execute",
+ "name": "execute isInSameSubnet",
+ "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"isInSameSubnet\">\n\t<parameter name=\"firstIPAddr\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].network-start-address`\" />\n\t<parameter name=\"secondIPAddr\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[0].vnfc-ip-address`\" />\n\t<parameter name=\"subnet\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].cidr-mask`\" />\n\t<parameter name=\"ipType\" value=\"`$ip-type`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4503.6667556762695,
+ "y": 3663.690915822983,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4c2388df.70ec08"
+ ]
+ ]
+ },
+ {
+ "id": "afef3972.79782",
+ "type": "switchNode",
+ "name": "switch tmp.address-family",
+ "xml": "<switch test='`$tmp.address-family`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4505.333911895752,
+ "y": 3570.357902288437,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "191fd488.fd1f6b",
+ "be67cd12.641768"
+ ]
+ ]
+ },
+ {
+ "id": "191fd488.fd1f6b",
+ "type": "outcome",
+ "name": "ipv4",
+ "xml": "<outcome value='ipv4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4708.667174021402,
+ "y": 3543.6911326249437,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "eaddc3bb.251ec8"
+ ]
+ ]
+ },
+ {
+ "id": "be67cd12.641768",
+ "type": "outcome",
+ "name": "ipv6",
+ "xml": "<outcome value='ipv6'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4708.666847229004,
+ "y": 3590.3576600551605,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "95abff5b.e35a8"
+ ]
+ ]
+ },
+ {
+ "id": "eaddc3bb.251ec8",
+ "type": "set",
+ "name": "set ip-type parameter to IPv4",
+ "xml": "<set>\n<parameter name='ip-type' value='IPv4' />\n",
+ "comments": "",
+ "x": 4905.333660125732,
+ "y": 3542.0246064662933,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "95abff5b.e35a8",
+ "type": "set",
+ "name": "set ip-type parameter to IPv6",
+ "xml": "<set>\n<parameter name='ip-type' value='IPv6' />\n",
+ "comments": "",
+ "x": 4910.33353805542,
+ "y": 3590.357679128647,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "8df6c942.a715e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4843.666786193848,
+ "y": 3663.357679128647,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a8addf18.4e3a2",
+ "7cc78bb8.388714"
+ ]
+ ]
+ },
+ {
+ "id": "a8addf18.4e3a2",
+ "type": "set",
+ "name": "set subnet-id",
+ "xml": "<set>\n<parameter name='subnet-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].sdnc-subnet-id`' />\n",
+ "comments": "",
+ "x": 5022.000106811523,
+ "y": 3640.024165868759,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "7cc78bb8.388714",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 5007.000110626221,
+ "y": 3686.691159963608,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "5250a99a.907d1",
+ "type": "switchNode",
+ "name": "switch subnet-id",
+ "xml": "<switch test='`$subnet-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3020.3330307006836,
+ "y": 3603.691499710083,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d823fb40.54f4"
+ ]
+ ]
+ },
+ {
+ "id": "d823fb40.54f4",
+ "type": "outcome",
+ "name": "-1",
+ "xml": "<outcome value='-1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3176.99959564209,
+ "y": 3603.6914348602295,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4bb7b0dc.89ed5"
+ ]
+ ]
+ },
+ {
+ "id": "4bb7b0dc.89ed5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3325.3327865600586,
+ "y": 3602.0244750976562,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "12c0eff5.7b1ef",
+ "404dfa80.b1344c"
+ ]
+ ]
+ },
+ {
+ "id": "12c0eff5.7b1ef",
+ "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=\"`'Not able to find VNF network subnet that contains address '\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].vnfc-subnet-ip[0].vnfc-ip-address\n `\" />\n\n\n\n",
+ "comments": "",
+ "x": 3493.666118621826,
+ "y": 3618.6909503936768,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "324552d3.28633e",
+ "type": "set",
+ "name": "set subnet-id in vnfc-ip-assignments (temp variable)",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].subnet-id' value='`$subnet-id`' />\n",
+ "comments": "",
+ "x": 3131.9996757507324,
+ "y": 3680.3582706451416,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "1781a3e7.247ed4",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmodulec.log' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 485.3332710266113,
+ "y": 3275.357508659363,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4c2388df.70ec08",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4690.333358764648,
+ "y": 3663.691404104233,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8df6c942.a715e"
+ ]
+ ]
+ },
+ {
+ "id": "ca1a48c3.b1baa8",
+ "type": "set",
+ "name": "set network-id",
+ "xml": "<set>\n<parameter name='$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].network-id'\n value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$idx].network-id`' />\n",
+ "comments": "",
+ "x": 2063.666515350342,
+ "y": 2848.690969467163,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "8ca3ab85.032598",
+ "type": "switchNode",
+ "name": "switch nfc-naming-code",
+ "xml": "<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1261.9999809265137,
+ "y": 4463.690697193146,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "23c8931f.52f9cc",
+ "57df7e5d.984c2"
+ ]
+ ]
+ },
+ {
+ "id": "23c8931f.52f9cc",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1446.999927520752,
+ "y": 4438.690515995026,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a1c6b38e.a41d3"
+ ]
+ ]
+ },
+ {
+ "id": "57df7e5d.984c2",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1445.095199584961,
+ "y": 4485.476343631744,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "59f2b757.a63258"
+ ]
+ ]
+ },
+ {
+ "id": "a1c6b38e.a41d3",
+ "type": "set",
+ "name": "set tmp.nfc-naming-code to DEFAULT",
+ "xml": "<set>\n<parameter name='tmp.nfc-naming-code' value='DEFAULT' />\n",
+ "comments": "",
+ "x": 1678.6666984558105,
+ "y": 4437.023866176605,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "59f2b757.a63258",
+ "type": "set",
+ "name": "set tmp.nfc-naming-code",
+ "xml": "<set>\n<parameter name='tmp.nfc-naming-code' value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code`' />\n",
+ "comments": "",
+ "x": 1635.333209991455,
+ "y": 4485.357364177704,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "805bb33d.dc18f",
+ "type": "switchNode",
+ "name": "switch nfc-function",
+ "xml": "<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-function`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1250.3333129882812,
+ "y": 4562.023870944977,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "7a1bcd20.0ffb04",
+ "58313c0d.8e25dc"
+ ]
+ ]
+ },
+ {
+ "id": "7a1bcd20.0ffb04",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1446.9999198913574,
+ "y": 4537.023668766022,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8f8878a3.b40b28"
+ ]
+ ]
+ },
+ {
+ "id": "58313c0d.8e25dc",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1445.0951919555664,
+ "y": 4583.8094964027405,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "33d0dbb1.211884"
+ ]
+ ]
+ },
+ {
+ "id": "8f8878a3.b40b28",
+ "type": "set",
+ "name": "set tmp.nfc-function to DEFAULT",
+ "xml": "<set>\n<parameter name='tmp.nfc-function' value='DEFAULT' />\n",
+ "comments": "",
+ "x": 1658.6667022705078,
+ "y": 4535.3568778038025,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "33d0dbb1.211884",
+ "type": "set",
+ "name": "set tmp.nfc-function",
+ "xml": "<set>\n<parameter name='tmp.nfc-function' value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-function`' />\n",
+ "comments": "",
+ "x": 1616.9998321533203,
+ "y": 4583.690538883209,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "f47ab8ac.f1f838",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:vf-module-topology-assign-rollback",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-assign-rollback' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2890.3333015441895,
+ "y": 2218.691004753113,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aa023fe5.47b5f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2796.9998054504395,
+ "y": 2293.691004753113,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d0aa2f4d.891c28",
+ "f47ab8ac.f1f838"
+ ]
+ ]
+ },
+ {
+ "id": "e944765.ab28a88",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2001.9998588562012,
+ "y": 2353.6908683776855,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "bcf4c56.2e632b8",
+ "f47ab8ac.f1f838"
+ ]
+ ]
+ },
+ {
+ "id": "589f1683.8c95c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2263.666723251343,
+ "y": 2408.691035270691,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b1df2727.b9c3d",
+ "f47ab8ac.f1f838"
+ ]
+ ]
+ },
+ {
+ "id": "581b2add.f9572c",
+ "type": "switchNode",
+ "name": "switch network-roles match?",
+ "xml": "<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$network-role-index].vnfc-network-role\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].network-role`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1923.6666297912598,
+ "y": 5460.6908984184265,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "bcbba18a.60b55"
+ ]
+ ]
+ },
+ {
+ "id": "bcbba18a.60b55",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2122.000099182129,
+ "y": 5460.358053684235,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "54717650.92e9c8"
+ ]
+ ]
+ },
+ {
+ "id": "f305688b.5fd87",
+ "type": "switchNode",
+ "name": "switch network-roles match?",
+ "xml": "<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].network-role`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1926.9999732971191,
+ "y": 5620.357346057892,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "fcdfc8c4.1ea6e8"
+ ]
+ ]
+ },
+ {
+ "id": "fcdfc8c4.1ea6e8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2125.3334426879883,
+ "y": 5620.0245013237,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "76067898.ad5ad8"
+ ]
+ ]
+ },
+ {
+ "id": "bc8c9230.4f5cf8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1830.3332557678223,
+ "y": 6198.6907658576965,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1f81499d.5e5af6",
+ "8e120f2d.e1456"
+ ]
+ ]
+ },
+ {
+ "id": "5f97f00c.f2f7a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1832.0000038146973,
+ "y": 6513.690777301788,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "47c03850.21f5a",
+ "7256be96.3662d"
+ ]
+ ]
+ },
+ {
+ "id": "8e120f2d.e1456",
+ "type": "for",
+ "name": "for each vnfc-network-role",
+ "xml": "<for silentFailure='true' index='vnfc-network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2047.000202178955,
+ "y": 6257.023936748505,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "2ff95408.117534"
+ ]
+ ]
+ },
+ {
+ "id": "35f11c05.060024",
+ "type": "save",
+ "name": "save vip-ipv4-address-list relationship to cp",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vip-ipv4-address-list:relationship-list\"\n key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv4-address-list.vip-ipv4-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4[$ipv4-index]\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"cp\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/vnfcs/vnfc/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n + '/cps/cp/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-role-index].connection-point.connection-point-id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2722.0001258850098,
+ "y": 6257.023775577545,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "6fc56971.00a6d8",
+ "5cf11136.58121"
+ ]
+ ]
+ },
+ {
+ "id": "6f85c684.0cc928",
+ "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=\"Error updating vip-ipv4-address-list relationship to cp in AAI\" />\n",
+ "comments": "",
+ "x": 3280.3333473205566,
+ "y": 6250.357183933258,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "383b2271.606576",
+ "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=\"Not-found error updating vip-ipv4-address-list relationship to cp\" />\n",
+ "comments": "",
+ "x": 3280.500316619873,
+ "y": 6300.341357648373,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "1646f205.fdcaa6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3113.8332176208496,
+ "y": 6230.341557025909,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "6f85c684.0cc928",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "8458375f.c06d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3113.833293914795,
+ "y": 6283.341315746307,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "383b2271.606576",
+ "7d8d801d.5aba58"
+ ]
+ ]
+ },
+ {
+ "id": "6fc56971.00a6d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2957.000102996826,
+ "y": 6230.357226848602,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "1646f205.fdcaa6"
+ ]
+ ]
+ },
+ {
+ "id": "5cf11136.58121",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2965.571636199951,
+ "y": 6282.9763712883,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8458375f.c06d8"
+ ]
+ ]
+ },
+ {
+ "id": "7256be96.3662d",
+ "type": "for",
+ "name": "for each vnfc-network-role",
+ "xml": "<for silentFailure='true' index='vnfc-network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2048.6665992736816,
+ "y": 6580.357346057892,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "6947a958.cfef3"
+ ]
+ ]
+ },
+ {
+ "id": "8da01247.1c11d8",
+ "type": "save",
+ "name": "save vip-ipv6-address-list relationship to cp",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"vip-ipv6-address-list:relationship-list\"\n key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t AND vip-ipv6-address-list.vip-ipv6-address = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6[$ipv6-index]\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"cp\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/vnfcs/vnfc/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\n + '/cps/cp/'\n + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-role-index].connection-point.connection-point-id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2718.6665534973145,
+ "y": 6578.690128803253,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "d83f3f7b.caadf",
+ "cc62185e.d573c8"
+ ]
+ ]
+ },
+ {
+ "id": "540af8f6.c0c8e",
+ "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=\"Error updating vip-ipv4-address-list relationship to cp in AAI\" />\n",
+ "comments": "",
+ "x": 3276.9997749328613,
+ "y": 6572.023537158966,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "64f21f33.6807a",
+ "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=\"Not-found error updating vip-ipv4-address-list relationship to cp\" />\n",
+ "comments": "",
+ "x": 3277.1667442321777,
+ "y": 6622.007710874081,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "998fc046.d68f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3110.4996452331543,
+ "y": 6552.007910251617,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "540af8f6.c0c8e"
+ ]
+ ]
+ },
+ {
+ "id": "8dc96b01.474dd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3110.4997215270996,
+ "y": 6605.007668972015,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "64f21f33.6807a"
+ ]
+ ]
+ },
+ {
+ "id": "d83f3f7b.caadf",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2953.666530609131,
+ "y": 6552.02358007431,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "998fc046.d68f"
+ ]
+ ]
+ },
+ {
+ "id": "cc62185e.d573c8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2962.238063812256,
+ "y": 6604.642724514008,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8dc96b01.474dd"
+ ]
+ ]
+ },
+ {
+ "id": "2ff95408.117534",
+ "type": "switchNode",
+ "name": "switch network-roles match?",
+ "xml": "<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role\n == $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-role-index].vnfc-network-role`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2300.3332710266113,
+ "y": 6257.023613452911,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9475b87c.2a043"
+ ]
+ ]
+ },
+ {
+ "id": "9475b87c.2a043",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2487.000114440918,
+ "y": 6257.024100780487,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "35f11c05.060024"
+ ]
+ ]
+ },
+ {
+ "id": "6947a958.cfef3",
+ "type": "switchNode",
+ "name": "switch network-roles match?",
+ "xml": "<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role\n == $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-role-index].vnfc-network-role`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2296.9998512268066,
+ "y": 6578.690353870392,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e7b53b25.79cf28"
+ ]
+ ]
+ },
+ {
+ "id": "e7b53b25.79cf28",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2483.6666946411133,
+ "y": 6578.6908411979675,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "8da01247.1c11d8"
+ ]
+ ]
+ },
+ {
+ "id": "2376b6f4.a8ed0a",
+ "type": "comment",
+ "name": "SELF-SERVE FORK",
+ "info": "",
+ "comments": "",
+ "x": 666.7142944335938,
+ "y": 867.0476245880127,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "efcbebcc.14464",
+ "type": "call",
+ "name": "call self-serve-vf-module-assign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vf-module-assign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1199.749439239502,
+ "y": 911.964430809021,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "971d6518.2083a"
+ ]
+ ]
+ },
+ {
+ "id": "4f6ca91d.20b5c",
+ "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=\"`'Failed to create self-serve assignment for vf-module with vf-module-id=' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + ' with error: ' + $error-message`\" />\n",
+ "comments": "",
+ "x": 1583.820816040039,
+ "y": 911.9643812179565,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "971d6518.2083a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1420.047019958496,
+ "y": 911.4524621963501,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4f6ca91d.20b5c"
+ ]
+ ]
+ },
+ {
+ "id": "d92c2968.bb747",
+ "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": 1146.6186828613281,
+ "y": 1061.809350013733,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "c5876c75.baaed",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnfend.log' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1138.6662254333496,
+ "y": 1016.3008937835693,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "be93c800.e962c8",
+ "type": "set",
+ "name": "set order-status to PendingCreate",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status'\n value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-action'\n value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",
+ "comments": "",
+ "x": 1209.3567428588867,
+ "y": 965.2617883682251,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "3eddc68c.a493ea",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 920.4521713256836,
+ "y": 911.6425924301147,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "efcbebcc.14464",
+ "be93c800.e962c8",
+ "c5876c75.baaed",
+ "d92c2968.bb747"
+ ]
+ ]
+ },
+ {
+ "id": "8086d3c6.2981",
+ "type": "comment",
+ "name": "First, count the subnets for this address family",
+ "info": "",
+ "comments": "",
+ "x": 2662.0004081726074,
+ "y": 3189.9997692108154,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "fd0458e9.351b28",
+ "type": "for",
+ "name": "for each subnet-data",
+ "xml": "<for index='subnet-data-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3035.333095550537,
+ "y": 3485.0002727508545,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "9c5ef8eb.9a7678"
+ ]
+ ]
+ },
+ {
+ "id": "9c5ef8eb.9a7678",
+ "type": "switchNode",
+ "name": "address-families match?",
+ "xml": "<switch test='`$tmp.address-family\n == $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].ip-version`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3261.9997215270996,
+ "y": 3485.0002727508545,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "33f6db20.0ff7f4"
+ ]
+ ]
+ },
+ {
+ "id": "33f6db20.0ff7f4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3441.999687194824,
+ "y": 3485.0006790161133,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "54c3098c.899198"
+ ]
+ ]
+ },
+ {
+ "id": "ff243880.f35278",
+ "type": "set",
+ "name": "set af-count to 0",
+ "xml": "<set>\n<parameter name='af-count' value='0' />\n",
+ "comments": "",
+ "x": 2516.9999809265137,
+ "y": 3231.6665210723877,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "38b83402.0da80c",
+ "type": "set",
+ "name": "increment af-count",
+ "xml": "<set>\n<parameter name='af-count' value='`$af-count + 1`' />\n",
+ "comments": "",
+ "x": 3265.3333473205566,
+ "y": 3298.3332710266113,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "788f6a84.68199c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3081.9997215270996,
+ "y": 3279.9999561309814,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "38b83402.0da80c",
+ "3fbd6c40.04a2bc"
+ ]
+ ]
+ },
+ {
+ "id": "3fbd6c40.04a2bc",
+ "type": "set",
+ "name": "set subnet-id",
+ "xml": "<set>\n<parameter name='subnet-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].sdnc-subnet-id`' />\n",
+ "comments": "",
+ "x": 3246.999767303467,
+ "y": 3253.3332691192627,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "6cdf3e0.84820c4",
+ "type": "switchNode",
+ "name": "switch af-count",
+ "xml": "<switch test='`$af-count`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2507.0003929138184,
+ "y": 3468.3334379196167,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "a4b2346f.f87cb",
+ "33300284.96a34e"
+ ]
+ ]
+ },
+ {
+ "id": "a4b2346f.f87cb",
+ "type": "outcome",
+ "name": "1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2666.999912261963,
+ "y": 3366.666606903076,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "ad8dd57b.16b9d"
+ ]
+ ]
+ },
+ {
+ "id": "ad8dd57b.16b9d",
+ "type": "set",
+ "name": "set subnet-id in vnfc-ip-assignments (temp variable)",
+ "xml": "<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-networks.vnfc-network-data[$vnfc-network-index].vnfc-subnet[$subnet-role-index].vnfc-ip-assignments[$address-family-index].subnet-id'\n value='`$subnet-id`' />\n",
+ "comments": "",
+ "x": 2940.3332176208496,
+ "y": 3364.9999561309814,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "33300284.96a34e",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2666.999828338623,
+ "y": 3568.333526611328,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "459f9c7c.facbf4"
+ ]
+ ]
+ },
+ {
+ "id": "459f9c7c.facbf4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2823.6664695739746,
+ "y": 3568.3332080841064,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "ebf41120.205ed",
+ "fd0458e9.351b28",
+ "5250a99a.907d1",
+ "324552d3.28633e"
+ ]
+ ]
+ },
+ {
+ "id": "54c3098c.899198",
+ "type": "switchNode",
+ "name": "switch network-start-address",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].network-start-address`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3636.9998664855957,
+ "y": 3483.333522796631,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "50f46a5d.151964",
+ "b4045616.46c1e"
+ ]
+ ]
+ },
+ {
+ "id": "50f46a5d.151964",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3833.6667137145996,
+ "y": 3418.333133459091,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "fa79e796.718bc"
+ ]
+ ]
+ },
+ {
+ "id": "b4045616.46c1e",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3826.7621116638184,
+ "y": 3552.61904501915,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "91359939.322c88"
+ ]
+ ]
+ },
+ {
+ "id": "91359939.322c88",
+ "type": "switchNode",
+ "name": "switch cidr-mask",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].cidr-mask`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3981.9999046325684,
+ "y": 3551.666251897812,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "fa078de2.dc1ae",
+ "21622a4.a2fe356"
+ ]
+ ]
+ },
+ {
+ "id": "fa078de2.dc1ae",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4136.999980926514,
+ "y": 3481.6665513515472,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "4d5413f9.62c7c4"
+ ]
+ ]
+ },
+ {
+ "id": "21622a4.a2fe356",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4140.095777511597,
+ "y": 3614.2856385707855,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "62a4f148.c202c"
+ ]
+ ]
+ },
+ {
+ "id": "14889e9b.6b5371",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2008.666591644287,
+ "y": 3088.3332080841064,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "22b591c4.2e4326"
+ ]
+ ]
+ },
+ {
+ "id": "82e555ca.39e4b",
+ "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 subnet id '\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].sdnc-subnet-id\n + ' does not have network-start-address populated'`\" />\n\n\n\n",
+ "comments": "",
+ "x": 4142.000217437744,
+ "y": 3433.332970380783,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "fa79e796.718bc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3978.6666412353516,
+ "y": 3418.332900762558,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "82e555ca.39e4b",
+ "404dfa80.b1344c"
+ ]
+ ]
+ },
+ {
+ "id": "926e57f0.46dc88",
+ "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 subnet id '\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-network-index].subnets-data.subnet-data[$subnet-data-index].sdnc-subnet-id\n + ' does not have cidr-mask populated'`\" />\n\n\n\n",
+ "comments": "",
+ "x": 4447.000072479248,
+ "y": 3494.9998376369476,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "4d5413f9.62c7c4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4283.6664962768555,
+ "y": 3479.9997680187225,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "926e57f0.46dc88",
+ "404dfa80.b1344c"
+ ]
+ ]
+ },
+ {
+ "id": "a6a5fc58.d573a",
+ "type": "comment",
+ "name": "Ignore address families with no addresses",
+ "info": "",
+ "comments": "",
+ "x": 2282.9999656677246,
+ "y": 3018.6667041778564,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "57662986.d12c8",
+ "type": "switchNode",
+ "name": "switch invariant-uuid",
+ "xml": "<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].invariant-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1253.666805267334,
+ "y": 4648.333082199097,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "bca552ea.8dcc08",
+ "1bc6e4fe.e7fc03"
+ ]
+ ]
+ },
+ {
+ "id": "bca552ea.8dcc08",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1435.3332176208496,
+ "y": 4624.999711990356,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "e71566e3.c745c8"
+ ]
+ ]
+ },
+ {
+ "id": "1bc6e4fe.e7fc03",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1433.4284896850586,
+ "y": 4671.785539627075,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "ce29a815.f5683"
+ ]
+ ]
+ },
+ {
+ "id": "e71566e3.c745c8",
+ "type": "save",
+ "name": "save vnfc to A&AI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vnfc\" \n\tkey=\"vnfc.vnfc-name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\" >\n<parameter name=\"vnfc-name\" value=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name`\" />\n<parameter name=\"nfc-naming-code\" value=\"`$tmp.nfc-naming-code`\" />\n<parameter name=\"nfc-function\" value=\"`$tmp.nfc-function`\" />\n<parameter name=\"orchestration-status\" value=\"`PendingCreate`\" />\n<parameter name=\"in-maint\" value=\"true\" />\n<parameter name=\"prov-status\" value=\"`PREPROV`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1596.999843597412,
+ "y": 4626.666704177856,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "b05fd296.8c44d8",
+ "9ce78c9c.21d2e"
+ ]
+ ]
+ },
+ {
+ "id": "498f5a29.9e1ca4",
+ "type": "switchNode",
+ "name": "switch input cloud-owner",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.cloud-owner`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 532.7141952514648,
+ "y": 256.9047336578369,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "93f5de2c.13776",
+ "5d086485.c917c4"
+ ]
+ ]
+ },
+ {
+ "id": "93f5de2c.13776",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 716.0475692749023,
+ "y": 226.90472221374512,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "201ec95d.e95dfe"
+ ]
+ ]
+ },
+ {
+ "id": "5d086485.c917c4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 715.8094749450684,
+ "y": 267.85721588134766,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "404d471f.ff2ab"
+ ]
+ ]
+ },
+ {
+ "id": "201ec95d.e95dfe",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 851.0475234985352,
+ "y": 225.23806190490723,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "404d471f.ff2ab",
+ "type": "set",
+ "name": "set prop.cloud-region.cloud-owner",
+ "xml": "<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$vf-module-topology-operation-input.vf-module-request-input.cloud-owner`' />\n",
+ "comments": "",
+ "x": 932.7141799926758,
+ "y": 266.9047431945801,
+ "z": "112fab3d.a10d2d",
+ "wires": []
+ },
+ {
+ "id": "f0c546c1.be6dc",
+ "type": "call",
+ "name": "call self-serve-vf-module-forking-logic",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vf-module-forking-logic' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 564.3015670776367,
+ "y": 808.2980642318726,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "40af7b28.67ea64",
+ "type": "switchNode",
+ "name": "switch ss.self-serve-flag",
+ "xml": "<switch test=\"`$ss.self-serve-flag`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 522.4443054199219,
+ "y": 1035.2981328964233,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "6edbe4f3.864dc4",
+ "bb5f378d.ec1c2"
+ ]
+ ]
+ },
+ {
+ "id": "6edbe4f3.864dc4",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 743.158504486084,
+ "y": 1152.869031906128,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "72f655d6.4f3d74"
+ ]
+ ]
+ },
+ {
+ "id": "bb5f378d.ec1c2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 743.7299575805664,
+ "y": 911.7266693115234,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ [
+ "3eddc68c.a493ea"
+ ]
+ ]
+ },
+ {
+ "id": "69eb61e5.2ebc48",
+ "type": "call",
+ "name": "call check for VNF-API-preload and copy",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='gw-vfmodule-update' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 473,
+ "y": 7237,
+ "z": "112fab3d.a10d2d",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json index bd279399..8dd29ed3 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json @@ -1,1305 +1,1320 @@ -[ - { - "id": "ad2ef973.e6a378", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 131, - "y": 55, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "151183ce.27c78c" - ] - ] - }, - { - "id": "151183ce.27c78c", - "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.00000381469727, - "y": 129.000018119812, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "89afc74f.956348" - ] - ] - }, - { - "id": "89afc74f.956348", - "type": "method", - "name": "sdwan-attachment-topology-operation-create", - "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n", - "comments": "", - "outputs": 1, - "x": 302.0001220703125, - "y": 217.00000095367432, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "580de8c5.e06e78" - ] - ] - }, - { - "id": "580de8c5.e06e78", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 222.00005340576172, - "y": 966.0002489089966, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "1fbb291d.155017", - "f8c6b86f.980db8", - "655b6d38.675514", - "87b8ca30.cf86e8", - "3718c342.00f4ac", - "3fc33b48.8d6bf4", - "15c0d821.288668", - "99b25b64.985da8", - "cc1d8a7e.c8e908", - "aec371b2.f4eb6", - "7c0d6a4c.141ba4", - "605ed84a.e90ef8", - "cf809c65.e205f", - "5ffc39de.e33178", - "b70e6d89.61807", - "2fe0bf35.0314b", - "4b90a515.ea737c", - "30825693.105b0a", - "a79587b.c624178", - "9d0211a4.58ce8", - "5c590a79.9e0264", - "adeabb6e.cf7758", - "7ee858c0.930c58" - ] - ] - }, - { - "id": "74beb7.011b0148", - "type": "comment", - "name": "Set allotted resource id if not sent by SO", - "info": "", - "comments": "", - "x": 706.0767517089844, - "y": 126.43391990661621, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "1fbb291d.155017", - "type": "switchNode", - "name": "switch allotted-resource-id", - "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n", - "comments": "", - "outputs": 1, - "x": 652.0000305175781, - "y": 181.99999332427979, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "4a85a033.b553c", - "de2e876a.0ba078" - ] - ] - }, - { - "id": "4a85a033.b553c", - "type": "outcome", - "name": "NULL", - "xml": "<outcome value=''>", - "comments": "", - "outputs": 1, - "x": 850.0001182556152, - "y": 151.999981880188, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "63eb9d84.765954" - ] - ] - }, - { - "id": "de2e876a.0ba078", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 849.0000267028809, - "y": 188.99999237060547, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "eef884cd.26a128" - ] - ] - }, - { - "id": "eef884cd.26a128", - "type": "set", - "name": "set tmp.ar.allotted-resource-id", - "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n", - "comments": "", - "x": 1047.000015258789, - "y": 186.0000114440918, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "f8c6b86f.980db8", - "type": "set", - "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n", - "comments": "", - "x": 619.9999542236328, - "y": 403.0001001358032, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "655b6d38.675514", - "type": "execute", - "name": "execute Properties", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n", - "comments": "", - "outputs": 1, - "x": 620.2618713378906, - "y": 484.6667814254761, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - }, - { - "id": "87b8ca30.cf86e8", - "type": "execute", - "name": "generate allotted-resource tmp.ar-url", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n", - "comments": "", - "outputs": 1, - "x": 673.2619323730469, - "y": 571.6666994094849, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - }, - { - "id": "63eb9d84.765954", - "type": "execute", - "name": "execute tmp.ar.allotted-resource-id", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n", - "comments": "", - "outputs": 1, - "x": 1065.0000953674316, - "y": 152.9999876022339, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "7fcc0333.e4b76c" - ] - ] - }, - { - "id": "7fcc0333.e4b76c", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 1283.0001373291016, - "y": 152.99995136260986, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "dc8faa82.0a80d8" - ] - ] - }, - { - "id": "dc8faa82.0a80d8", - "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 allotted resource ID\" />\n", - "comments": "", - "x": 1449.0000915527344, - "y": 152.9999656677246, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "83948a24.3af768", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1179.0002307891846, - "y": 643.7778720855713, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "64a66d0e.2cab24" - ] - ] - }, - { - "id": "fd6c452f.f52a18", - "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=\"Error: Existing connection attachment allotted resource\" />\n \n", - "comments": "", - "x": 1912.5186100006104, - "y": 644.8439435958862, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "df1c313d.a9cf4", - "type": "comment", - "name": "Check for non existence of allotted resource", - "info": "", - "comments": "", - "x": 1035.0001525878906, - "y": 577.7779388427734, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "3c6b3ac8.5f54b6", - "type": "for", - "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]", - "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n", - "comments": "", - "outputs": 1, - "x": 1555.6666984558105, - "y": 788.0000512599945, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "e0e0a661.74b9e8" - ] - ] - }, - { - "id": "3fc33b48.8d6bf4", - "type": "switchNode", - "name": "switch service-data.consumed-allotted-resources_length", - "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n", - "comments": "", - "outputs": 1, - "x": 737.6660232543945, - "y": 764.7140836715698, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "98246edb.9d503", - "303d6837.0384d8" - ] - ] - }, - { - "id": "98246edb.9d503", - "type": "other", - "name": "outcome Null", - "xml": "<outcome value=''>\n", - "comments": "", - "outputs": 1, - "x": 1041.8089218139648, - "y": 733.5715208053589, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "1bc15eed.fd45b1" - ] - ] - }, - { - "id": "303d6837.0384d8", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1018.8089714050293, - "y": 794.571475982666, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "b930de42.50a21" - ] - ] - }, - { - "id": "b930de42.50a21", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1178.9360618591309, - "y": 792.697452545166, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "3c6b3ac8.5f54b6", - "7d532296.0d9bfc", - "6dd5cf93.f0258" - ] - ] - }, - { - "id": "1bc15eed.fd45b1", - "type": "set", - "name": "set cidx", - "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n", - "comments": "", - "x": 1191.6659049987793, - "y": 731.2855710983276, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "15c0d821.288668", - "type": "set", - "name": "set consumed allotted resources", - "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n", - "comments": "", - "x": 666.5233154296875, - "y": 868.2856483459473, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "7d532296.0d9bfc", - "type": "switchNode", - "name": "switch tmp.found-cidx", - "xml": "<switch test='`$tmp.found-cidx`'>\n", - "comments": "", - "outputs": 1, - "x": 1368.0511093139648, - "y": 824.708975315094, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "106270aa.e9c6ff" - ] - ] - }, - { - "id": "106270aa.e9c6ff", - "type": "outcomeTrue", - "name": "false", - "xml": "<outcome value='false'>\n", - "comments": "", - "outputs": 1, - "x": 1558.0510635375977, - "y": 824.7089123725891, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "e1144596.6d5ba8" - ] - ] - }, - { - "id": "e1144596.6d5ba8", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1724.0510635375977, - "y": 824.7089123725891, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "b93f3869.6459e8" - ] - ] - }, - { - "id": "e0e0a661.74b9e8", - "type": "switchNode", - "name": "switch allotted-resource-id", - "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n", - "comments": "", - "outputs": 1, - "x": 1972.7783279418945, - "y": 785.000078201294, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "326d00a0.76b6c" - ] - ] - }, - { - "id": "326d00a0.76b6c", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2154.587902069092, - "y": 785.4645252227783, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "cec76fbc.ec734" - ] - ] - }, - { - "id": "b93f3869.6459e8", - "type": "set", - "name": "set tmp.cidx", - "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n", - "comments": "", - "x": 1885.924446105957, - "y": 824.2206134796143, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "9dc9afd9.071d8", - "type": "comment", - "name": "Add to consumed service consumed-allotted-resources in mdsal", - "info": "Prepare data and add to service-data", - "comments": "", - "x": 758.667236328125, - "y": 695.0000476837158, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "79d72e28.e5bf", - "type": "comment", - "name": "This set resource will be added to MDSAL by provider code", - "info": "Below we add to service-data.consumed-allotted-resource at last index", - "comments": "", - "x": 746.0001525878906, - "y": 833.7781400680542, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "7ee858c0.930c58", - "type": "update", - "name": "save AAI allotted-resource", - "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"role\" value=\"`$prop.connection-attachment.role`\" />\t\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sdwanVpnName`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Created\" />\n", - "comments": "", - "outputs": 1, - "x": 656.6908569335938, - "y": 1793.531904220581, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "54e2f563.b3af5c", - "291816ed.18393a" - ] - ] - }, - { - "id": "54e2f563.b3af5c", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 851.4527931213379, - "y": 1784.4845056533813, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "a3778d99.3c015" - ] - ] - }, - { - "id": "a3778d99.3c015", - "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=\"AAI failed\" />\n", - "comments": "", - "x": 1017.9766731262207, - "y": 1796.1035766601562, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "291816ed.18393a", - "type": "failure", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 858.5480804443359, - "y": 1817.246473312378, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "a3778d99.3c015" - ] - ] - }, - { - "id": "ac365c56.4b2", - "type": "comment", - "name": "Save Resource to AAI", - "info": "", - "comments": "", - "x": 690.5005340576172, - "y": 1761.833875656128, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "81ef7e04.cd917", - "type": "comment", - "name": "Set allotted resource type if not sent by SO", - "info": "", - "comments": "", - "x": 692, - "y": 235.00000095367432, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "3718c342.00f4ac", - "type": "switchNode", - "name": "switch allotted-resource-type", - "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n", - "comments": "", - "outputs": 1, - "x": 653.9233093261719, - "y": 275.5660572052002, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "64aa0e9c.b1d09", - "7800ea8d.a7f124" - ] - ] - }, - { - "id": "64aa0e9c.b1d09", - "type": "outcome", - "name": "NULL", - "xml": "<outcome value=''>", - "comments": "", - "outputs": 1, - "x": 856.9234619140625, - "y": 260.56606006622314, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "f530af4a.706e5" - ] - ] - }, - { - "id": "7800ea8d.a7f124", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 849.9232902526855, - "y": 300.5660800933838, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "7a986711.0ca2d8" - ] - ] - }, - { - "id": "7a986711.0ca2d8", - "type": "set", - "name": "set tmp.ar.allotted-resource-type", - "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n", - "comments": "", - "x": 1081.9232749938965, - "y": 300.56608486175537, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "369cb772.706cb8", - "type": "comment", - "name": "For storage in AAI connection-attachment-topology", - "info": "", - "comments": "", - "x": 716.9999618530273, - "y": 370.0000009536743, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "492255d4.2adf4c", - "type": "comment", - "name": "Obtain different URL, template location etc", - "info": "For saving resource information to MDSAL & for AAI", - "comments": "", - "x": 691.9999465942383, - "y": 451.8889102935791, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "ddea3893.c96cd8", - "type": "comment", - "name": "Used for Put AR by id to MDSAL", - "info": "", - "comments": "", - "x": 658.0000305175781, - "y": 540.8889274597168, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "a440e95e.3176f8", - "type": "comment", - "name": "Obtain the last index in services", - "info": "ServiceData is added by Provider code", - "comments": "", - "x": 659.4444732666016, - "y": 726.8888721466064, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "a79587b.c624178", - "type": "set", - "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", - "comments": "", - "x": 642.2681427001953, - "y": 1700.359203338623, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "9d0211a4.58ce8", - "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": 610.6812286376953, - "y": 1862.9749298095703, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "f530af4a.706e5", - "type": "set", - "name": "set tmp.ar.allotted-resource-type", - "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n", - "comments": "", - "x": 1096.0001487731934, - "y": 260.99998664855957, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "30825693.105b0a", - "type": "execute", - "name": "execute RestApiCallNode - PUT AR by id", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n", - "comments": "", - "outputs": 1, - "x": 693.0002746582031, - "y": 1634.00013256073, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "7725804e.b7ea", - "ff126c78.d9f65", - "34ce7aa1.c96186" - ] - ] - }, - { - "id": "7725804e.b7ea", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 942.6416282653809, - "y": 1672.3314628601074, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "d7cd6db2.d2286" - ] - ] - }, - { - "id": "ff126c78.d9f65", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 933.6416778564453, - "y": 1640.831488609314, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "d7cd6db2.d2286" - ] - ] - }, - { - "id": "34ce7aa1.c96186", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 937.391716003418, - "y": 1611.1885934844613, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "6ccc24c6.03b4dc" - ] - ] - }, - { - "id": "d7cd6db2.d2286", - "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n", - "comments": "", - "x": 1103.391716003418, - "y": 1641.5815124511719, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "6ccc24c6.03b4dc", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1079.0476837158203, - "y": 1607.3807626739144, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - }, - { - "id": "7c0d6a4c.141ba4", - "type": "execute", - "name": "execute RestApiCallNode - Update parent provided service AR", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n", - "comments": "", - "outputs": 1, - "x": 757.9999542236328, - "y": 1150.000165939331, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "494a716e.866ba", - "227c3021.44dc4", - "ff8b452c.8d9bc8" - ] - ] - }, - { - "id": "494a716e.866ba", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 1066.3080139160156, - "y": 1181.998441696167, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "aaeb645f.80fed8" - ] - ] - }, - { - "id": "227c3021.44dc4", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 1057.30806350708, - "y": 1150.4984674453735, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "aaeb645f.80fed8" - ] - ] - }, - { - "id": "ff8b452c.8d9bc8", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1061.0581016540527, - "y": 1120.8555723205209, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "74f3a310.0128fc" - ] - ] - }, - { - "id": "aaeb645f.80fed8", - "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n", - "comments": "", - "x": 1227.0581016540527, - "y": 1151.2484912872314, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "74f3a310.0128fc", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1202.714069366455, - "y": 1117.047741509974, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - }, - { - "id": "9405156b.c649a8", - "type": "comment", - "name": "Put the parent allotted resource in mdsal", - "info": "", - "comments": "", - "x": 686.9999008178711, - "y": 1112.000072479248, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "cf809c65.e205f", - "type": "set", - "name": "set connection-attachment-ar-identifiers", - "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n", - "comments": "", - "x": 683.3570861816406, - "y": 1314.5716915130615, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "605ed84a.e90ef8", - "type": "set", - "name": "set ar-data", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />", - "comments": "", - "x": 603.2139129638672, - "y": 1282.381194114685, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "5ffc39de.e33178", - "type": "set", - "name": "set identifiers in overall structure", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n", - "comments": "", - "x": 662.1668853759766, - "y": 1348.6668767929077, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "b70e6d89.61807", - "type": "execute", - "name": "execute getTime", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n", - "comments": "", - "outputs": 1, - "x": 614.4997253417969, - "y": 1422.0004043579102, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - }, - { - "id": "2fe0bf35.0314b", - "type": "set", - "name": "set allotted-resource-oper-status", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n", - "comments": "", - "x": 665.4867630004883, - "y": 1477.9516372680664, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "4b90a515.ea737c", - "type": "set", - "name": "set model-data", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />", - "comments": "", - "x": 610.0553817749023, - "y": 1383.5557622909546, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "a3fd3ef0.9cf2", - "type": "comment", - "name": "Prepare data for allotted-resource addition to MDSAL", - "info": "This will add to allotted-resource which is present inside service.", - "comments": "", - "x": 727.3888702392578, - "y": 1248.5556087493896, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "aec371b2.f4eb6", - "type": "execute", - "name": "generate parent-ar url - replace allotted-resource-id", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n", - "comments": "", - "outputs": 1, - "x": 722.5000152587891, - "y": 1076.0000114440918, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - }, - { - "id": "cc1d8a7e.c8e908", - "type": "execute", - "name": "generate parent-ar url - replace service-instance-id", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n", - "comments": "", - "outputs": 1, - "x": 718.4999389648438, - "y": 1033.000147819519, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - }, - { - "id": "af622d17.e96e6", - "type": "comment", - "name": "Prepare Parent AR URL", - "info": "Preparation to set provided-allotted-resource in parent service instance", - "comments": "", - "x": 636.5003967285156, - "y": 962.0001010894775, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "99b25b64.985da8", - "type": "set", - "name": "set tmp.ar.parent-service-instance-id", - "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n", - "comments": "", - "x": 675.5001907348633, - "y": 995.5000405311584, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "cec76fbc.ec734", - "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=\"Error updating md-sal for connection-attachment-allotted-resource as cosumed allotted resource already exists.\" />\n", - "comments": "", - "x": 2232.7569732666016, - "y": 833.645830154419, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "6dd5cf93.f0258", - "type": "set", - "name": "set tmp.found-cidx", - "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n", - "comments": "", - "x": 1358.6461448669434, - "y": 745.3125731945038, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "fcf58d3f.726c9", - "type": "comment", - "name": "Add to parent services provided-allotted-resources in mdsal", - "info": "", - "comments": "", - "x": 747.2015075683594, - "y": 929.9792575836182, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "edb39741.2151b8", - "type": "comment", - "name": "Add to allotted-resources in mdsal", - "info": "", - "comments": "", - "x": 667.9686965942383, - "y": 1215.9689378738403, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "64a66d0e.2cab24", - "type": "block", - "name": "block: atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1341.000051498413, - "y": 643.2777614593506, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "c5b1dd9f.c626c" - ] - ] - }, - { - "id": "c5b1dd9f.c626c", - "type": "switchNode", - "name": "switch cr length", - "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n", - "comments": "", - "outputs": 1, - "x": 1528.8574314117432, - "y": 643.8968968391418, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "dea64b0a.33d1a8" - ] - ] - }, - { - "id": "dea64b0a.33d1a8", - "type": "other", - "name": "outcome 1", - "xml": "<outcome value='1'>\n", - "comments": "", - "outputs": 1, - "x": 1728.1905536651611, - "y": 643.896975517273, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "fd6c452f.f52a18" - ] - ] - }, - { - "id": "5c590a79.9e0264", - "type": "execute", - "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n", - "comments": "", - "outputs": 1, - "x": 813.0000534057617, - "y": 638.0000371932983, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "83948a24.3af768", - "a688402e.6a3a9" - ] - ] - }, - { - "id": "a688402e.6a3a9", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 1181.0000839233398, - "y": 608.0000352859497, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "a6697dc2.ce9f3" - ] - ] - }, - { - "id": "a6697dc2.ce9f3", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1333.0000839233398, - "y": 607.0000352859497, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - }, - { - "id": "adeabb6e.cf7758", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 619.0039215087891, - "y": 1553.2500038146973, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "96f36120.1f9af", - "6b505cd5.c78924" - ] - ] - }, - { - "id": "96f36120.1f9af", - "type": "for", - "name": "for each sdwan-get-request-input-param", - "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n", - "comments": "", - "outputs": 1, - "x": 954.0041198730469, - "y": 1499.2501260638237, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "7401fe63.179e9" - ] - ] - }, - { - "id": "4e61fb49.c94114", - "type": "comment", - "name": "Required for filling template values", - "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters", - "comments": "", - "x": 976.4486236572266, - "y": 1533.0832867622375, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "d4660c0f.147f3", - "type": "comment", - "name": "Remove VNFC prefix", - "info": "", - "comments": "", - "x": 1037.003963470459, - "y": 1455.6944618225098, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "7401fe63.179e9", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1201.0039672851562, - "y": 1500.6943712234497, - "z": "77e7049e.a5a37c", - "wires": [ - [ - "6a638cf5.ebb554", - "3e399a15.de4336" - ] - ] - }, - { - "id": "50ce4566.040d7c", - "type": "comment", - "name": "Take the parameter names by removing prefix", - "info": "", - "comments": "", - "x": 1469.0038146972656, - "y": 1416.250369310379, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "6a638cf5.ebb554", - "type": "execute", - "name": "execute split parameterName", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n", - "comments": "", - "outputs": 1, - "x": 1420.0384826660156, - "y": 1451.2294654846191, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - }, - { - "id": "3e399a15.de4336", - "type": "set", - "name": "set parameterName", - "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n", - "comments": "", - "x": 1408.4829559326172, - "y": 1555.2294359207153, - "z": "77e7049e.a5a37c", - "wires": [] - }, - { - "id": "6b505cd5.c78924", - "type": "call", - "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param", - "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n", - "comments": "", - "outputs": 1, - "x": 995.0039672851562, - "y": 1573.2500658035278, - "z": "77e7049e.a5a37c", - "wires": [ - [] - ] - } -] +[
+ {
+ "id": "41a7b6d3.f9b528",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 104.03125,
+ "y": 62.99999749660492,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f309be9c.cefce"
+ ]
+ ]
+ },
+ {
+ "id": "f309be9c.cefce",
+ "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": 287.03125381469727,
+ "y": 137.00001561641693,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "63686a7b.f7aa94"
+ ]
+ ]
+ },
+ {
+ "id": "63686a7b.f7aa94",
+ "type": "method",
+ "name": "sdwan-attachment-topology-operation-create",
+ "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 275.0313720703125,
+ "y": 224.99999845027924,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "445b402d.36165"
+ ]
+ ]
+ },
+ {
+ "id": "445b402d.36165",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 195.03130340576172,
+ "y": 974.0002464056015,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "57abe88c.4f1e28",
+ "da2ee563.ca49c8",
+ "d7db7598.ec6a58",
+ "b1a31713.a74f68",
+ "bb52c8b.9210938",
+ "e248322d.07f73",
+ "e3ed6a01.033e28",
+ "49207aa3.305be4",
+ "e7fc7beb.0c2218",
+ "fff0be1d.b2bcf",
+ "6737ccd9.1b9484",
+ "3d98ece2.536f54",
+ "279d04d9.311b7c",
+ "bd2101b.463ff",
+ "a593e64c.edffe8",
+ "ad258829.1a9fb8",
+ "d28d77a4.947808",
+ "b3ca8b3e.e57468",
+ "4f85eb.0fdeca14",
+ "4b8ef133.24669",
+ "3a0fc26c.48c2fe",
+ "13f594ad.41064b",
+ "571ae355.45c2fc",
+ "936a519f.07274"
+ ]
+ ]
+ },
+ {
+ "id": "f44d3a22.e968a8",
+ "type": "comment",
+ "name": "Set allotted resource id if not sent by SO",
+ "info": "",
+ "comments": "",
+ "x": 679.1080017089844,
+ "y": 134.43391740322113,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "57abe88c.4f1e28",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 625.0312805175781,
+ "y": 189.9999908208847,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "4ebc9e25.f0a41",
+ "c5e852a7.8a1b7"
+ ]
+ ]
+ },
+ {
+ "id": "4ebc9e25.f0a41",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 823.0313682556152,
+ "y": 159.9999793767929,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "80de8467.db5608"
+ ]
+ ]
+ },
+ {
+ "id": "c5e852a7.8a1b7",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 822.0312767028809,
+ "y": 196.9999898672104,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f37c96f7.6c5a88"
+ ]
+ ]
+ },
+ {
+ "id": "f37c96f7.6c5a88",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
+ "comments": "",
+ "x": 1020.0312652587891,
+ "y": 194.00000894069672,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "da2ee563.ca49c8",
+ "type": "set",
+ "name": "set tmp.ar.self-link",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "comments": "",
+ "x": 593.0312042236328,
+ "y": 411.00009763240814,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "d7db7598.ec6a58",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 593.2931213378906,
+ "y": 492.666778922081,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b1a31713.a74f68",
+ "type": "execute",
+ "name": "generate allotted-resource tmp.ar-url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 646.2931823730469,
+ "y": 579.6666969060898,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80de8467.db5608",
+ "type": "execute",
+ "name": "execute tmp.ar.allotted-resource-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1038.0313453674316,
+ "y": 160.9999850988388,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "827e9a97.124e48"
+ ]
+ ]
+ },
+ {
+ "id": "827e9a97.124e48",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1256.0313873291016,
+ "y": 160.99994885921478,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "153037d4.5daa68"
+ ]
+ ]
+ },
+ {
+ "id": "153037d4.5daa68",
+ "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 allotted resource ID\" />\n",
+ "comments": "",
+ "x": 1422.0313415527344,
+ "y": 160.99996316432953,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "8fcb37f5.98d048",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1152.0314807891846,
+ "y": 651.7778695821762,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "91db96ee.5f5ab8"
+ ]
+ ]
+ },
+ {
+ "id": "bc59ed7b.1de9c",
+ "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=\"Error: Existing connection attachment allotted resource\" />\n \n",
+ "comments": "",
+ "x": 1885.5498600006104,
+ "y": 652.8439410924911,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "b0f210fa.eabdf",
+ "type": "comment",
+ "name": "Check for non existence of allotted resource",
+ "info": "",
+ "comments": "",
+ "x": 1008.0314025878906,
+ "y": 585.7779363393784,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "a2101ce1.011fb",
+ "type": "for",
+ "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
+ "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1528.6979484558105,
+ "y": 796.0000487565994,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f78e26b6.71e388"
+ ]
+ ]
+ },
+ {
+ "id": "e248322d.07f73",
+ "type": "switchNode",
+ "name": "switch service-data.consumed-allotted-resources_length",
+ "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 710.6972732543945,
+ "y": 772.7140811681747,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "30dfa22f.78a2de",
+ "3fbb9163.26209e"
+ ]
+ ]
+ },
+ {
+ "id": "30dfa22f.78a2de",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1014.8401718139648,
+ "y": 741.5715183019638,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "a8a680b4.767d6"
+ ]
+ ]
+ },
+ {
+ "id": "3fbb9163.26209e",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 991.8402214050293,
+ "y": 802.5714734792709,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c3b51f9c.33bcc"
+ ]
+ ]
+ },
+ {
+ "id": "c3b51f9c.33bcc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1151.9673118591309,
+ "y": 800.6974500417709,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "a2101ce1.011fb",
+ "e3a80e4a.14e7d",
+ "6c9a2abd.a627f4"
+ ]
+ ]
+ },
+ {
+ "id": "a8a680b4.767d6",
+ "type": "set",
+ "name": "set cidx",
+ "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
+ "comments": "",
+ "x": 1164.6971549987793,
+ "y": 739.2855685949326,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e3ed6a01.033e28",
+ "type": "set",
+ "name": "set consumed allotted resources",
+ "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
+ "comments": "",
+ "x": 639.5545654296875,
+ "y": 876.2856458425522,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e3a80e4a.14e7d",
+ "type": "switchNode",
+ "name": "switch tmp.found-cidx",
+ "xml": "<switch test='`$tmp.found-cidx`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1341.0823593139648,
+ "y": 832.7089728116989,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "cbb92020.3ddcd"
+ ]
+ ]
+ },
+ {
+ "id": "cbb92020.3ddcd",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1531.0823135375977,
+ "y": 832.708909869194,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "808efd55.65f55"
+ ]
+ ]
+ },
+ {
+ "id": "808efd55.65f55",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1697.0823135375977,
+ "y": 832.708909869194,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "6d2d79a2.093ad8"
+ ]
+ ]
+ },
+ {
+ "id": "f78e26b6.71e388",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1945.8095779418945,
+ "y": 793.0000756978989,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "b1c9d43a.bd2f08"
+ ]
+ ]
+ },
+ {
+ "id": "b1c9d43a.bd2f08",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2127.619152069092,
+ "y": 793.4645227193832,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "1288ae5b.1e1ce2"
+ ]
+ ]
+ },
+ {
+ "id": "6d2d79a2.093ad8",
+ "type": "set",
+ "name": "set tmp.cidx",
+ "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
+ "comments": "",
+ "x": 1858.955696105957,
+ "y": 832.2206109762192,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "8e24c24b.d6fc2",
+ "type": "comment",
+ "name": "Add to consumed service consumed-allotted-resources in mdsal",
+ "info": "Prepare data and add to service-data",
+ "comments": "",
+ "x": 731.698486328125,
+ "y": 703.0000451803207,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "2cffaf1f.4fc49",
+ "type": "comment",
+ "name": "This set resource will be added to MDSAL by provider code",
+ "info": "Below we add to service-data.consumed-allotted-resource at last index",
+ "comments": "",
+ "x": 719.0314025878906,
+ "y": 841.7781375646591,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "571ae355.45c2fc",
+ "type": "update",
+ "name": "save AAI allotted-resource",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"role\" value=\"`$prop.connection-attachment.role`\" />\t\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sdwanVpnName`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Created\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 629.7221069335938,
+ "y": 1801.531901717186,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "bad0c727.d486c8",
+ "6744df38.44f3c"
+ ]
+ ]
+ },
+ {
+ "id": "bad0c727.d486c8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 824.4840431213379,
+ "y": 1792.4845031499863,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "be610d32.68478"
+ ]
+ ]
+ },
+ {
+ "id": "be610d32.68478",
+ "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=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 991.0079231262207,
+ "y": 1804.1035741567612,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "6744df38.44f3c",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 831.5793304443359,
+ "y": 1825.2464708089828,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "be610d32.68478"
+ ]
+ ]
+ },
+ {
+ "id": "7ddcb0e1.3b36d",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 663.5317840576172,
+ "y": 1769.8338731527328,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "42977fdb.9150a",
+ "type": "comment",
+ "name": "Set allotted resource type if not sent by SO",
+ "info": "",
+ "comments": "",
+ "x": 665.03125,
+ "y": 242.99999845027924,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "bb52c8b.9210938",
+ "type": "switchNode",
+ "name": "switch allotted-resource-type",
+ "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 626.9545593261719,
+ "y": 283.5660547018051,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "ebcdd7cc.5ddb28",
+ "5e1b4704.ff03b8"
+ ]
+ ]
+ },
+ {
+ "id": "ebcdd7cc.5ddb28",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 829.9547119140625,
+ "y": 268.56605756282806,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "e292f924.218148"
+ ]
+ ]
+ },
+ {
+ "id": "5e1b4704.ff03b8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 822.9545402526855,
+ "y": 308.5660775899887,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "bc4b0c6b.6b5dc"
+ ]
+ ]
+ },
+ {
+ "id": "bc4b0c6b.6b5dc",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-type",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
+ "comments": "",
+ "x": 1054.9545249938965,
+ "y": 308.5660823583603,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e49aa8f1.f12588",
+ "type": "comment",
+ "name": "For storage in AAI connection-attachment-topology",
+ "info": "",
+ "comments": "",
+ "x": 690.0312118530273,
+ "y": 377.99999845027924,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "c0fccf31.3b1b7",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 665.0311965942383,
+ "y": 459.888907790184,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "100bd889.c313d7",
+ "type": "comment",
+ "name": "Used for Put AR by id to MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 631.0312805175781,
+ "y": 548.8889249563217,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "18c10c65.2f90b4",
+ "type": "comment",
+ "name": "Obtain the last index in services",
+ "info": "ServiceData is added by Provider code",
+ "comments": "",
+ "x": 632.4757232666016,
+ "y": 734.8888696432114,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "4f85eb.0fdeca14",
+ "type": "set",
+ "name": "set output to api handler",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "comments": "",
+ "x": 615.2993927001953,
+ "y": 1708.359200835228,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "4b8ef133.24669",
+ "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": 583.7125244140625,
+ "y": 1957.974946975708,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e292f924.218148",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-type",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
+ "comments": "",
+ "x": 1069.0313987731934,
+ "y": 268.9999841451645,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "b3ca8b3e.e57468",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT AR by id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 666.0315246582031,
+ "y": 1642.000130057335,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "891b6f50.0b8ca",
+ "17f28b89.81c5a4",
+ "6238cca6.7c6784"
+ ]
+ ]
+ },
+ {
+ "id": "891b6f50.0b8ca",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 915.6728782653809,
+ "y": 1680.3314603567123,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c7ada304.940bb"
+ ]
+ ]
+ },
+ {
+ "id": "17f28b89.81c5a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 906.6729278564453,
+ "y": 1648.8314861059189,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c7ada304.940bb"
+ ]
+ ]
+ },
+ {
+ "id": "6238cca6.7c6784",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 910.422966003418,
+ "y": 1619.1885909810662,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "9d842474.1d5df8"
+ ]
+ ]
+ },
+ {
+ "id": "c7ada304.940bb",
+ "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1076.422966003418,
+ "y": 1649.5815099477768,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "9d842474.1d5df8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1052.0789337158203,
+ "y": 1615.3807601705194,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6737ccd9.1b9484",
+ "type": "execute",
+ "name": "execute RestApiCallNode - Update parent provided service AR",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 731.0312042236328,
+ "y": 1158.000163435936,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "ce9d67c0.fef428",
+ "32ea0966.e31a46",
+ "8052d936.8da758"
+ ]
+ ]
+ },
+ {
+ "id": "ce9d67c0.fef428",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1039.3392639160156,
+ "y": 1189.998439192772,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "cecd64fe.528bd8"
+ ]
+ ]
+ },
+ {
+ "id": "32ea0966.e31a46",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1030.33931350708,
+ "y": 1158.4984649419785,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "cecd64fe.528bd8"
+ ]
+ ]
+ },
+ {
+ "id": "8052d936.8da758",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1034.0893516540527,
+ "y": 1128.8555698171258,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c4a631eb.caa38"
+ ]
+ ]
+ },
+ {
+ "id": "cecd64fe.528bd8",
+ "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1200.0893516540527,
+ "y": 1159.2484887838364,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "c4a631eb.caa38",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1175.745319366455,
+ "y": 1125.047739006579,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9c5665b2.ee98f8",
+ "type": "comment",
+ "name": "Put the parent allotted resource in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 660.0311508178711,
+ "y": 1120.000069975853,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "279d04d9.311b7c",
+ "type": "set",
+ "name": "set connection-attachment-ar-identifiers",
+ "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
+ "comments": "",
+ "x": 656.3883361816406,
+ "y": 1322.5716890096664,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "3d98ece2.536f54",
+ "type": "set",
+ "name": "set ar-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />",
+ "comments": "",
+ "x": 576.2451629638672,
+ "y": 1290.38119161129,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "bd2101b.463ff",
+ "type": "set",
+ "name": "set identifiers in overall structure",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n",
+ "comments": "",
+ "x": 635.1981353759766,
+ "y": 1356.6668742895126,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "a593e64c.edffe8",
+ "type": "execute",
+ "name": "execute getTime",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 587.5309753417969,
+ "y": 1430.000401854515,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ad258829.1a9fb8",
+ "type": "set",
+ "name": "set allotted-resource-oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
+ "comments": "",
+ "x": 638.5180130004883,
+ "y": 1485.9516347646713,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "d28d77a4.947808",
+ "type": "set",
+ "name": "set model-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
+ "comments": "",
+ "x": 583.0866317749023,
+ "y": 1391.5557597875595,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "23859bfe.f043f4",
+ "type": "comment",
+ "name": "Prepare data for allotted-resource addition to MDSAL",
+ "info": "This will add to allotted-resource which is present inside service.",
+ "comments": "",
+ "x": 700.4201202392578,
+ "y": 1256.5556062459946,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "fff0be1d.b2bcf",
+ "type": "execute",
+ "name": "generate parent-ar url - replace allotted-resource-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 695.5312652587891,
+ "y": 1084.0000089406967,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e7fc7beb.0c2218",
+ "type": "execute",
+ "name": "generate parent-ar url - replace service-instance-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 691.5311889648438,
+ "y": 1041.000145316124,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80cf2b3b.3e92b8",
+ "type": "comment",
+ "name": "Prepare Parent AR URL",
+ "info": "Preparation to set provided-allotted-resource in parent service instance",
+ "comments": "",
+ "x": 609.5316467285156,
+ "y": 970.0000985860825,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "49207aa3.305be4",
+ "type": "set",
+ "name": "set tmp.ar.parent-service-instance-id",
+ "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
+ "comments": "",
+ "x": 648.5314407348633,
+ "y": 1003.5000380277634,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "1288ae5b.1e1ce2",
+ "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=\"Error updating md-sal for connection-attachment-allotted-resource as cosumed allotted resource already exists.\" />\n",
+ "comments": "",
+ "x": 2205.7882232666016,
+ "y": 841.6458276510239,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "6c9a2abd.a627f4",
+ "type": "set",
+ "name": "set tmp.found-cidx",
+ "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
+ "comments": "",
+ "x": 1331.6773948669434,
+ "y": 753.3125706911087,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "57452405.e26b5c",
+ "type": "comment",
+ "name": "Add to parent services provided-allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 720.2327575683594,
+ "y": 937.9792550802231,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "6013a8b1.8cfec8",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 640.9999465942383,
+ "y": 1223.9689353704453,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "91db96ee.5f5ab8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1314.031301498413,
+ "y": 651.2777589559555,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "d36cd8c7.bbc8c8"
+ ]
+ ]
+ },
+ {
+ "id": "d36cd8c7.bbc8c8",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1501.8886814117432,
+ "y": 651.8968943357468,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c670c701.c3ff18"
+ ]
+ ]
+ },
+ {
+ "id": "c670c701.c3ff18",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1701.2218036651611,
+ "y": 651.8969730138779,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "bc59ed7b.1de9c"
+ ]
+ ]
+ },
+ {
+ "id": "3a0fc26c.48c2fe",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 786.0313034057617,
+ "y": 646.0000346899033,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "8fcb37f5.98d048",
+ "230adea5.52af62"
+ ]
+ ]
+ },
+ {
+ "id": "230adea5.52af62",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1154.0313339233398,
+ "y": 616.0000327825546,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f02fcbfc.47bf28"
+ ]
+ ]
+ },
+ {
+ "id": "f02fcbfc.47bf28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1306.0313339233398,
+ "y": 615.0000327825546,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "13f594ad.41064b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 592.0351715087891,
+ "y": 1561.2500013113022,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c4d3876.e194578",
+ "a56d9e1e.69cb5"
+ ]
+ ]
+ },
+ {
+ "id": "c4d3876.e194578",
+ "type": "for",
+ "name": "for each sdwan-get-request-input-param",
+ "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 927.0353698730469,
+ "y": 1507.2501235604286,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c009da24.7d2598"
+ ]
+ ]
+ },
+ {
+ "id": "654cbf55.2b8ad",
+ "type": "comment",
+ "name": "Required for filling template values",
+ "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
+ "comments": "",
+ "x": 949.4798736572266,
+ "y": 1541.0832842588425,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "eaf3595.bafe4a8",
+ "type": "comment",
+ "name": "Remove VNFC prefix",
+ "info": "",
+ "comments": "",
+ "x": 1010.035213470459,
+ "y": 1463.6944593191147,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "c009da24.7d2598",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1174.0352172851562,
+ "y": 1508.6943687200546,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "447c6486.c17b2c",
+ "fb95c554.72d748"
+ ]
+ ]
+ },
+ {
+ "id": "6b76a58c.b29a1c",
+ "type": "comment",
+ "name": "Take the parameter names by removing prefix",
+ "info": "",
+ "comments": "",
+ "x": 1442.0350646972656,
+ "y": 1424.250366806984,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "447c6486.c17b2c",
+ "type": "execute",
+ "name": "execute split parameterName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1393.0697326660156,
+ "y": 1459.229462981224,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fb95c554.72d748",
+ "type": "set",
+ "name": "set parameterName",
+ "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
+ "comments": "",
+ "x": 1381.5142059326172,
+ "y": 1563.2294334173203,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "a56d9e1e.69cb5",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 968.0352172851562,
+ "y": 1581.2500633001328,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "936a519f.07274",
+ "type": "save",
+ "name": "save allotted relationship in AAI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance:relationship-list\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id\" \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"allotted-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/business/customers/customer/' + $connection-attachment-topology-operation-input.service-information.global-customer-id + '/service-subscriptions/service-subscription/' + $connection-attachment-topology-operation-input.service-information.subscription-service-type + '/service-instances/service-instance/' + $connection-attachment-topology-operation-input.service-information.service-instance-id + '/allotted-resources/allotted-resource/' + $tmp.ar.allotted-resource-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"allotted-resource.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 641.0312767028809,
+ "y": 1884.531162261963,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json index 919c397a..d0888583 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json @@ -1,212 +1,212 @@ -[ - { - "id": "30fe9468.76f32c", - "type": "get-resource", - "name": "get-resource service-subscription", - "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data-tenant\">\n \n", - "comments": "", - "outputs": 1, - "x": 632.8652648925781, - "y": 374.2938051223755, - "z": "97aa802d.404bc", - "wires": [ - [ - "a889eb39.2fcd08", - "483504b1.ecba4c" - ] - ] - }, - { - "id": "516f9f53.00463", - "type": "switchNode", - "name": "switch temp-ub-sub-account-id", - "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n", - "comments": "", - "outputs": 1, - "x": 1044.8653564453125, - "y": 339.0438861846924, - "z": "97aa802d.404bc", - "wires": [ - [ - "f1e993a3.ae05f", - "6af3c030.9694c" - ] - ] - }, - { - "id": "f1e993a3.ae05f", - "type": "outcome", - "name": "NULL", - "xml": "<outcome value=''>", - "comments": "", - "outputs": 1, - "x": 1237.5798072814941, - "y": 313.043927192688, - "z": "97aa802d.404bc", - "wires": [ - [ - "be0f95e9.861918" - ] - ] - }, - { - "id": "6af3c030.9694c", - "type": "other", - "name": "Other", - "xml": "<outcome value='Other'>", - "comments": "", - "outputs": 1, - "x": 1237.8653717041016, - "y": 368.04388999938965, - "z": "97aa802d.404bc", - "wires": [ - [ - "3bf7a2b9.96247e" - ] - ] - }, - { - "id": "a889eb39.2fcd08", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 843.3651275634766, - "y": 347.0398635864258, - "z": "97aa802d.404bc", - "wires": [ - [ - "516f9f53.00463" - ] - ] - }, - { - "id": "483504b1.ecba4c", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 837.0437164306641, - "y": 399.2541751861572, - "z": "97aa802d.404bc", - "wires": [ - [ - "212060fe.4fc32" - ] - ] - }, - { - "id": "212060fe.4fc32", - "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=\"Error executing get token rest api\" />\n", - "comments": "", - "x": 989.7937164306641, - "y": 399.0042362213135, - "z": "97aa802d.404bc", - "wires": [] - }, - { - "id": "b6a8c3c7.8bc03", - "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": 212.86526489257812, - "y": 101.43669128417969, - "z": "97aa802d.404bc", - "wires": [ - [ - "68fe5032.b2685" - ] - ] - }, - { - "id": "f788aa3b.dab3e8", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 133.57955932617188, - "y": 39.19858169555664, - "z": "97aa802d.404bc", - "wires": [ - [ - "b6a8c3c7.8bc03" - ] - ] - }, - { - "id": "672a5bc8.7ace04", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 366.81766510009766, - "y": 338.0081157684326, - "z": "97aa802d.404bc", - "wires": [ - [ - "30fe9468.76f32c", - "ef87bbc7.0bf428" - ] - ] - }, - { - "id": "68fe5032.b2685", - "type": "method", - "name": "method sdwan-get-tenant-auth", - "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n", - "comments": "", - "outputs": 1, - "x": 224.57955932617188, - "y": 195.7849235534668, - "z": "97aa802d.404bc", - "wires": [ - [ - "672a5bc8.7ace04" - ] - ] - }, - { - "id": "3bf7a2b9.96247e", - "type": "set", - "name": "set prop.tenant-id", - "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n", - "comments": "", - "x": 1415.7224426269531, - "y": 367.15094566345215, - "z": "97aa802d.404bc", - "wires": [] - }, - { - "id": "ef87bbc7.0bf428", - "type": "execute", - "name": "execute RestApiCallNode Create tenant auth", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 660.3652954101562, - "y": 477.1866149902344, - "z": "97aa802d.404bc", - "wires": [ - [] - ] - }, - { - "id": "be0f95e9.861918", - "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=\"Error executing get token rest api\" />\n", - "comments": "", - "x": 1420.0080490112305, - "y": 312.86523628234863, - "z": "97aa802d.404bc", - "wires": [] - } -] +[
+ {
+ "id": "b8581db5.dbca7",
+ "type": "get-resource",
+ "name": "get-resource service-subscription",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data-tenant\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 597,
+ "y": 418.09522092342377,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "1a771e75.f79d12",
+ "ac62029.181ce"
+ ]
+ ]
+ },
+ {
+ "id": "5d45ba87.92c374",
+ "type": "switchNode",
+ "name": "switch temp-ub-sub-account-id",
+ "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1009.0000915527344,
+ "y": 382.84530198574066,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "5358b5db.d1e49c",
+ "28c300d9.7fa36"
+ ]
+ ]
+ },
+ {
+ "id": "5358b5db.d1e49c",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1201.714542388916,
+ "y": 356.84534299373627,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "831b80bb.e08e8"
+ ]
+ ]
+ },
+ {
+ "id": "28c300d9.7fa36",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1202.0001068115234,
+ "y": 411.8453058004379,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "e1a74ece.52f65"
+ ]
+ ]
+ },
+ {
+ "id": "1a771e75.f79d12",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 807.4998626708984,
+ "y": 390.84127938747406,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "5d45ba87.92c374"
+ ]
+ ]
+ },
+ {
+ "id": "ac62029.181ce",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 801.1784515380859,
+ "y": 443.0555909872055,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "f81e2009.7dbd5"
+ ]
+ ]
+ },
+ {
+ "id": "f81e2009.7dbd5",
+ "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=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 953.9284515380859,
+ "y": 442.80565202236176,
+ "z": "a703782b.2992b8",
+ "wires": []
+ },
+ {
+ "id": "4bd31b43.411d14",
+ "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,
+ "y": 145.23810708522797,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "d79d2c6f.11854"
+ ]
+ ]
+ },
+ {
+ "id": "c863bd10.503ce",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 97.71429443359375,
+ "y": 82.99999749660492,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "4bd31b43.411d14"
+ ]
+ ]
+ },
+ {
+ "id": "5dc11f37.9dd37",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 330.95240020751953,
+ "y": 381.8095315694809,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "b8581db5.dbca7",
+ "c8c0bf77.157a7"
+ ]
+ ]
+ },
+ {
+ "id": "d79d2c6f.11854",
+ "type": "method",
+ "name": "method sdwan-get-tenant-auth",
+ "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 188.71429443359375,
+ "y": 239.58633935451508,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "5dc11f37.9dd37"
+ ]
+ ]
+ },
+ {
+ "id": "e1a74ece.52f65",
+ "type": "set",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",
+ "comments": "",
+ "x": 1379.857177734375,
+ "y": 410.9523614645004,
+ "z": "a703782b.2992b8",
+ "wires": []
+ },
+ {
+ "id": "c8c0bf77.157a7",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 624.5000305175781,
+ "y": 520.9880307912827,
+ "z": "a703782b.2992b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "831b80bb.e08e8",
+ "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=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1384.1427841186523,
+ "y": 356.6666520833969,
+ "z": "a703782b.2992b8",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json index 3f7cbdc4..9d8b0292 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json @@ -1,847 +1,847 @@ -[ - { - "id": "b728dcab.e2e08", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 93, - "y": 47, - "z": "4c287bc.f107e84", - "wires": [ - [ - "f1013e83.11195" - ] - ] - }, - { - "id": "f1013e83.11195", - "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": 279.00000381469727, - "y": 119.0000171661377, - "z": "4c287bc.f107e84", - "wires": [ - [ - "4636719f.41274" - ] - ] - }, - { - "id": "4636719f.41274", - "type": "method", - "name": "method sdwan-network-topology-operation-activate", - "xml": "<method rpc='sdwan-network-topology-operation-activate' mode='sync'>\n", - "comments": "", - "outputs": 1, - "x": 267.0001220703125, - "y": 207, - "z": "4c287bc.f107e84", - "wires": [ - [ - "c7a7aadf.8ed488" - ] - ] - }, - { - "id": "c7a7aadf.8ed488", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 441.00001525878906, - "y": 315.0000591278076, - "z": "4c287bc.f107e84", - "wires": [ - [ - "98d3b92f.70fc48", - "189da6d2.5a6819", - "e988ff0f.b5aae", - "e4aad21c.e7ff7", - "39e02c84.3177e4", - "b96459be.6fd7a8", - "747d96dd.f43d58", - "39860903.53b456", - "69af4cc7.202f04", - "bc16f27b.ec50b", - "29cb6e2b.ecafd2", - "f71b9190.340d8", - "3eb35468.4702ac", - "d3877bd.f214188", - "73dbb3c3.f1d1fc", - "9bf6657f.dd37a8" - ] - ] - }, - { - "id": "98d3b92f.70fc48", - "type": "call", - "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters", - "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n", - "comments": "", - "outputs": 1, - "x": 899.3889007568359, - "y": 64, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "189da6d2.5a6819", - "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=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n", - "comments": "", - "outputs": 1, - "x": 699.5555992126465, - "y": 117.77785301208496, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "e988ff0f.b5aae", - "type": "set", - "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />", - "comments": "", - "x": 786.5558776855469, - "y": 1040.313469171524, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "e4aad21c.e7ff7", - "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": 708.3336791992188, - "y": 1229.868889093399, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "39e02c84.3177e4", - "type": "set", - "name": "set network-level-oper-status", - "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />", - "comments": "", - "x": 753.4447937011719, - "y": 1101.5356438159943, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "b96459be.6fd7a8", - "type": "execute", - "name": "execute Properties", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n", - "comments": "", - "outputs": 1, - "x": 731.8577041625977, - "y": 170.77788925170898, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "747d96dd.f43d58", - "type": "update", - "name": "update SDWAN VPN status to AAI", - "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanat-id' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />", - "comments": "", - "outputs": 1, - "x": 770.6635093688965, - "y": 1164.2388553619385, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "39860903.53b456", - "type": "set", - "name": "set network in service-data", - "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />", - "comments": "", - "x": 747.0004081726074, - "y": 987.0913031101227, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "69af4cc7.202f04", - "type": "for", - "name": "for each network-input-parameters", - "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n", - "comments": "", - "outputs": 1, - "x": 784, - "y": 241.00390753149986, - "z": "4c287bc.f107e84", - "wires": [ - [ - "e4f0bee4.ba4a3" - ] - ] - }, - { - "id": "e4f0bee4.ba4a3", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1040.8334312438965, - "y": 175.33725866675377, - "z": "4c287bc.f107e84", - "wires": [ - [ - "9e11c248.9eb9d", - "9793f672.805878" - ] - ] - }, - { - "id": "9e11c248.9eb9d", - "type": "switchNode", - "name": "switch name", - "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n", - "comments": "", - "outputs": 1, - "x": 1231.8334922790527, - "y": 171.33729109168053, - "z": "4c287bc.f107e84", - "wires": [ - [ - "8c9ad24.52d233" - ] - ] - }, - { - "id": "8c9ad24.52d233", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1405.8336181640625, - "y": 171.3372949063778, - "z": "4c287bc.f107e84", - "wires": [ - [ - "360dce92.bcd8b2" - ] - ] - }, - { - "id": "360dce92.bcd8b2", - "type": "set", - "name": "set name", - "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n", - "comments": "", - "x": 1568.8335037231445, - "y": 170.93728956580162, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "f71b9190.340d8", - "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 = 'SDWANController' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n", - "comments": "", - "outputs": 1, - "x": 778, - "y": 350.00390625, - "z": "4c287bc.f107e84", - "wires": [ - [ - "35c5eced.422b74", - "5db3feca.9679c", - "84542dcd.8c846" - ] - ] - }, - { - "id": "35c5eced.422b74", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1023, - "y": 296.00390753149986, - "z": "4c287bc.f107e84", - "wires": [ - [ - "b858bea3.dfbd9" - ] - ] - }, - { - "id": "5db3feca.9679c", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 1026.490966796875, - "y": 343.5779431760311, - "z": "4c287bc.f107e84", - "wires": [ - [ - "ea674168.c4155" - ] - ] - }, - { - "id": "84542dcd.8c846", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1021.823974609375, - "y": 384.91125616431236, - "z": "4c287bc.f107e84", - "wires": [ - [ - "95ebd94d.24be88" - ] - ] - }, - { - "id": "b858bea3.dfbd9", - "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.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n", - "comments": "", - "x": 1220.5000610351562, - "y": 284.00390753149986, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "ea674168.c4155", - "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n", - "comments": "", - "x": 1203.0623779296875, - "y": 331.8636792600155, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "95ebd94d.24be88", - "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 occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n", - "comments": "", - "x": 1209.5965309143066, - "y": 380.350448936224, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "3eb35468.4702ac", - "type": "execute", - "name": "execute RestApiCallNode Get token", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>", - "comments": "", - "outputs": 1, - "x": 786, - "y": 461.00390625, - "z": "4c287bc.f107e84", - "wires": [ - [ - "d801cca4.51d79", - "c1258051.e7f45" - ] - ] - }, - { - "id": "d801cca4.51d79", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1025.000072479248, - "y": 439.00393772125244, - "z": "4c287bc.f107e84", - "wires": [ - [ - "f717dae9.6ebf18" - ] - ] - }, - { - "id": "c1258051.e7f45", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 1017.250072479248, - "y": 492.6468210220337, - "z": "4c287bc.f107e84", - "wires": [ - [ - "d37810c8.811c7" - ] - ] - }, - { - "id": "f717dae9.6ebf18", - "type": "set", - "name": "set token-id", - "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n", - "comments": "", - "x": 1175, - "y": 440.00390625, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "d37810c8.811c7", - "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=\"Error executing get token rest api\" />\n", - "comments": "", - "x": 1170.000072479248, - "y": 492.39688205718994, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "9793f672.805878", - "type": "switchNode", - "name": "switch topology", - "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n", - "comments": "", - "outputs": 1, - "x": 1230.25, - "y": 224.00390753149986, - "z": "4c287bc.f107e84", - "wires": [ - [ - "cfe36c58.4801f" - ] - ] - }, - { - "id": "cfe36c58.4801f", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1404.2501258850098, - "y": 224.00391134619713, - "z": "4c287bc.f107e84", - "wires": [ - [ - "3cd1ca28.cc1526" - ] - ] - }, - { - "id": "3cd1ca28.cc1526", - "type": "set", - "name": "set topology", - "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n", - "comments": "", - "x": 1567.2500114440918, - "y": 223.60390600562096, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "d3877bd.f214188", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 707.7500457763672, - "y": 707.0040292739868, - "z": "4c287bc.f107e84", - "wires": [ - [ - "7110150.fd1e8ec" - ] - ] - }, - { - "id": "7110150.fd1e8ec", - "type": "execute", - "name": "execute RestApiCallNode Create network orchestration", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 1028.2501525878906, - "y": 696.0041122436523, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "bc16f27b.ec50b", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 710.2500152587891, - "y": 769.0039575994015, - "z": "4c287bc.f107e84", - "wires": [ - [ - "39c058d0.1d59d8", - "4d96e12b.86876", - "50f144c4.b6b2ac" - ] - ] - }, - { - "id": "4d96e12b.86876", - "type": "execute", - "name": "execute RestApiCallNode Create vpn", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\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=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 981.7500610351562, - "y": 759.0040815770626, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "39c058d0.1d59d8", - "type": "set", - "name": "set prop.vpn-id and prop.vpn1Id", - "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.success[0].id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.success[0].id`' />\n", - "comments": "", - "x": 977.7502174377441, - "y": 811.0041809082031, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "50f144c4.b6b2ac", - "type": "execute", - "name": "execute RestApiCallNode Create vpn topology", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn-id + '/topology'`\" />\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=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 1009.2500648498535, - "y": 863.0039558410645, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "29cb6e2b.ecafd2", - "type": "set", - "name": "set tenant-id to service-data", - "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='tenant-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.tenant-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />", - "comments": "", - "x": 745.2501525878906, - "y": 904.7540903091431, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "9bf6657f.dd37a8", - "type": "get-resource", - "name": "get-resource service-subscription", - "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n \n", - "comments": "", - "outputs": 1, - "x": 762.0715408325195, - "y": 611.6825218200684, - "z": "4c287bc.f107e84", - "wires": [ - [ - "fbe99e6e.4017e", - "457e75b8.5e8e7c" - ] - ] - }, - { - "id": "ba35b9dd.539428", - "type": "switchNode", - "name": "switch temp-ub-sub-account-id", - "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n", - "comments": "", - "outputs": 1, - "x": 1174.071632385254, - "y": 576.4326028823853, - "z": "4c287bc.f107e84", - "wires": [ - [ - "76b51f1a.0801", - "efbb35c.45c87c8" - ] - ] - }, - { - "id": "76b51f1a.0801", - "type": "outcome", - "name": "NULL", - "xml": "<outcome value=''>", - "comments": "", - "outputs": 1, - "x": 1366.78609085083, - "y": 550.432635307312, - "z": "4c287bc.f107e84", - "wires": [ - [ - "a2a000be.ae6b" - ] - ] - }, - { - "id": "efbb35c.45c87c8", - "type": "other", - "name": "Other", - "xml": "<outcome value='Other'>", - "comments": "", - "outputs": 1, - "x": 1367.071647644043, - "y": 605.4326066970825, - "z": "4c287bc.f107e84", - "wires": [ - [ - "864dc517.ee5aa8" - ] - ] - }, - { - "id": "5407a489.2a82dc", - "type": "set", - "name": "set prop.tenant-id", - "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n", - "comments": "", - "x": 1614.5002403259277, - "y": 690.5754070281982, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "a2a000be.ae6b", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1506.2499885559082, - "y": 550.7539038658142, - "z": "4c287bc.f107e84", - "wires": [ - [ - "d533a7b3.2b7aa8", - "68abe37a.a97c3c", - "ebb2a924.447738", - "3179cec4.da2412", - "df370d35.edba", - "5f23c930.bf33c8", - "d5098f7f.2d7c" - ] - ] - }, - { - "id": "3179cec4.da2412", - "type": "set", - "name": "set prop.customer-id", - "xml": "<set>\n<parameter name='prop.customer-id' value='`$ctx.network-data.service-information.global-customer-id`' />\n", - "comments": "", - "x": 1717.8930969238281, - "y": 361.3254642486572, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "d533a7b3.2b7aa8", - "type": "execute", - "name": "execute RestApiCallNode Create tenant", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants'`\" />\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=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 1776.8929138183594, - "y": 491.89675521850586, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "68abe37a.a97c3c", - "type": "set", - "name": "set prop.tenant-id", - "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n", - "comments": "", - "x": 1729.7502326965332, - "y": 616.753984451294, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "ebb2a924.447738", - "type": "execute", - "name": "execute RestApiCallNode Create tenant auth", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 1797.250228881836, - "y": 652.503984451294, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "df370d35.edba", - "type": "get-resource", - "name": "update-resource customer-id in service-subscription", - "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$tenant-result.data.tenantId`' />\n<!--parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' /-->\n\n\n", - "comments": "", - "outputs": 1, - "x": 1821.1786041259766, - "y": 552.8968715667725, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "fbe99e6e.4017e", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 972.571403503418, - "y": 584.4285802841187, - "z": "4c287bc.f107e84", - "wires": [ - [ - "ba35b9dd.539428" - ] - ] - }, - { - "id": "457e75b8.5e8e7c", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 966.2499923706055, - "y": 636.6428918838501, - "z": "4c287bc.f107e84", - "wires": [ - [ - "df05b13b.b352c" - ] - ] - }, - { - "id": "df05b13b.b352c", - "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=\"Error executing get token rest api\" />\n", - "comments": "", - "x": 1118.9999923706055, - "y": 636.3929529190063, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "73dbb3c3.f1d1fc", - "type": "set", - "name": "set vpn-id to service-data", - "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='vpn-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.vpn-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />", - "comments": "", - "x": 743.5000762939453, - "y": 942.5039682388306, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "864dc517.ee5aa8", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1425.7224044799805, - "y": 688.5795984268188, - "z": "4c287bc.f107e84", - "wires": [ - [ - "5407a489.2a82dc", - "75fd5cb0.1720a4" - ] - ] - }, - { - "id": "75fd5cb0.1720a4", - "type": "execute", - "name": "execute RestApiCallNode Create tenant auth", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 1697.1510009765625, - "y": 737.1510009765625, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - }, - { - "id": "5f23c930.bf33c8", - "type": "set", - "name": "set prop.userAccount", - "xml": "<set>\n<parameter name='prop.userAccount' value='`$tmp.userAccountEmail`' />\n<parameter name='prop.userEmail' value='`$tmp.userAccountEmail`' />", - "comments": "", - "x": 1718, - "y": 439, - "z": "4c287bc.f107e84", - "wires": [] - }, - { - "id": "d5098f7f.2d7c", - "type": "execute", - "name": "execute concat customer-id and @test.com", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n", - "comments": "", - "outputs": 1, - "x": 1793.0038757324219, - "y": 403.003942489624, - "z": "4c287bc.f107e84", - "wires": [ - [] - ] - } -] +[
+ {
+ "id": "803ab026.91f8f",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 107.03125,
+ "y": 31.031251907348633,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "c6313a09.482648"
+ ]
+ ]
+ },
+ {
+ "id": "c6313a09.482648",
+ "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": 293.03125381469727,
+ "y": 103.03126907348633,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "95ab199b.094c18"
+ ]
+ ]
+ },
+ {
+ "id": "95ab199b.094c18",
+ "type": "method",
+ "name": "method sdwan-network-topology-operation-activate",
+ "xml": "<method rpc='sdwan-network-topology-operation-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 281.0313720703125,
+ "y": 191.03125190734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "1c62871.b17ef79"
+ ]
+ ]
+ },
+ {
+ "id": "1c62871.b17ef79",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 455.03126525878906,
+ "y": 299.03131103515625,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "3b3f6a1b.7b4ca6",
+ "4e3bd6cb.ba9f78",
+ "694fbbd7.3f5854",
+ "17e80004.9e42d",
+ "285802e9.ef74ae",
+ "620b9b98.d14b04",
+ "8b0e2661.6611b8",
+ "418307b4.ccc048",
+ "96303f3f.254fa",
+ "2f6a3a39.effb56",
+ "e079dd14.d6c7f",
+ "c053f4f5.ddb828",
+ "9311c45c.c481e8",
+ "f2e5b424.d52178",
+ "9cac03d4.f972",
+ "9720bf6e.06444"
+ ]
+ ]
+ },
+ {
+ "id": "3b3f6a1b.7b4ca6",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 913.4201507568359,
+ "y": 48.03125190734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4e3bd6cb.ba9f78",
+ "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=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 713.5868492126465,
+ "y": 101.8091049194336,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "694fbbd7.3f5854",
+ "type": "set",
+ "name": "set networkId and network-object-path",
+ "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
+ "comments": "",
+ "x": 800.5871276855469,
+ "y": 1024.3447210788727,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "17e80004.9e42d",
+ "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": 722.3649291992188,
+ "y": 1213.9001410007477,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "285802e9.ef74ae",
+ "type": "set",
+ "name": "set network-level-oper-status",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
+ "comments": "",
+ "x": 767.4760437011719,
+ "y": 1085.566895723343,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "620b9b98.d14b04",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 745.8889541625977,
+ "y": 154.80914115905762,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8b0e2661.6611b8",
+ "type": "update",
+ "name": "update SDWAN VPN status to AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanat-id' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 784.6947593688965,
+ "y": 1148.270107269287,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "418307b4.ccc048",
+ "type": "set",
+ "name": "set network in service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
+ "comments": "",
+ "x": 761.0316581726074,
+ "y": 971.1225550174713,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "96303f3f.254fa",
+ "type": "for",
+ "name": "for each network-input-parameters",
+ "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 798.03125,
+ "y": 225.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "ce83acb3.4528a"
+ ]
+ ]
+ },
+ {
+ "id": "ce83acb3.4528a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1054.8646812438965,
+ "y": 159.3685105741024,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "ecc115d.f7101e8",
+ "d7b4205b.949d1"
+ ]
+ ]
+ },
+ {
+ "id": "ecc115d.f7101e8",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1245.8647422790527,
+ "y": 155.36854299902916,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "f5dbb094.881f6"
+ ]
+ ]
+ },
+ {
+ "id": "f5dbb094.881f6",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1419.8648681640625,
+ "y": 155.36854681372643,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "d151144e.a69038"
+ ]
+ ]
+ },
+ {
+ "id": "d151144e.a69038",
+ "type": "set",
+ "name": "set name",
+ "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1582.8647537231445,
+ "y": 154.96854147315025,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "c053f4f5.ddb828",
+ "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 = 'SDWANController' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 792.03125,
+ "y": 334.03515815734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "6d5ba109.a3671",
+ "90ffe3bf.39fcd",
+ "dbe2a88c.8b12f8"
+ ]
+ ]
+ },
+ {
+ "id": "6d5ba109.a3671",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1037.03125,
+ "y": 280.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "f907f929.492558"
+ ]
+ ]
+ },
+ {
+ "id": "90ffe3bf.39fcd",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1040.522216796875,
+ "y": 327.60919508337975,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "b624a8b6.bf4ac8"
+ ]
+ ]
+ },
+ {
+ "id": "dbe2a88c.8b12f8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1035.855224609375,
+ "y": 368.942508071661,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "7d3f8d7a.844044"
+ ]
+ ]
+ },
+ {
+ "id": "f907f929.492558",
+ "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.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
+ "comments": "",
+ "x": 1234.5313110351562,
+ "y": 268.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "b624a8b6.bf4ac8",
+ "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 1217.0936279296875,
+ "y": 315.8949311673641,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "7d3f8d7a.844044",
+ "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 occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 1223.6277809143066,
+ "y": 364.3817008435726,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "9311c45c.c481e8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 800.03125,
+ "y": 445.03515815734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "e9b6301b.a1571",
+ "27918c6e.3a59a4"
+ ]
+ ]
+ },
+ {
+ "id": "e9b6301b.a1571",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1039.031322479248,
+ "y": 423.0351896286011,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "25b0c9da.a209a6"
+ ]
+ ]
+ },
+ {
+ "id": "27918c6e.3a59a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1031.281322479248,
+ "y": 476.6780729293823,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "5b42d4fd.ac727c"
+ ]
+ ]
+ },
+ {
+ "id": "25b0c9da.a209a6",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 1189.03125,
+ "y": 424.03515815734863,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "5b42d4fd.ac727c",
+ "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=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1184.031322479248,
+ "y": 476.4281339645386,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "d7b4205b.949d1",
+ "type": "switchNode",
+ "name": "switch topology",
+ "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1244.28125,
+ "y": 208.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "9f3b4d42.904a6"
+ ]
+ ]
+ },
+ {
+ "id": "9f3b4d42.904a6",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1418.2813758850098,
+ "y": 208.03516325354576,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "c7a8b800.265778"
+ ]
+ ]
+ },
+ {
+ "id": "c7a8b800.265778",
+ "type": "set",
+ "name": "set topology",
+ "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1581.2812614440918,
+ "y": 207.6351579129696,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "f2e5b424.d52178",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 721.7812957763672,
+ "y": 691.0352811813354,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "be08c0ea.c5f31"
+ ]
+ ]
+ },
+ {
+ "id": "be08c0ea.c5f31",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create network orchestration",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1042.2814025878906,
+ "y": 680.035364151001,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2f6a3a39.effb56",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 724.2812652587891,
+ "y": 753.0352095067501,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "7ec8c1c5.bf91a",
+ "8dc97b4a.332098",
+ "cd1c7839.bb73a8"
+ ]
+ ]
+ },
+ {
+ "id": "8dc97b4a.332098",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create vpn",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\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=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 995.7813110351562,
+ "y": 743.0353334844112,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7ec8c1c5.bf91a",
+ "type": "set",
+ "name": "set prop.vpn-id and prop.vpn1Id",
+ "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.success[0].id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.success[0].id`' />\n",
+ "comments": "",
+ "x": 991.7814674377441,
+ "y": 795.0354328155518,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "cd1c7839.bb73a8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create vpn topology",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn-id + '/topology'`\" />\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=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1023.2813148498535,
+ "y": 847.0352077484131,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e079dd14.d6c7f",
+ "type": "set",
+ "name": "set tenant-id to service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='tenant-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.tenant-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
+ "comments": "",
+ "x": 759.2814025878906,
+ "y": 888.7853422164917,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "9720bf6e.06444",
+ "type": "get-resource",
+ "name": "get-resource service-subscription",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 776.1027908325195,
+ "y": 595.713773727417,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "bbcbdc4.862f32",
+ "4736bcfb.a0c9e4"
+ ]
+ ]
+ },
+ {
+ "id": "b8d38e16.8f50d",
+ "type": "switchNode",
+ "name": "switch temp-ub-sub-account-id",
+ "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1188.102882385254,
+ "y": 560.4638547897339,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "59cc568a.83f018",
+ "73ddfac2.a0d4e4"
+ ]
+ ]
+ },
+ {
+ "id": "59cc568a.83f018",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1380.81734085083,
+ "y": 534.4638872146606,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "e9b5fb34.606db8"
+ ]
+ ]
+ },
+ {
+ "id": "73ddfac2.a0d4e4",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1381.102897644043,
+ "y": 589.4638586044312,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "b0968203.54d37"
+ ]
+ ]
+ },
+ {
+ "id": "fb4eb84c.02a668",
+ "type": "set",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
+ "comments": "",
+ "x": 1628.5314903259277,
+ "y": 674.6066589355469,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "e9b5fb34.606db8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1520.2812385559082,
+ "y": 534.7851557731628,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "caa8d5b4.0ad2b8",
+ "a7278d93.3720c",
+ "160a6c8c.918963",
+ "da44425a.02876",
+ "416c4dbb.36fe64",
+ "4cac2ec3.0933d",
+ "33b241ad.e4aa3e"
+ ]
+ ]
+ },
+ {
+ "id": "da44425a.02876",
+ "type": "set",
+ "name": "set prop.customer-id",
+ "xml": "<set>\n<parameter name='prop.customer-id' value='`$ctx.network-data.service-information.global-customer-id`' />\n",
+ "comments": "",
+ "x": 1731.9243469238281,
+ "y": 345.35671615600586,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "caa8d5b4.0ad2b8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants'`\" />\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=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1790.9241638183594,
+ "y": 475.9280071258545,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a7278d93.3720c",
+ "type": "set",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
+ "comments": "",
+ "x": 1743.7814826965332,
+ "y": 600.7852363586426,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "160a6c8c.918963",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1811.281478881836,
+ "y": 636.5352363586426,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "416c4dbb.36fe64",
+ "type": "get-resource",
+ "name": "update-resource customer-id in service-subscription",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$tenant-result.data.tenantId`' />\n<!--parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' /-->\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1835.2098541259766,
+ "y": 536.9281234741211,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bbcbdc4.862f32",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.602653503418,
+ "y": 568.4598321914673,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "b8d38e16.8f50d"
+ ]
+ ]
+ },
+ {
+ "id": "4736bcfb.a0c9e4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 980.2812423706055,
+ "y": 620.6741437911987,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "f07e116f.03b5"
+ ]
+ ]
+ },
+ {
+ "id": "f07e116f.03b5",
+ "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=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1133.0312423706055,
+ "y": 620.424204826355,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "9cac03d4.f972",
+ "type": "set",
+ "name": "set vpn-id to service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='vpn-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.vpn-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
+ "comments": "",
+ "x": 757.5313262939453,
+ "y": 926.5352201461792,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "b0968203.54d37",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1439.7536544799805,
+ "y": 672.6108503341675,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "fb4eb84c.02a668",
+ "a2f6331e.2d634"
+ ]
+ ]
+ },
+ {
+ "id": "a2f6331e.2d634",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1711.1822509765625,
+ "y": 721.1822528839111,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4cac2ec3.0933d",
+ "type": "set",
+ "name": "set prop.userAccount",
+ "xml": "<set>\n<parameter name='prop.userAccount' value='`$tmp.userAccountEmail`' />\n<parameter name='prop.userEmail' value='`$tmp.userAccountEmail`' />",
+ "comments": "",
+ "x": 1732.03125,
+ "y": 423.03125190734863,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "33b241ad.e4aa3e",
+ "type": "execute",
+ "name": "execute concat customer-id and @test.com",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1807.0351257324219,
+ "y": 387.03519439697266,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json index bd24e0f2..6decb2f4 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json @@ -1,2997 +1,3067 @@ -[ - { - "id": "510329fc.5eb288", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 92, - "y": 51, - "z": "f24fb736.66a428", - "wires": [ - [ - "d0754e51.43601" - ] - ] - }, - { - "id": "d0754e51.43601", - "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": 304.00000381469727, - "y": 123.0000171661377, - "z": "f24fb736.66a428", - "wires": [ - [ - "5324d186.c424e" - ] - ] - }, - { - "id": "5324d186.c424e", - "type": "method", - "name": "sotn-attachment-topology-operation-activate", - "xml": "<method rpc='sotn-attachment-topology-operation-activate' mode='sync'>\n", - "comments": "", - "outputs": 1, - "x": 292.0001220703125, - "y": 211, - "z": "f24fb736.66a428", - "wires": [ - [ - "200d23ad.1ba52c" - ] - ] - }, - { - "id": "200d23ad.1ba52c", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 308.0001220703125, - "y": 766.0002446174622, - "z": "f24fb736.66a428", - "wires": [ - [ - "50fa98f0.7c4998", - "6f233fc4.4456d", - "8ef678b.4678d88", - "41e3aa85.858d54", - "b2920bb5.1af8e8", - "525ecaee.ee9b24", - "ab2f4625.6243a8", - "b09745d8.bb7668", - "b13bf095.cdea1", - "dcca5b8a.14d818", - "5d5e7f8f.d3d28", - "b3a2976e.016ed8", - "33c05db5.bb8532", - "dde46f65.1623c", - "3d236d8e.1a1ed2", - "9dd9851c.cc5e08", - "21b8bdc2.b30a32", - "c4803883.47c5a8", - "ad2575da.f719b8", - "c4ade364.dff4" - ] - ] - }, - { - "id": "50fa98f0.7c4998", - "type": "set", - "name": "set tmp.ar.allotted-resource-id,etc", - "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n", - "comments": "", - "x": 704.9935607910156, - "y": 164.9934868812561, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "d87c2a28.d4a808", - "type": "comment", - "name": "set tmp ar-id to fetch resource from MDSAL", - "info": "", - "comments": "", - "x": 733.9538726806641, - "y": 129.02528285980225, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "6f233fc4.4456d", - "type": "set", - "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n", - "comments": "", - "x": 658.9934997558594, - "y": 257.99349212646484, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "b2920bb5.1af8e8", - "type": "execute", - "name": "execute Properties", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n", - "comments": "", - "outputs": 1, - "x": 665.2553901672363, - "y": 345.6602210998535, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "8ef678b.4678d88", - "type": "execute", - "name": "generate allotted-resource tmp.ar-url", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n", - "comments": "", - "outputs": 1, - "x": 712.2554473876953, - "y": 433.6602249145508, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "2c8ad64b.5a9c0a", - "type": "comment", - "name": "GET connection-attachment-allotted-resource from mdsal", - "info": "", - "comments": "", - "x": 758.8083801269531, - "y": 564.5386590957642, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "3f345735.382a78", - "type": "comment", - "name": "Used for setting output to API Handler", - "info": "", - "comments": "", - "x": 712.9935302734375, - "y": 224.993501663208, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "dc7c3756.7911f8", - "type": "comment", - "name": "Obtain different URL, template location etc", - "info": "For saving resource information to MDSAL & for AAI", - "comments": "", - "x": 730.9934959411621, - "y": 310.8823823928833, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "385fcb45.8d58e4", - "type": "comment", - "name": "Used to Get AR by id to MDSAL, same as self-link", - "info": "", - "comments": "", - "x": 756.9935150146484, - "y": 397.8823413848877, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "fb3f3db1.2e857", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1218.6667919158936, - "y": 581.9999847412109, - "z": "f24fb736.66a428", - "wires": [ - [ - "7924d66d.1039e8" - ] - ] - }, - { - "id": "7924d66d.1039e8", - "type": "block", - "name": "block: atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1362.6668701171875, - "y": 539.4999027252197, - "z": "f24fb736.66a428", - "wires": [ - [ - "2e9884a4.fb6aac" - ] - ] - }, - { - "id": "2e9884a4.fb6aac", - "type": "switchNode", - "name": "switch cr length", - "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n", - "comments": "", - "outputs": 1, - "x": 1531.5242938995361, - "y": 537.1190738677979, - "z": "f24fb736.66a428", - "wires": [ - [ - "a5020a5a.1a8de8", - "a75f121c.781a7" - ] - ] - }, - { - "id": "a5020a5a.1a8de8", - "type": "other", - "name": "outcome 1", - "xml": "<outcome value='1'>\n", - "comments": "", - "outputs": 1, - "x": 1686.8574295043945, - "y": 509.1189889907837, - "z": "f24fb736.66a428", - "wires": [ - [ - "dc7b8304.a3929" - ] - ] - }, - { - "id": "dc7b8304.a3929", - "type": "block", - "name": "block: atomic", - "xml": "<block atomic='true'>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1845.381233215332, - "y": 507.02383613586426, - "z": "f24fb736.66a428", - "wires": [ - [ - "2e53bf10.53616", - "4d06247.7481adc", - "16d5ef9e.67621" - ] - ] - }, - { - "id": "57e48b3f.e4d594", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connection attachment resource not exist\" />\n \n", - "comments": "", - "x": 1785.5191650390625, - "y": 614.0660705566406, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "549a2a73.774b74", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1210.5185947418213, - "y": 617.0660696029663, - "z": "f24fb736.66a428", - "wires": [ - [ - "13c58b6.0463e75" - ] - ] - }, - { - "id": "13c58b6.0463e75", - "type": "block", - "name": "block: atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1390.5185451507568, - "y": 617.7326202392578, - "z": "f24fb736.66a428", - "wires": [ - [ - "57e48b3f.e4d594" - ] - ] - }, - { - "id": "a75f121c.781a7", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1678.185432434082, - "y": 568.3993635177612, - "z": "f24fb736.66a428", - "wires": [ - [ - "57e48b3f.e4d594" - ] - ] - }, - { - "id": "2e53bf10.53616", - "type": "set", - "name": "set connection-attachment-ar from get", - "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n", - "comments": "", - "x": 2092.4446868896484, - "y": 480.00008821487427, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "16d5ef9e.67621", - "type": "set", - "name": "set oper-status", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n", - "comments": "", - "x": 2026.4447174072266, - "y": 553.4285907745361, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "4d06247.7481adc", - "type": "switchNode", - "name": "switch order-status", - "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n", - "comments": "", - "outputs": 1, - "x": 2036.4444961547852, - "y": 519.0000247955322, - "z": "f24fb736.66a428", - "wires": [ - [ - "13c3c1da.98e52e", - "c01b9863.c31138", - "bd2b5022.a474e" - ] - ] - }, - { - "id": "13c3c1da.98e52e", - "type": "outcome", - "name": "outcome Created", - "xml": "<outcome value='Created'>\n", - "comments": "", - "outputs": 1, - "x": 2272.044578552246, - "y": 513.0000557899475, - "z": "f24fb736.66a428", - "wires": [ - [ - "29af8103.34f60e" - ] - ] - }, - { - "id": "c01b9863.c31138", - "type": "outcome", - "name": "outcome Other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 2265.759078979492, - "y": 593.4286904335022, - "z": "f24fb736.66a428", - "wires": [ - [ - "869d355f.ff5a28" - ] - ] - }, - { - "id": "29af8103.34f60e", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 2430.515251159668, - "y": 513.37571144104, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "869d355f.ff5a28", - "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\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n", - "comments": "", - "x": 2441.666893005371, - "y": 592.0000896453857, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "4c9dfad4.b5cb94", - "type": "call", - "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param", - "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n", - "comments": "", - "outputs": 1, - "x": 929.303050994873, - "y": 664.4936046600342, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "525ecaee.ee9b24", - "type": "block", - "name": "block: atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 623.3091506958008, - "y": 665.4999752044678, - "z": "f24fb736.66a428", - "wires": [ - [ - "4c9dfad4.b5cb94" - ] - ] - }, - { - "id": "f0374b61.7fdcc8", - "type": "comment", - "name": "GET parent-service-data from mdsal to check existence of other End point", - "info": "", - "comments": "", - "x": 811.00048828125, - "y": 710.5317525863647, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "ee77ccab.555f2", - "type": "for", - "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]", - "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n", - "comments": "", - "outputs": 1, - "x": 1702.1851959228516, - "y": 863.0042300224304, - "z": "f24fb736.66a428", - "wires": [ - [ - "1d8e18c9.612a97" - ] - ] - }, - { - "id": "41e3aa85.858d54", - "type": "switchNode", - "name": "switch mdsal-psd.service-data.provided-allotted-resources_length", - "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n", - "comments": "", - "outputs": 1, - "x": 786.1842193603516, - "y": 970.7182664871216, - "z": "f24fb736.66a428", - "wires": [ - [ - "227fe562.bef93a", - "30f6347f.71f27c", - "8d3aa09e.93736" - ] - ] - }, - { - "id": "227fe562.bef93a", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1114.3272399902344, - "y": 1043.5755405426025, - "z": "f24fb736.66a428", - "wires": [ - [ - "70131877.497ee8" - ] - ] - }, - { - "id": "d8325992.1c7e08", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1298.454502105713, - "y": 902.7015495300293, - "z": "f24fb736.66a428", - "wires": [ - [ - "ee77ccab.555f2", - "7fdc18ff.582858" - ] - ] - }, - { - "id": "1d8e18c9.612a97", - "type": "switchNode", - "name": "switch allotted-resource-id", - "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n", - "comments": "", - "outputs": 1, - "x": 2142.2965240478516, - "y": 860.0040321350098, - "z": "f24fb736.66a428", - "wires": [ - [ - "d475cadd.1a2f78", - "4ec4a51f.47decc" - ] - ] - }, - { - "id": "d475cadd.1a2f78", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2315.1067390441895, - "y": 831.4686470031738, - "z": "f24fb736.66a428", - "wires": [ - [ - "4ae70fe8.b24e9" - ] - ] - }, - { - "id": "7b37e59c.23ec7c", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 2463.8672103881836, - "y": 888.3257341384888, - "z": "f24fb736.66a428", - "wires": [ - [ - "102e4d37.8fb7c3" - ] - ] - }, - { - "id": "102e4d37.8fb7c3", - "type": "set", - "name": "set tmp.pidx and ptx.consumed-ar", - "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />", - "comments": "", - "x": 2698.724636077881, - "y": 886.8972663879395, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "82ecf3e0.5c52b", - "type": "comment", - "name": "Check existence of other AR in parent service data", - "info": "Check if other allotted resource is available.", - "comments": "", - "x": 733.9626579284668, - "y": 875.8929615020752, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "30f6347f.71f27c", - "type": "other", - "name": "outcome 1", - "xml": "<outcome value='1'>\n", - "comments": "", - "outputs": 1, - "x": 1128.9797096252441, - "y": 982.6772241592407, - "z": "f24fb736.66a428", - "wires": [ - [ - "2cd6df64.b8473" - ] - ] - }, - { - "id": "70131877.497ee8", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: End points not available\" />\n \n", - "comments": "", - "x": 1273.9795875549316, - "y": 1042.67746925354, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "8d3aa09e.93736", - "type": "other", - "name": "outcome 2", - "xml": "<outcome value='2'>\n", - "comments": "", - "outputs": 1, - "x": 1123.9795227050781, - "y": 903.6772499084473, - "z": "f24fb736.66a428", - "wires": [ - [ - "d8325992.1c7e08" - ] - ] - }, - { - "id": "4ae70fe8.b24e9", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 2473.0909538269043, - "y": 830.6773900985718, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "4ec4a51f.47decc", - "type": "outcomeTrue", - "name": "false", - "xml": "<outcome value='false'>\n", - "comments": "", - "outputs": 1, - "x": 2322.0905952453613, - "y": 887.6772499084473, - "z": "f24fb736.66a428", - "wires": [ - [ - "7b37e59c.23ec7c" - ] - ] - }, - { - "id": "7fdc18ff.582858", - "type": "switchNode", - "name": "switch tmp.found-in-ar", - "xml": "<switch test='`$tmp.found-in-ar`'>\n\n", - "comments": "", - "outputs": 1, - "x": 1510.9794998168945, - "y": 956.4550676345825, - "z": "f24fb736.66a428", - "wires": [ - [ - "92b2633f.8d761" - ] - ] - }, - { - "id": "92b2633f.8d761", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1681.97953414917, - "y": 957.5662889480591, - "z": "f24fb736.66a428", - "wires": [ - [ - "c3df20e.333b9e" - ] - ] - }, - { - "id": "c3df20e.333b9e", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1830.9796295166016, - "y": 957.5662879943848, - "z": "f24fb736.66a428", - "wires": [ - [ - "8c502b5e.ba0e48", - "b7c302f0.0eaa4" - ] - ] - }, - { - "id": "642168d6.c96a08", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2577.097454071045, - "y": 973.7951421737671, - "z": "f24fb736.66a428", - "wires": [ - [ - "28182687.5e2d2a" - ] - ] - }, - { - "id": "d6797517.070b08", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 2568.9492568969727, - "y": 1008.8612270355225, - "z": "f24fb736.66a428", - "wires": [ - [ - "863cf5ba.41a538" - ] - ] - }, - { - "id": "5a7b91f3.92074", - "type": "switchNode", - "name": "switch mdsal-psd.service-data.networks_length", - "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n", - "comments": "", - "outputs": 1, - "x": 1574.313003540039, - "y": 1057.899908065796, - "z": "f24fb736.66a428", - "wires": [ - [ - "5c7b0dd2.1db974", - "decd8771.495088" - ] - ] - }, - { - "id": "decd8771.495088", - "type": "other", - "name": "outcome 1", - "xml": "<outcome value='1'>\n", - "comments": "", - "outputs": 1, - "x": 1838.3128509521484, - "y": 1037.7886543273926, - "z": "f24fb736.66a428", - "wires": [ - [ - "26e27dfe.c23ed2" - ] - ] - }, - { - "id": "5c7b0dd2.1db974", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1828.3129119873047, - "y": 1085.788625717163, - "z": "f24fb736.66a428", - "wires": [ - [ - "2701bab7.b74336" - ] - ] - }, - { - "id": "2701bab7.b74336", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n", - "comments": "", - "x": 1966.9652557373047, - "y": 1087.890386581421, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "3f964f3.96aa1b", - "type": "set", - "name": "set tmp.network.", - "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n\n\n", - "comments": "", - "x": 2199.757709503174, - "y": 1038.788824081421, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "2cd6df64.b8473", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1296.4240188598633, - "y": 981.7884912490845, - "z": "f24fb736.66a428", - "wires": [ - [ - "5a7b91f3.92074" - ] - ] - }, - { - "id": "26e27dfe.c23ed2", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1997.0906219482422, - "y": 1040.7884883880615, - "z": "f24fb736.66a428", - "wires": [ - [ - "3f964f3.96aa1b", - "d34f3159.b7d95" - ] - ] - }, - { - "id": "d34f3159.b7d95", - "type": "for", - "name": "for nidx..tmp.network.network-data.network-request-input.network...[]", - "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >", - "comments": "", - "outputs": 1, - "x": 2360.090660095215, - "y": 1086.7886428833008, - "z": "f24fb736.66a428", - "wires": [ - [ - "6c6f677c.4a6ae8" - ] - ] - }, - { - "id": "6c6f677c.4a6ae8", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 2406.646728515625, - "y": 1317.7884521484375, - "z": "f24fb736.66a428", - "wires": [ - [ - "5a5ff171.f67b5", - "5ac44b36.e6ed64", - "477598ab.94c4f8", - "bf3fd182.60613", - "ee0ac40b.7c8918", - "334ef95a.804996", - "6b4b64b0.8aa49c", - "f2f619ae.81dc88", - "7f22248e.623acc", - "1977cf51.112051" - ] - ] - }, - { - "id": "5a5ff171.f67b5", - "type": "switchNode", - "name": "switch access-node-id", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">", - "comments": "", - "outputs": 1, - "x": 2683.1569442749023, - "y": 1159.7991995811462, - "z": "f24fb736.66a428", - "wires": [ - [ - "83c25cc5.35c9d" - ] - ] - }, - { - "id": "83c25cc5.35c9d", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2872.1565704345703, - "y": 1161.7990641593933, - "z": "f24fb736.66a428", - "wires": [ - [ - "80bf2f28.f9eae" - ] - ] - }, - { - "id": "80bf2f28.f9eae", - "type": "set", - "name": "set tmp.found-in-network tmp.ep-available", - "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />", - "comments": "", - "x": 3125.1567459106445, - "y": 1161.3991103172302, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "5ac44b36.e6ed64", - "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": 2657.146396636963, - "y": 1533.7884907722473, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "b3a2976e.016ed8", - "type": "switchNode", - "name": "switch tmp.ep-available", - "xml": "<switch test='`$tmp.ep-available`'>\n", - "comments": "", - "outputs": 1, - "x": 649.3128204345703, - "y": 1166.232801437378, - "z": "f24fb736.66a428", - "wires": [ - [ - "d67d36b.8c807c8", - "d4dded0c.3defe" - ] - ] - }, - { - "id": "d4dded0c.3defe", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 867.9795398712158, - "y": 1215.5661582946777, - "z": "f24fb736.66a428", - "wires": [ - [ - "dac36818.3ade18" - ] - ] - }, - { - "id": "d67d36b.8c807c8", - "type": "outcomeTrue", - "name": "false", - "xml": "<outcome value='false'>\n", - "comments": "", - "outputs": 1, - "x": 872.8683414459229, - "y": 1124.566219329834, - "z": "f24fb736.66a428", - "wires": [ - [ - "fea8c889.837c28" - ] - ] - }, - { - "id": "fea8c889.837c28", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1019.8683376312256, - "y": 1126.4550323486328, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "dac36818.3ade18", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1038.090627670288, - "y": 1213.5661163330078, - "z": "f24fb736.66a428", - "wires": [ - [ - "47a53791.ce00e8", - "49abb372.8700ac", - "73f1353a.31fe0c" - ] - ] - }, - { - "id": "47a53791.ce00e8", - "type": "switchNode", - "name": "switch tmp.found-in-ar", - "xml": "<switch test='`$tmp.found-in-ar`'>\n", - "comments": "", - "outputs": 1, - "x": 1264.2016410827637, - "y": 1180.5661163330078, - "z": "f24fb736.66a428", - "wires": [ - [ - "f3f2f58d.f1fde8", - "73ae144b.6c716c" - ] - ] - }, - { - "id": "f3f2f58d.f1fde8", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1459.6460876464844, - "y": 1158.566177368164, - "z": "f24fb736.66a428", - "wires": [ - [ - "a49cc189.c10f7" - ] - ] - }, - { - "id": "73ae144b.6c716c", - "type": "outcomeTrue", - "name": "false", - "xml": "<outcome value='false'>\n", - "comments": "", - "outputs": 1, - "x": 1456.64599609375, - "y": 1206.566162109375, - "z": "f24fb736.66a428", - "wires": [ - [ - "5c6b8964.10acc8" - ] - ] - }, - { - "id": "a49cc189.c10f7", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1647.2017517089844, - "y": 1155.566177368164, - "z": "f24fb736.66a428", - "wires": [ - [ - "50540586.cfd78c" - ] - ] - }, - { - "id": "5c6b8964.10acc8", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1644.20166015625, - "y": 1205.566162109375, - "z": "f24fb736.66a428", - "wires": [ - [ - "7849a3ee.c57b4c" - ] - ] - }, - { - "id": "b9bd1802.9893c8", - "type": "comment", - "name": "GET connection-attachment-ar to store AR data from mdsal", - "info": "", - "comments": "", - "x": 2156.4728355407715, - "y": 442.50394773483276, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "811f13c4.a802b", - "type": "comment", - "name": "Set source end point", - "info": "", - "comments": "", - "x": 645.9727325439453, - "y": 531.2539677619934, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "ab2f4625.6243a8", - "type": "set", - "name": "set tmp.ar.parent-service-instance-id", - "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n", - "comments": "", - "x": 696.9688262939453, - "y": 740.0000905990601, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "e3a34e44.03f86", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1056.968978881836, - "y": 811.0000772476196, - "z": "f24fb736.66a428", - "wires": [ - [ - "1cfd4bb9.99d9a4" - ] - ] - }, - { - "id": "8447b050.f664b", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1048.8207817077637, - "y": 846.066162109375, - "z": "f24fb736.66a428", - "wires": [ - [ - "7bd6123e.8e599c" - ] - ] - }, - { - "id": "7bd6123e.8e599c", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Parent service data not available\" />\n \n", - "comments": "", - "x": 1194.9695625305176, - "y": 845.3335733413696, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "1cfd4bb9.99d9a4", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1187.9690742492676, - "y": 811.0001382827759, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "863cf5ba.41a538", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN provided attachment resource not found\" />\n \n", - "comments": "", - "x": 2718.969306945801, - "y": 1009.00026512146, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "28182687.5e2d2a", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 2703.9694290161133, - "y": 976.0002498626709, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "b09745d8.bb7668", - "type": "set", - "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false", - "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />", - "comments": "", - "x": 782.9687652587891, - "y": 913.0000648498535, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "53f5b769.1d9ac8", - "type": "comment", - "name": "If other EP exists set destination end point", - "info": "Check if other allotted resource is available.", - "comments": "", - "x": 699.9687652587891, - "y": 1091.0000133514404, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "39192112.9a7a9e", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1439.9688873291016, - "y": 1418.0002946853638, - "z": "f24fb736.66a428", - "wires": [ - [ - "29497381.2907dc", - "a8454134.72dfa", - "b437b233.85dc6", - "d5da4e92.fd9d5", - "527cda61.4c5444", - "21b345b.f16dcba", - "847549d0.8fada8", - "46d04af2.172014" - ] - ] - }, - { - "id": "29497381.2907dc", - "type": "switchNode", - "name": "switch access-node-id", - "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-node-id'`\">", - "comments": "", - "outputs": 1, - "x": 1682.4791889190674, - "y": 1288.010691165924, - "z": "f24fb736.66a428", - "wires": [ - [ - "b53954e3.75f548" - ] - ] - }, - { - "id": "a8454134.72dfa", - "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": 1655.4691410064697, - "y": 1593.0006546974182, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "b437b233.85dc6", - "type": "switchNode", - "name": "switch access-ltp-id", - "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-ltp-id'`\">", - "comments": "", - "outputs": 1, - "x": 1673.9690189361572, - "y": 1331.7782225608826, - "z": "f24fb736.66a428", - "wires": [ - [ - "4beb5c8f.437a34" - ] - ] - }, - { - "id": "d5da4e92.fd9d5", - "type": "switchNode", - "name": "switch clientSignal", - "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'clientSignal'`\">", - "comments": "", - "outputs": 1, - "x": 1667.9690570831299, - "y": 1377.778269290924, - "z": "f24fb736.66a428", - "wires": [ - [ - "a652bfee.a4a86" - ] - ] - }, - { - "id": "527cda61.4c5444", - "type": "switchNode", - "name": "switch cVLAN", - "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'cVLAN'`\">", - "comments": "", - "outputs": 1, - "x": 1651.9585590362549, - "y": 1416.767771244049, - "z": "f24fb736.66a428", - "wires": [ - [ - "b6d9ed74.687c9" - ] - ] - }, - { - "id": "b53954e3.75f548", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1860.1911029815674, - "y": 1288.6670632362366, - "z": "f24fb736.66a428", - "wires": [ - [ - "b7855c9c.e078" - ] - ] - }, - { - "id": "b7855c9c.e078", - "type": "set", - "name": "set dst-access-node-id", - "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$tmp.ep.parameters.param[$idx].value`' />", - "comments": "", - "x": 2035.1911029815674, - "y": 1288.267038345337, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "4beb5c8f.437a34", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1855.6809711456299, - "y": 1331.434519290924, - "z": "f24fb736.66a428", - "wires": [ - [ - "17f7ba24.7fa566" - ] - ] - }, - { - "id": "a652bfee.a4a86", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1855.6809711456299, - "y": 1377.434519290924, - "z": "f24fb736.66a428", - "wires": [ - [ - "b4e0c929.110668" - ] - ] - }, - { - "id": "b6d9ed74.687c9", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1855.6704730987549, - "y": 1416.4241433143616, - "z": "f24fb736.66a428", - "wires": [ - [ - "90d8491c.861238" - ] - ] - }, - { - "id": "49abb372.8700ac", - "type": "for", - "name": "for idx..tmp.ep.parameters[]", - "xml": "<for index='idx' start='0' end='`$tmp.ep.parameters.param_length`'>\n\n", - "comments": "", - "outputs": 1, - "x": 1292.96875, - "y": 1306, - "z": "f24fb736.66a428", - "wires": [ - [ - "39192112.9a7a9e" - ] - ] - }, - { - "id": "50540586.cfd78c", - "type": "set", - "name": "set tmp.ep.parameters", - "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$mdsal-other-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.`' />\n", - "comments": "", - "x": 1858.9688053131104, - "y": 1155.0000743865967, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "7849a3ee.c57b4c", - "type": "set", - "name": "set tmp.ep.parameters", - "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$tmp.network.network-data.network-request-input.network-input-parameters.`' />\n", - "comments": "", - "x": 1855.968713760376, - "y": 1201.0000591278076, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "17f7ba24.7fa566", - "type": "set", - "name": "set dst-access-node-id", - "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$tmp.ep.parameters.param[$idx].value`' />", - "comments": "", - "x": 2032.9689350128174, - "y": 1331.0003151893616, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "b4e0c929.110668", - "type": "set", - "name": "set dst-clientSignal", - "xml": "<set>\n<parameter name='prop.remote.connection-attachment.clientSignal' value='`$tmp.ep.parameters.param[$idx].value`' />", - "comments": "", - "x": 2026.9689350128174, - "y": 1375.0003151893616, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "90d8491c.861238", - "type": "set", - "name": "set dst-cVLAN", - "xml": "<set>\n<parameter name='prop.remote.connection-attachment.cVLAN' value='`$tmp.ep.parameters.param[$idx].value`' />", - "comments": "", - "x": 2017.9689350128174, - "y": 1414.0003151893616, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "7a6bd4c0.0a23ac", - "type": "comment", - "name": "Get controller info and send request", - "info": "", - "comments": "", - "x": 1899.968807220459, - "y": 1885.000153541565, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "e5ca51fb.cb5be", - "type": "execute", - "name": "execute RestApiCallNode Create ethernet Service", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\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=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 1963.9693450927734, - "y": 2159.001121520996, - "z": "f24fb736.66a428", - "wires": [ - [ - "4fd581be.ae7c5", - "cba0e7bf.640378" - ] - ] - }, - { - "id": "4fd581be.ae7c5", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2229.9690704345703, - "y": 2188.001244544983, - "z": "f24fb736.66a428", - "wires": [ - [ - "9a1df066.c1be9" - ] - ] - }, - { - "id": "9a1df066.c1be9", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 2377.9690704345703, - "y": 2186.0011224746704, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "434af439.625b6c", - "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=\"Error executing Create vpn rest api\" />\n", - "comments": "", - "x": 2359.9691009521484, - "y": 2133.0011825561523, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "cba0e7bf.640378", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 2220.969009399414, - "y": 2133.0011825561523, - "z": "f24fb736.66a428", - "wires": [ - [ - "434af439.625b6c" - ] - ] - }, - { - "id": "1a8278df.ac4137", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 871.7311744689941, - "y": 2108.9537086486816, - "z": "f24fb736.66a428", - "wires": [ - [ - "c4aa74e4.35ca78" - ] - ] - }, - { - "id": "c4aa74e4.35ca78", - "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=\"AAI failed\" />\n", - "comments": "", - "x": 1038.2549953460693, - "y": 2135.5727157592773, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "33c28cf6.2b21a4", - "type": "failure", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 873.8264026641846, - "y": 2156.715551376343, - "z": "f24fb736.66a428", - "wires": [ - [ - "c4aa74e4.35ca78" - ] - ] - }, - { - "id": "cb1a048d.e95fc8", - "type": "comment", - "name": "Save Resource to AAI", - "info": "", - "comments": "", - "x": 645.7788181304932, - "y": 2097.3028717041016, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "c4803883.47c5a8", - "type": "set", - "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", - "comments": "", - "x": 660.5465145111084, - "y": 2018.8283529281616, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "c4ade364.dff4", - "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": 620.9596862792969, - "y": 2204.4441413879395, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "21b8bdc2.b30a32", - "type": "execute", - "name": "execute RestApiCallNode - PUT AR by id", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n", - "comments": "", - "outputs": 1, - "x": 713.2785968780518, - "y": 1943.4692058563232, - "z": "f24fb736.66a428", - "wires": [ - [ - "72334169.43788", - "91c81d87.0f2e3", - "4377487a.aa9b58" - ] - ] - }, - { - "id": "72334169.43788", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 967.9200191497803, - "y": 1987.8006000518799, - "z": "f24fb736.66a428", - "wires": [ - [ - "3aa37f14.b2a12" - ] - ] - }, - { - "id": "91c81d87.0f2e3", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 969.9200420379639, - "y": 1946.3005641922355, - "z": "f24fb736.66a428", - "wires": [ - [ - "3aa37f14.b2a12" - ] - ] - }, - { - "id": "4377487a.aa9b58", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 973.6701259613037, - "y": 1897.6577167510986, - "z": "f24fb736.66a428", - "wires": [ - [ - "ce3cc849.21f268" - ] - ] - }, - { - "id": "3aa37f14.b2a12", - "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n", - "comments": "", - "x": 1128.67014503479, - "y": 1966.050630569458, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "ce3cc849.21f268", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1101.3260707855225, - "y": 1899.8498849868774, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "33c05db5.bb8532", - "type": "set", - "name": "set ar-data", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />", - "comments": "", - "x": 615.4922122955322, - "y": 1777.8501069545746, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "3d236d8e.1a1ed2", - "type": "execute", - "name": "execute getTime", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n", - "comments": "", - "outputs": 1, - "x": 632.77805519104, - "y": 1850.4697046279907, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "9dd9851c.cc5e08", - "type": "set", - "name": "set allotted-resource-oper-status", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n", - "comments": "", - "x": 682.7651348114014, - "y": 1887.4207849502563, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "dde46f65.1623c", - "type": "set", - "name": "set model-data", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />", - "comments": "", - "x": 629.3337535858154, - "y": 1817.024757385254, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "c0243700.483a78", - "type": "comment", - "name": "Prepare data for allotted-resource addition to MDSAL", - "info": "This will add to allotted-resource which is present inside service.", - "comments": "", - "x": 742.66721534729, - "y": 1738.0247094631195, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "b128777a.bf8ad8", - "type": "comment", - "name": "Add to allotted-resources in mdsal", - "info": "", - "comments": "", - "x": 684.2470417022705, - "y": 1705.4380111694336, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "ad2575da.f719b8", - "type": "update", - "name": "update AAI allotted-resource", - "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Active\" />\n", - "comments": "", - "outputs": 1, - "x": 672.2230968475342, - "y": 2134.7550144195557, - "z": "f24fb736.66a428", - "wires": [ - [ - "1a8278df.ac4137", - "33c28cf6.2b21a4" - ] - ] - }, - { - "id": "73456eef.45eac", - "type": "execute", - "name": "execute RestApiCallNode getPath from OOF", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 1480.973056793213, - "y": 1697.2546663284302, - "z": "f24fb736.66a428", - "wires": [ - [ - "473a6700.6236e8", - "5286278b.3b3cd8" - ] - ] - }, - { - "id": "473a6700.6236e8", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1720.9731979370117, - "y": 1721.254635810852, - "z": "f24fb736.66a428", - "wires": [ - [ - "cafce3b5.74fb5" - ] - ] - }, - { - "id": "dc79f611.cf4238", - "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=\"Error executing OOF api\" />\n", - "comments": "", - "x": 1859.973232269287, - "y": 1670.2547273635864, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "5286278b.3b3cd8", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 1719.9729843139648, - "y": 1670.254726409912, - "z": "f24fb736.66a428", - "wires": [ - [ - "dc79f611.cf4238" - ] - ] - }, - { - "id": "deb094f6.e597f8", - "type": "comment", - "name": "Get VPNs from OOF", - "info": "", - "comments": "", - "x": 1466.976978302002, - "y": 1664.2586660385132, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "da1582e5.d9e86", - "type": "for", - "name": "for vidx..oof.vpns_length[]", - "xml": "<for index='vidx' start='0' end='`$oof.vpns_length`' >", - "comments": "", - "outputs": 1, - "x": 1420.972900390625, - "y": 1779.50439453125, - "z": "f24fb736.66a428", - "wires": [ - [ - "b2ef8ded.b479a" - ] - ] - }, - { - "id": "c9df49cc.0e8008", - "type": "comment", - "name": "Loop through VPN and configure them", - "info": "", - "comments": "", - "x": 1466.9733505249023, - "y": 1914.0047721862793, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "477598ab.94c4f8", - "type": "switchNode", - "name": "switch name", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'name'`\">\n \n", - "comments": "", - "outputs": 1, - "x": 2660.757080078125, - "y": 1251.121826171875, - "z": "f24fb736.66a428", - "wires": [ - [ - "7c0be7f6.9e8c58" - ] - ] - }, - { - "id": "7c0be7f6.9e8c58", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2849.757049560547, - "y": 1251.121811389923, - "z": "f24fb736.66a428", - "wires": [ - [ - "1cf5a70.cc26659" - ] - ] - }, - { - "id": "1cf5a70.cc26659", - "type": "set", - "name": "set etht-svc-name & bandwidth-profile-name", - "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name='prop.global.sotn.bandwidth-profile-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n", - "comments": "", - "x": 3090.75736618042, - "y": 1250.7218661308289, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "bf3fd182.60613", - "type": "switchNode", - "name": "switch description", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'description'`\">\n", - "comments": "", - "outputs": 1, - "x": 2673.5969581604004, - "y": 1286.1219210624695, - "z": "f24fb736.66a428", - "wires": [ - [ - "f2fb468e.d467f8" - ] - ] - }, - { - "id": "f2fb468e.d467f8", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2848.597023010254, - "y": 1288.1219067573547, - "z": "f24fb736.66a428", - "wires": [ - [ - "e7ce8468.64c938" - ] - ] - }, - { - "id": "e7ce8468.64c938", - "type": "set", - "name": "set etht-svc-descr", - "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-descr' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n", - "comments": "", - "x": 3004.9303398132324, - "y": 1285.5829815864563, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "ee0ac40b.7c8918", - "type": "switchNode", - "name": "switch tenantId", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'tenantId'`\">\n", - "comments": "", - "outputs": 1, - "x": 2668.979221343994, - "y": 1319.4553112983704, - "z": "f24fb736.66a428", - "wires": [ - [ - "db11a89d.57ead8" - ] - ] - }, - { - "id": "db11a89d.57ead8", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2846.9792251586914, - "y": 1323.4551892280579, - "z": "f24fb736.66a428", - "wires": [ - [ - "a28b1daa.bce21" - ] - ] - }, - { - "id": "a28b1daa.bce21", - "type": "set", - "name": "set tenantId", - "xml": "<set>\n<parameter name='prop.global.sotn.tenantId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n", - "comments": "", - "x": 2984.9794120788574, - "y": 1320.0551648139954, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "6b4b64b0.8aa49c", - "type": "switchNode", - "name": "switch cir", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'cir'`\">\n", - "comments": "", - "outputs": 1, - "x": 2651.818820953369, - "y": 1392.4552664756775, - "z": "f24fb736.66a428", - "wires": [ - [ - "779ba6d5.68a5b8" - ] - ] - }, - { - "id": "779ba6d5.68a5b8", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2846.8188858032227, - "y": 1393.4552664756775, - "z": "f24fb736.66a428", - "wires": [ - [ - "51c8d37d.57c57c" - ] - ] - }, - { - "id": "51c8d37d.57c57c", - "type": "set", - "name": "set cir", - "xml": "<set>\n<parameter name='prop.sotn.cir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n", - "comments": "", - "x": 2971.15238571167, - "y": 1391.916341304779, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "334ef95a.804996", - "type": "switchNode", - "name": "switch vpnType", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'vpnType'`\">\n", - "comments": "", - "outputs": 1, - "x": 2666.127109527588, - "y": 1355.232976436615, - "z": "f24fb736.66a428", - "wires": [ - [ - "edf65e2e.17eef" - ] - ] - }, - { - "id": "edf65e2e.17eef", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2848.127296447754, - "y": 1358.232961177826, - "z": "f24fb736.66a428", - "wires": [ - [ - "3a58a10e.af006e" - ] - ] - }, - { - "id": "3a58a10e.af006e", - "type": "set", - "name": "set vpnType", - "xml": "<set>\n<parameter name='prop.global.sotn.vpnType' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n", - "comments": "", - "x": 2984.461040496826, - "y": 1354.6942028999329, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "f2f619ae.81dc88", - "type": "switchNode", - "name": "switch eir", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'eir'`\">\n", - "comments": "", - "outputs": 1, - "x": 2647.1091651916504, - "y": 1426.1531739234924, - "z": "f24fb736.66a428", - "wires": [ - [ - "290775a.582758a" - ] - ] - }, - { - "id": "290775a.582758a", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2847.1094131469727, - "y": 1429.1531128883362, - "z": "f24fb736.66a428", - "wires": [ - [ - "be16065f.3cc068" - ] - ] - }, - { - "id": "be16065f.3cc068", - "type": "set", - "name": "set eir", - "xml": "<set>\n<parameter name='prop.global.sotn.eir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n", - "comments": "", - "x": 2970.4430351257324, - "y": 1428.6141724586487, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "7f22248e.623acc", - "type": "switchNode", - "name": "switch colorAware", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'colorAware'`\">\n", - "comments": "", - "outputs": 1, - "x": 2672.109775543213, - "y": 1460.1530528068542, - "z": "f24fb736.66a428", - "wires": [ - [ - "60b638c9.9f5cf8" - ] - ] - }, - { - "id": "60b638c9.9f5cf8", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2843.1095962524414, - "y": 1466.1529912948608, - "z": "f24fb736.66a428", - "wires": [ - [ - "6283050a.9a352c" - ] - ] - }, - { - "id": "6283050a.9a352c", - "type": "set", - "name": "set colorAware", - "xml": "<set>\n<parameter name='prop.global.sotn.colorAware' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n", - "comments": "", - "x": 2991.44291305542, - "y": 1466.6142039299011, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "1977cf51.112051", - "type": "switchNode", - "name": "switch couplingFlag", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'couplingFlag'`\">\n", - "comments": "", - "outputs": 1, - "x": 2674.1097145080566, - "y": 1496.1531147956848, - "z": "f24fb736.66a428", - "wires": [ - [ - "95d93fbe.f7437" - ] - ] - }, - { - "id": "95d93fbe.f7437", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2846.1095962524414, - "y": 1505.1530842781067, - "z": "f24fb736.66a428", - "wires": [ - [ - "ceecc29f.0a56b" - ] - ] - }, - { - "id": "ceecc29f.0a56b", - "type": "set", - "name": "set couplingFlag", - "xml": "<set>\n<parameter name='prop.global.sotn.couplingFlag' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n", - "comments": "", - "x": 2999.44291305542, - "y": 1505.6142048835754, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "b4b830f7.2edfb", - "type": "comment", - "name": "Check if other EP exists in SOTNConnectionResource", - "info": "", - "comments": "", - "x": 2805.312744140625, - "y": 1114.7884521484375, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "85af2b8.2c027d8", - "type": "comment", - "name": "Get other global parameters from network", - "info": "", - "comments": "", - "x": 2741.3125, - "y": 1200.7884521484375, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "21b345b.f16dcba", - "type": "switchNode", - "name": "switch access-provider-id", - "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-provider-id'`\">", - "comments": "", - "outputs": 1, - "x": 1689.5348529815674, - "y": 1462.2329812049866, - "z": "f24fb736.66a428", - "wires": [ - [ - "88d75ee0.36aab" - ] - ] - }, - { - "id": "88d75ee0.36aab", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1876.5348529815674, - "y": 1458.2329812049866, - "z": "f24fb736.66a428", - "wires": [ - [ - "144324cd.dbe03b" - ] - ] - }, - { - "id": "144324cd.dbe03b", - "type": "set", - "name": "set access-provider-id", - "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n", - "comments": "", - "x": 2044.5348529815674, - "y": 1458.8329873085022, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "847549d0.8fada8", - "type": "switchNode", - "name": "switch access-client-id", - "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-client-id'`\">", - "comments": "", - "outputs": 1, - "x": 1680.5348682403564, - "y": 1505.2434296607971, - "z": "f24fb736.66a428", - "wires": [ - [ - "429ac662.d36c08" - ] - ] - }, - { - "id": "429ac662.d36c08", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1867.5348682403564, - "y": 1501.2434296607971, - "z": "f24fb736.66a428", - "wires": [ - [ - "fdfea883.43ef38" - ] - ] - }, - { - "id": "fdfea883.43ef38", - "type": "set", - "name": "set access-client-id", - "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n", - "comments": "", - "x": 2035.5348682403564, - "y": 1501.8434357643127, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "46d04af2.172014", - "type": "switchNode", - "name": "switch access-topology-id", - "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-topology-id'`\">", - "comments": "", - "outputs": 1, - "x": 1693.534812927246, - "y": 1547.2434606552124, - "z": "f24fb736.66a428", - "wires": [ - [ - "f9888c9d.14fbf" - ] - ] - }, - { - "id": "f9888c9d.14fbf", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 1880.534812927246, - "y": 1543.2434606552124, - "z": "f24fb736.66a428", - "wires": [ - [ - "9db1bbe8.d24ee8" - ] - ] - }, - { - "id": "9db1bbe8.d24ee8", - "type": "set", - "name": "set access-topology-id", - "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n", - "comments": "", - "x": 2048.534812927246, - "y": 1543.843466758728, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "b2ef8ded.b479a", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1644.090217590332, - "y": 1816.3444538116455, - "z": "f24fb736.66a428", - "wires": [ - [ - "ca8a96be.c9e6a8", - "f4e8e4f3.f6e418", - "dea701ef.7abc9", - "644c2300.fecafc", - "8bddc111.2e08f", - "981ad4ae.e983a8", - "55066de5.c71104", - "3af624e0.31f91c", - "e5ca51fb.cb5be", - "2e8e574c.c64e68", - "b731c6a4.c3a218" - ] - ] - }, - { - "id": "9f0b7f15.8c307", - "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.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n", - "comments": "", - "x": 2285.534881591797, - "y": 1880.6776461601257, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "3af624e0.31f91c", - "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": 1902.0347900390625, - "y": 1917.6775856018066, - "z": "f24fb736.66a428", - "wires": [ - [ - "72570e2d.a62fe", - "c43ec6a3.683488", - "fb06874f.97c548" - ] - ] - }, - { - "id": "72570e2d.a62fe", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2122.034725189209, - "y": 1881.6775546073914, - "z": "f24fb736.66a428", - "wires": [ - [ - "9f0b7f15.8c307" - ] - ] - }, - { - "id": "c43ec6a3.683488", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 2131.525665283203, - "y": 1922.2515606880188, - "z": "f24fb736.66a428", - "wires": [ - [ - "c36ea2d9.d18c4" - ] - ] - }, - { - "id": "fb06874f.97c548", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 2126.858642578125, - "y": 1958.5848736763, - "z": "f24fb736.66a428", - "wires": [ - [ - "668b481.e36d4b8" - ] - ] - }, - { - "id": "c36ea2d9.d18c4", - "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n", - "comments": "", - "x": 2278.0970153808594, - "y": 1918.5373873710632, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "668b481.e36d4b8", - "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 occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n", - "comments": "", - "x": 2281.6312866210938, - "y": 1960.0240216255188, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "55066de5.c71104", - "type": "get-resource", - "name": "get-resource pnf", - "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $oof.vpn.access-node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n", - "comments": "", - "outputs": 1, - "x": 1847.534683227539, - "y": 1826.6772294044495, - "z": "f24fb736.66a428", - "wires": [ - [ - "84c5aa59.ee67d8", - "41b15be2.0ba8d4", - "f1b5d69a.0d7998" - ] - ] - }, - { - "id": "84c5aa59.ee67d8", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2029.5347290039062, - "y": 1771.677339553833, - "z": "f24fb736.66a428", - "wires": [ - [ - "7e1d241.12440dc" - ] - ] - }, - { - "id": "41b15be2.0ba8d4", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 2030.0256309509277, - "y": 1809.2514362335205, - "z": "f24fb736.66a428", - "wires": [ - [ - "e55b495c.733518" - ] - ] - }, - { - "id": "f1b5d69a.0d7998", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 2021.358642578125, - "y": 1842.5848112106323, - "z": "f24fb736.66a428", - "wires": [ - [ - "4d6a36cc.899768" - ] - ] - }, - { - "id": "e55b495c.733518", - "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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n", - "comments": "", - "x": 2177.597255706787, - "y": 1808.5373249053955, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "4d6a36cc.899768", - "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 occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n", - "comments": "", - "x": 2175.1312866210938, - "y": 1842.023959159851, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "7e1d241.12440dc", - "type": "set", - "name": "set tmp.thirdparty-sdnc-id", - "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n", - "comments": "", - "x": 2214.5347290039062, - "y": 1770.6774616241455, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "9df363c3.42e7", - "type": "comment", - "name": "get domain controller information", - "info": "", - "comments": "", - "x": 1898.0385971069336, - "y": 1793.6811847686768, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "2e8e574c.c64e68", - "type": "set", - "name": "set oof.vpn", - "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />", - "comments": "", - "x": 1859.534683227539, - "y": 1747.7883129119873, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "f4e8e4f3.f6e418", - "type": "save", - "name": "save VPN resource in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />", - "comments": "", - "outputs": 1, - "x": 1874.0001602172852, - "y": 2324.7506742477417, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "dea701ef.7abc9", - "type": "set", - "name": "set tmp.vpnName", - "xml": "<set>\n<parameter name='tmp.vpnName' value=\"`$oof.vpn.access-node-id + '-' + $prop.global.sotn.etht-svc-name`\" />", - "comments": "", - "x": 1850.5001602172852, - "y": 2277.250370979309, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "644c2300.fecafc", - "type": "save", - "name": "save connectivity relationship in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />", - "comments": "", - "outputs": 1, - "x": 1909.0001602172852, - "y": 2369.7504301071167, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "ce418ee5.81a4e", - "type": "comment", - "name": "save vpn and its relation to AAI", - "info": "", - "comments": "", - "x": 1892.000358581543, - "y": 2238.7506399154663, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "ca8a96be.c9e6a8", - "type": "set", - "name": "set src-ltpId dst-ltpId", - "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />", - "comments": "", - "x": 1861.0001907348633, - "y": 2409.7505502700806, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "8bddc111.2e08f", - "type": "save", - "name": "save srcLTP relationship in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n", - "comments": "", - "outputs": 1, - "x": 1895.0004425048828, - "y": 2449.500759124756, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "981ad4ae.e983a8", - "type": "save", - "name": "save dstLTP relationship in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />", - "comments": "", - "outputs": 1, - "x": 1893.0002746582031, - "y": 2495.2505979537964, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "b13bf095.cdea1", - "type": "execute", - "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n", - "comments": "", - "outputs": 1, - "x": 839.0039367675781, - "y": 600.0039119720459, - "z": "f24fb736.66a428", - "wires": [ - [ - "fb3f3db1.2e857", - "549a2a73.774b74" - ] - ] - }, - { - "id": "dcca5b8a.14d818", - "type": "execute", - "name": "execute RestApiCallNode - get-resource parent service data", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n", - "comments": "", - "outputs": 1, - "x": 766.0040893554688, - "y": 827.004075050354, - "z": "f24fb736.66a428", - "wires": [ - [ - "e3a34e44.03f86", - "8447b050.f664b" - ] - ] - }, - { - "id": "5d5e7f8f.d3d28", - "type": "execute", - "name": "get parent-service-data url", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n", - "comments": "", - "outputs": 1, - "x": 666.0039978027344, - "y": 790.0039081573486, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "8c502b5e.ba0e48", - "type": "execute", - "name": "generate tmp.ar-other-url-connection", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-other-url-connection\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.provided-ar.allotted-resource-id`\"/>\n \n\n", - "comments": "", - "outputs": 1, - "x": 2080.0003509521484, - "y": 946.3334693908691, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "b7c302f0.0eaa4", - "type": "execute", - "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-other-url-connection`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-other-ar\" />\n\n", - "comments": "", - "outputs": 1, - "x": 2217.000991821289, - "y": 988.8333339691162, - "z": "f24fb736.66a428", - "wires": [ - [ - "642168d6.c96a08", - "d6797517.070b08" - ] - ] - }, - { - "id": "cafce3b5.74fb5", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1842.0002708435059, - "y": 1712.0001192092896, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "73f1353a.31fe0c", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1218.9688835144043, - "y": 1737.0003032684326, - "z": "f24fb736.66a428", - "wires": [ - [ - "73456eef.45eac", - "da1582e5.d9e86" - ] - ] - }, - { - "id": "bd2b5022.a474e", - "type": "outcome", - "name": "outcome PendingDelete", - "xml": "<outcome value='PendingDelete'>\n", - "comments": "", - "outputs": 1, - "x": 2293.0313415527344, - "y": 552.0312976837158, - "z": "f24fb736.66a428", - "wires": [ - [ - "44575632.3edd28" - ] - ] - }, - { - "id": "44575632.3edd28", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 2477.031352996826, - "y": 548.0312976837158, - "z": "f24fb736.66a428", - "wires": [ - [] - ] - }, - { - "id": "b731c6a4.c3a218", - "type": "execute", - "name": "execute RestApiCallNode Get token", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>", - "comments": "", - "outputs": 1, - "x": 1922.5039367675781, - "y": 2044.003927230835, - "z": "f24fb736.66a428", - "wires": [ - [ - "ce234ab1.289298", - "b6c8858.bd95c78" - ] - ] - }, - { - "id": "ce234ab1.289298", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2157.503936767578, - "y": 2022.003927230835, - "z": "f24fb736.66a428", - "wires": [ - [ - "98d09cc3.1216f" - ] - ] - }, - { - "id": "b6c8858.bd95c78", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 2149.753936767578, - "y": 2075.646810531616, - "z": "f24fb736.66a428", - "wires": [ - [ - "82c72a3.d7e47d8" - ] - ] - }, - { - "id": "82c72a3.d7e47d8", - "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=\"Error executing get token rest api\" />\n", - "comments": "", - "x": 2302.503936767578, - "y": 2075.3968715667725, - "z": "f24fb736.66a428", - "wires": [] - }, - { - "id": "98d09cc3.1216f", - "type": "set", - "name": "set token-id", - "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n", - "comments": "", - "x": 2311.503936767578, - "y": 2023.003927230835, - "z": "f24fb736.66a428", - "wires": [] - } -] +[
+ {
+ "id": "8d664378.cbb4f",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 118.03125,
+ "y": 76.99999761581421,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "99e747dc.b38c98"
+ ]
+ ]
+ },
+ {
+ "id": "99e747dc.b38c98",
+ "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": 330.03125381469727,
+ "y": 149.0000147819519,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "677572d7.6cd7ac"
+ ]
+ ]
+ },
+ {
+ "id": "677572d7.6cd7ac",
+ "type": "method",
+ "name": "sotn-attachment-topology-operation-activate",
+ "xml": "<method rpc='sotn-attachment-topology-operation-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 318.0313720703125,
+ "y": 236.9999976158142,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "10091edb.6afce1"
+ ]
+ ]
+ },
+ {
+ "id": "10091edb.6afce1",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 334.0313720703125,
+ "y": 792.0002422332764,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "d8983068.d1e09",
+ "b09c24ef.ef1828",
+ "ab6f9b8e.89d568",
+ "2e23abdc.47fd94",
+ "9144dc70.a7ea8",
+ "4e152126.794ef",
+ "f5e8e1c8.46298",
+ "e64a37c7.f66948",
+ "c941958.f53f068",
+ "4e69710c.777f7",
+ "7b1a01af.62e07",
+ "8f0a4580.6d9e98",
+ "e420c4c5.b6aac8",
+ "9257aeaa.1b50e",
+ "31063248.d169de",
+ "f27d2f2b.5f557",
+ "e5693b1c.1aac88",
+ "625b8a7b.c27e14",
+ "8bb4a5cf.68ff78",
+ "b625537f.a1fdd"
+ ]
+ ]
+ },
+ {
+ "id": "d8983068.d1e09",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id,etc",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 731.0248107910156,
+ "y": 190.9934844970703,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "5f587b8.9c56784",
+ "type": "comment",
+ "name": "set tmp ar-id to fetch resource from MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 759.9851226806641,
+ "y": 155.02528047561646,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "b09c24ef.ef1828",
+ "type": "set",
+ "name": "set tmp.ar.self-link",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "comments": "",
+ "x": 685.0247497558594,
+ "y": 283.99348974227905,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "9144dc70.a7ea8",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 691.2866401672363,
+ "y": 371.6602187156677,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ab6f9b8e.89d568",
+ "type": "execute",
+ "name": "generate allotted-resource tmp.ar-url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 738.2866973876953,
+ "y": 459.660222530365,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bdc75564.630b58",
+ "type": "comment",
+ "name": "GET connection-attachment-allotted-resource from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 784.8396301269531,
+ "y": 590.5386567115784,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "79296d26.4fef24",
+ "type": "comment",
+ "name": "Used for setting output to API Handler",
+ "info": "",
+ "comments": "",
+ "x": 739.0247802734375,
+ "y": 250.99349927902222,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "b691a7f5.2ca838",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 757.0247459411621,
+ "y": 336.8823800086975,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "ea7f6398.951af",
+ "type": "comment",
+ "name": "Used to Get AR by id to MDSAL, same as self-link",
+ "info": "",
+ "comments": "",
+ "x": 783.0247650146484,
+ "y": 423.8823390007019,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "bf04a12d.5ab3a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1244.6980419158936,
+ "y": 607.9999823570251,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "e36a35e0.a85518"
+ ]
+ ]
+ },
+ {
+ "id": "e36a35e0.a85518",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1388.6981201171875,
+ "y": 565.4999003410339,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "1bc51818.822678"
+ ]
+ ]
+ },
+ {
+ "id": "1bc51818.822678",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1557.5555438995361,
+ "y": 563.1190714836121,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "c5872f2b.0b178",
+ "aded6823.7e7e38"
+ ]
+ ]
+ },
+ {
+ "id": "c5872f2b.0b178",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1712.8886795043945,
+ "y": 535.1189866065979,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "79a53162.640b2"
+ ]
+ ]
+ },
+ {
+ "id": "79a53162.640b2",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1871.412483215332,
+ "y": 533.0238337516785,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "9be5dc3a.28978",
+ "5722f7fa.de6bf8",
+ "f5d4df71.72bd9"
+ ]
+ ]
+ },
+ {
+ "id": "e3ccef9e.d8f5c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connection attachment resource not exist\" />\n \n",
+ "comments": "",
+ "x": 1811.5504150390625,
+ "y": 640.0660681724548,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "5803dc5e.f9b2f4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1236.5498447418213,
+ "y": 643.0660672187805,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "19f8e68c.c0f139"
+ ]
+ ]
+ },
+ {
+ "id": "19f8e68c.c0f139",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1416.5497951507568,
+ "y": 643.732617855072,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "e3ccef9e.d8f5c"
+ ]
+ ]
+ },
+ {
+ "id": "aded6823.7e7e38",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1704.216682434082,
+ "y": 594.3993611335754,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "e3ccef9e.d8f5c"
+ ]
+ ]
+ },
+ {
+ "id": "9be5dc3a.28978",
+ "type": "set",
+ "name": "set connection-attachment-ar from get",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
+ "comments": "",
+ "x": 2118.4759368896484,
+ "y": 506.0000858306885,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "f5d4df71.72bd9",
+ "type": "set",
+ "name": "set oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
+ "comments": "",
+ "x": 2052.4759674072266,
+ "y": 579.4285883903503,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "5722f7fa.de6bf8",
+ "type": "switchNode",
+ "name": "switch order-status",
+ "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2062.475746154785,
+ "y": 545.0000224113464,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "f7f47d29.7c18f",
+ "6f0c573a.005228",
+ "d906524b.eeb18"
+ ]
+ ]
+ },
+ {
+ "id": "f7f47d29.7c18f",
+ "type": "outcome",
+ "name": "outcome Created",
+ "xml": "<outcome value='Created'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2298.075828552246,
+ "y": 539.0000534057617,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "75eaa69a.304108"
+ ]
+ ]
+ },
+ {
+ "id": "6f0c573a.005228",
+ "type": "outcome",
+ "name": "outcome Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2291.790328979492,
+ "y": 619.4286880493164,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "e10d29a3.c09e38"
+ ]
+ ]
+ },
+ {
+ "id": "75eaa69a.304108",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2456.546501159668,
+ "y": 539.3757090568542,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e10d29a3.c09e38",
+ "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\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
+ "comments": "",
+ "x": 2467.698143005371,
+ "y": 618.0000872612,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "bc697557.abf938",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 955.334300994873,
+ "y": 690.4936022758484,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4e152126.794ef",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 649.3404006958008,
+ "y": 691.499972820282,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "bc697557.abf938"
+ ]
+ ]
+ },
+ {
+ "id": "1f3fc1a6.135f3e",
+ "type": "comment",
+ "name": "GET parent-service-data from mdsal to check existence of other End point",
+ "info": "",
+ "comments": "",
+ "x": 837.03173828125,
+ "y": 736.531750202179,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "3cf6b4b1.6a71dc",
+ "type": "for",
+ "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
+ "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1728.2164459228516,
+ "y": 889.0042276382446,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "3bbeaaa4.0cfa26"
+ ]
+ ]
+ },
+ {
+ "id": "2e23abdc.47fd94",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 812.2154693603516,
+ "y": 996.7182641029358,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "6ff9a0ff.dcfb4",
+ "ff1c3916.739028",
+ "d0c138a.b8484c8"
+ ]
+ ]
+ },
+ {
+ "id": "6ff9a0ff.dcfb4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1140.3584899902344,
+ "y": 1069.5755381584167,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "499e037f.3c991c"
+ ]
+ ]
+ },
+ {
+ "id": "fb95619e.dd7a7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1324.485752105713,
+ "y": 928.7015471458435,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "3cf6b4b1.6a71dc",
+ "ec079e89.408ea"
+ ]
+ ]
+ },
+ {
+ "id": "3bbeaaa4.0cfa26",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2168.3277740478516,
+ "y": 886.004029750824,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "3cfb776.1a6dc88",
+ "a6d574db.37ec88"
+ ]
+ ]
+ },
+ {
+ "id": "3cfb776.1a6dc88",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2341.1379890441895,
+ "y": 857.468644618988,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "4685a336.4a051c"
+ ]
+ ]
+ },
+ {
+ "id": "fb81e999.e435b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2489.8984603881836,
+ "y": 914.325731754303,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "7ed4750e.b1d6fc"
+ ]
+ ]
+ },
+ {
+ "id": "7ed4750e.b1d6fc",
+ "type": "set",
+ "name": "set tmp.pidx and ptx.consumed-ar",
+ "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 2724.755886077881,
+ "y": 912.8972640037537,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "ee9aeb2c.6677a8",
+ "type": "comment",
+ "name": "Check existence of other AR in parent service data",
+ "info": "Check if other allotted resource is available.",
+ "comments": "",
+ "x": 759.9939079284668,
+ "y": 901.8929591178894,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "ff1c3916.739028",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1155.0109596252441,
+ "y": 1008.6772217750549,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "d35c3b1d.717fa8"
+ ]
+ ]
+ },
+ {
+ "id": "499e037f.3c991c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: End points not available\" />\n \n",
+ "comments": "",
+ "x": 1300.0108375549316,
+ "y": 1068.6774668693542,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "d0c138a.b8484c8",
+ "type": "other",
+ "name": "outcome 2",
+ "xml": "<outcome value='2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1150.0107727050781,
+ "y": 929.6772475242615,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "fb95619e.dd7a7"
+ ]
+ ]
+ },
+ {
+ "id": "4685a336.4a051c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2499.1222038269043,
+ "y": 856.677387714386,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a6d574db.37ec88",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2348.1218452453613,
+ "y": 913.6772475242615,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "fb81e999.e435b8"
+ ]
+ ]
+ },
+ {
+ "id": "ec079e89.408ea",
+ "type": "switchNode",
+ "name": "switch tmp.found-in-ar",
+ "xml": "<switch test='`$tmp.found-in-ar`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1537.0107498168945,
+ "y": 982.4550652503967,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "ad2dc2ca.dac11"
+ ]
+ ]
+ },
+ {
+ "id": "ad2dc2ca.dac11",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1708.01078414917,
+ "y": 983.5662865638733,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "94734e1b.67d7d"
+ ]
+ ]
+ },
+ {
+ "id": "94734e1b.67d7d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1857.0108795166016,
+ "y": 983.566285610199,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "da051cb.7908ce",
+ "511eded7.ee48c"
+ ]
+ ]
+ },
+ {
+ "id": "df822a12.2f4cb8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2603.128704071045,
+ "y": 999.7951397895813,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "8bd33391.e91a4"
+ ]
+ ]
+ },
+ {
+ "id": "6d247d3c.af7454",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2594.9805068969727,
+ "y": 1034.8612246513367,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "c9893a00.c28658"
+ ]
+ ]
+ },
+ {
+ "id": "92501bf7.64e188",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.networks_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1600.344253540039,
+ "y": 1083.89990568161,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "7eda2112.68c74",
+ "8c5ad16c.a0bce"
+ ]
+ ]
+ },
+ {
+ "id": "8c5ad16c.a0bce",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1864.3441009521484,
+ "y": 1063.7886519432068,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "c88c0702.2f3eb8"
+ ]
+ ]
+ },
+ {
+ "id": "7eda2112.68c74",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1854.3441619873047,
+ "y": 1111.7886233329773,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "4b5ebe1.f906a4"
+ ]
+ ]
+ },
+ {
+ "id": "4b5ebe1.f906a4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n",
+ "comments": "",
+ "x": 1992.9965057373047,
+ "y": 1113.890384197235,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "8c1e1bd2.c7dff8",
+ "type": "set",
+ "name": "set tmp.network.",
+ "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n\n\n",
+ "comments": "",
+ "x": 2225.788959503174,
+ "y": 1064.788821697235,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "d35c3b1d.717fa8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1322.4552688598633,
+ "y": 1007.7884888648987,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "92501bf7.64e188"
+ ]
+ ]
+ },
+ {
+ "id": "c88c0702.2f3eb8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2023.1218719482422,
+ "y": 1066.7884860038757,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "8c1e1bd2.c7dff8",
+ "57349ad5.ce57b4"
+ ]
+ ]
+ },
+ {
+ "id": "57349ad5.ce57b4",
+ "type": "for",
+ "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
+ "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2386.121910095215,
+ "y": 1112.788640499115,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "9ba86c57.e6af5"
+ ]
+ ]
+ },
+ {
+ "id": "9ba86c57.e6af5",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2432.677978515625,
+ "y": 1343.7884497642517,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "919483e8.df2a",
+ "d15629b3.f55828",
+ "5656fc8f.8dd814",
+ "831174d3.18ba68",
+ "28da2331.d9adbc",
+ "5b35ac60.b06374",
+ "8c9ddaa9.6e1178",
+ "cc2b2a86.fe9858",
+ "95f6d795.6654c8",
+ "12d0e2b2.41538d"
+ ]
+ ]
+ },
+ {
+ "id": "919483e8.df2a",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2709.1881942749023,
+ "y": 1185.7991971969604,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "d89910f0.04363"
+ ]
+ ]
+ },
+ {
+ "id": "d89910f0.04363",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2898.1878204345703,
+ "y": 1187.7990617752075,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "7fb07ab0.8731f4"
+ ]
+ ]
+ },
+ {
+ "id": "7fb07ab0.8731f4",
+ "type": "set",
+ "name": "set tmp.found-in-network tmp.ep-available",
+ "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 3151.1879959106445,
+ "y": 1187.3991079330444,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "d15629b3.f55828",
+ "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": 2683.177646636963,
+ "y": 1559.7884883880615,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "8f0a4580.6d9e98",
+ "type": "switchNode",
+ "name": "switch tmp.ep-available",
+ "xml": "<switch test='`$tmp.ep-available`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 675.3440704345703,
+ "y": 1192.2327990531921,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "a1aab633.7afd48",
+ "17b3ac8c.83db93"
+ ]
+ ]
+ },
+ {
+ "id": "17b3ac8c.83db93",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 894.0107898712158,
+ "y": 1241.566155910492,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "6fbe74b1.19033c"
+ ]
+ ]
+ },
+ {
+ "id": "a1aab633.7afd48",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 898.8995914459229,
+ "y": 1150.5662169456482,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "afc8882a.f41778"
+ ]
+ ]
+ },
+ {
+ "id": "afc8882a.f41778",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1045.8995876312256,
+ "y": 1152.455029964447,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6fbe74b1.19033c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1064.121877670288,
+ "y": 1239.566113948822,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "55f0cf15.57d45",
+ "34353928.90fd66",
+ "ef27420c.8613d"
+ ]
+ ]
+ },
+ {
+ "id": "55f0cf15.57d45",
+ "type": "switchNode",
+ "name": "switch tmp.found-in-ar",
+ "xml": "<switch test='`$tmp.found-in-ar`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1290.2328910827637,
+ "y": 1206.566113948822,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "6afed8e9.c144d8",
+ "d5770178.0518a"
+ ]
+ ]
+ },
+ {
+ "id": "6afed8e9.c144d8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1485.6773376464844,
+ "y": 1184.5661749839783,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "1eed655b.bd97fb"
+ ]
+ ]
+ },
+ {
+ "id": "d5770178.0518a",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1482.67724609375,
+ "y": 1232.5661597251892,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "b7fae121.44ba7"
+ ]
+ ]
+ },
+ {
+ "id": "1eed655b.bd97fb",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1673.2330017089844,
+ "y": 1181.5661749839783,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "f7779e2d.37621"
+ ]
+ ]
+ },
+ {
+ "id": "b7fae121.44ba7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1670.23291015625,
+ "y": 1231.5661597251892,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "b98ba5f6.13f1f8"
+ ]
+ ]
+ },
+ {
+ "id": "62f66369.cc0c1c",
+ "type": "comment",
+ "name": "GET connection-attachment-ar to store AR data from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 2182.5040855407715,
+ "y": 468.503945350647,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "9290cc56.5053",
+ "type": "comment",
+ "name": "Set source end point",
+ "info": "",
+ "comments": "",
+ "x": 672.0039825439453,
+ "y": 557.2539653778076,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "f5e8e1c8.46298",
+ "type": "set",
+ "name": "set tmp.ar.parent-service-instance-id",
+ "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
+ "comments": "",
+ "x": 723.0000762939453,
+ "y": 766.0000882148743,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "d0475d22.15b97",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1083.000228881836,
+ "y": 837.0000748634338,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "623d8d28.212994"
+ ]
+ ]
+ },
+ {
+ "id": "b0b29ede.9f732",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1074.8520317077637,
+ "y": 872.0661597251892,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "962f738f.25f05"
+ ]
+ ]
+ },
+ {
+ "id": "962f738f.25f05",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Parent service data not available\" />\n \n",
+ "comments": "",
+ "x": 1221.0008125305176,
+ "y": 871.3335709571838,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "623d8d28.212994",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1214.0003242492676,
+ "y": 837.0001358985901,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c9893a00.c28658",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN provided attachment resource not found\" />\n \n",
+ "comments": "",
+ "x": 2745.000556945801,
+ "y": 1035.0002627372742,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "8bd33391.e91a4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2730.0006790161133,
+ "y": 1002.0002474784851,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e64a37c7.f66948",
+ "type": "set",
+ "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
+ "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
+ "comments": "",
+ "x": 809.0000152587891,
+ "y": 939.0000624656677,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "fc331758.5b2778",
+ "type": "comment",
+ "name": "If other EP exists set destination end point",
+ "info": "Check if other allotted resource is available.",
+ "comments": "",
+ "x": 726.0000152587891,
+ "y": 1117.0000109672546,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "93383afb.68afc8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1466.0001373291016,
+ "y": 1444.000292301178,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "23230d18.7a6212",
+ "a2526066.96f0c",
+ "93d759ca.c80638",
+ "cfe2307e.244ab",
+ "b727775.7f84888",
+ "373cb481.0be6cc",
+ "9ebd0cde.5ee4a",
+ "3f0a30ad.0a05f"
+ ]
+ ]
+ },
+ {
+ "id": "23230d18.7a6212",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1708.5104389190674,
+ "y": 1314.0106887817383,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "6e6de50.27a681c"
+ ]
+ ]
+ },
+ {
+ "id": "a2526066.96f0c",
+ "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": 1681.5003910064697,
+ "y": 1619.0006523132324,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "93d759ca.c80638",
+ "type": "switchNode",
+ "name": "switch access-ltp-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-ltp-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1700.0002689361572,
+ "y": 1357.7782201766968,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "4537bdaa.d5e104"
+ ]
+ ]
+ },
+ {
+ "id": "cfe2307e.244ab",
+ "type": "switchNode",
+ "name": "switch clientSignal",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'clientSignal'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1694.0003070831299,
+ "y": 1403.7782669067383,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "7a3fa09e.aa469"
+ ]
+ ]
+ },
+ {
+ "id": "b727775.7f84888",
+ "type": "switchNode",
+ "name": "switch cVLAN",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'cVLAN'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1677.9898090362549,
+ "y": 1442.7677688598633,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "97596f16.2d148"
+ ]
+ ]
+ },
+ {
+ "id": "6e6de50.27a681c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1886.2223529815674,
+ "y": 1314.6670608520508,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "98c866c4.5a0d58"
+ ]
+ ]
+ },
+ {
+ "id": "98c866c4.5a0d58",
+ "type": "set",
+ "name": "set dst-access-node-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 2061.2223529815674,
+ "y": 1314.2670359611511,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "4537bdaa.d5e104",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1881.7122211456299,
+ "y": 1357.4345169067383,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "779f9f70.9b8e"
+ ]
+ ]
+ },
+ {
+ "id": "7a3fa09e.aa469",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1881.7122211456299,
+ "y": 1403.4345169067383,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "f9bbfd69.a91aa"
+ ]
+ ]
+ },
+ {
+ "id": "97596f16.2d148",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1881.7017230987549,
+ "y": 1442.4241409301758,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "9e73cdad.1270d"
+ ]
+ ]
+ },
+ {
+ "id": "34353928.90fd66",
+ "type": "for",
+ "name": "for idx..tmp.ep.parameters[]",
+ "xml": "<for index='idx' start='0' end='`$tmp.ep.parameters.param_length`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1319,
+ "y": 1331.9999976158142,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "93383afb.68afc8"
+ ]
+ ]
+ },
+ {
+ "id": "f7779e2d.37621",
+ "type": "set",
+ "name": "set tmp.ep.parameters",
+ "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$mdsal-other-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.`' />\n",
+ "comments": "",
+ "x": 1885.0000553131104,
+ "y": 1181.000072002411,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "b98ba5f6.13f1f8",
+ "type": "set",
+ "name": "set tmp.ep.parameters",
+ "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$tmp.network.network-data.network-request-input.network-input-parameters.`' />\n",
+ "comments": "",
+ "x": 1881.999963760376,
+ "y": 1227.0000567436218,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "779f9f70.9b8e",
+ "type": "set",
+ "name": "set dst-access-node-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 2059.0001850128174,
+ "y": 1357.0003128051758,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "f9bbfd69.a91aa",
+ "type": "set",
+ "name": "set dst-clientSignal",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.clientSignal' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 2053.0001850128174,
+ "y": 1401.0003128051758,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "9e73cdad.1270d",
+ "type": "set",
+ "name": "set dst-cVLAN",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.cVLAN' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 2044.0001850128174,
+ "y": 1440.0003128051758,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "9a68bff2.8c292",
+ "type": "comment",
+ "name": "Get controller info and send request",
+ "info": "",
+ "comments": "",
+ "x": 1926.000057220459,
+ "y": 1911.0001511573792,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "aa539917.f17c98",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create ethernet Service",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\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=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2464.0008239746094,
+ "y": 2179.0013360977173,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "129cac0c.055ac4",
+ "470289f4.54d198"
+ ]
+ ]
+ },
+ {
+ "id": "129cac0c.055ac4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2797.000648498535,
+ "y": 2188.0015811920166,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "540c8068.f38"
+ ]
+ ]
+ },
+ {
+ "id": "540c8068.f38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2945.000648498535,
+ "y": 2186.001459121704,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "86d52886.e02b08",
+ "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=\"Error executing Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 2927.0006790161133,
+ "y": 2133.001519203186,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "470289f4.54d198",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2788.000587463379,
+ "y": 2133.001519203186,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "86d52886.e02b08"
+ ]
+ ]
+ },
+ {
+ "id": "d001a7e2.45abd8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 897.7624244689941,
+ "y": 2134.953706264496,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "f4c6242e.026e78"
+ ]
+ ]
+ },
+ {
+ "id": "f4c6242e.026e78",
+ "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=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 1064.2862453460693,
+ "y": 2161.5727133750916,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "5249365f.05f8c8",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 899.8576526641846,
+ "y": 2182.715548992157,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "f4c6242e.026e78"
+ ]
+ ]
+ },
+ {
+ "id": "f04e271d.103d68",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 671.8100681304932,
+ "y": 2123.3028693199158,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "625b8a7b.c27e14",
+ "type": "set",
+ "name": "set output to api handler",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "comments": "",
+ "x": 686.5777645111084,
+ "y": 2044.8283505439758,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "b625537f.a1fdd",
+ "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": 646.9909362792969,
+ "y": 2230.4441390037537,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "e5693b1c.1aac88",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT AR by id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 739.3098468780518,
+ "y": 1969.4692034721375,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "cfef9f3f.14c39",
+ "72aa50f4.96321",
+ "28a18b03.896b34"
+ ]
+ ]
+ },
+ {
+ "id": "cfef9f3f.14c39",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 993.9512691497803,
+ "y": 2013.800597667694,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "492ba4ec.f6b39c"
+ ]
+ ]
+ },
+ {
+ "id": "72aa50f4.96321",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 995.9512920379639,
+ "y": 1972.3005618080497,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "492ba4ec.f6b39c"
+ ]
+ ]
+ },
+ {
+ "id": "28a18b03.896b34",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 999.7013759613037,
+ "y": 1923.6577143669128,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "85d2ed51.1b8c4"
+ ]
+ ]
+ },
+ {
+ "id": "492ba4ec.f6b39c",
+ "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1154.70139503479,
+ "y": 1992.0506281852722,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "85d2ed51.1b8c4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1127.3573207855225,
+ "y": 1925.8498826026917,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e420c4c5.b6aac8",
+ "type": "set",
+ "name": "set ar-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
+ "comments": "",
+ "x": 641.5234622955322,
+ "y": 1803.8501045703888,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "31063248.d169de",
+ "type": "execute",
+ "name": "execute getTime",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 658.80930519104,
+ "y": 1876.469702243805,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f27d2f2b.5f557",
+ "type": "set",
+ "name": "set allotted-resource-oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
+ "comments": "",
+ "x": 708.7963848114014,
+ "y": 1913.4207825660706,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "9257aeaa.1b50e",
+ "type": "set",
+ "name": "set model-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
+ "comments": "",
+ "x": 655.3650035858154,
+ "y": 1843.0247550010681,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "32d6bb38.221fd4",
+ "type": "comment",
+ "name": "Prepare data for allotted-resource addition to MDSAL",
+ "info": "This will add to allotted-resource which is present inside service.",
+ "comments": "",
+ "x": 768.69846534729,
+ "y": 1764.0247070789337,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "8d90c1db.edb92",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 710.2782917022705,
+ "y": 1731.4380087852478,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "8bb4a5cf.68ff78",
+ "type": "update",
+ "name": "update AAI allotted-resource",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Active\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 698.2543468475342,
+ "y": 2160.75501203537,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "d001a7e2.45abd8",
+ "5249365f.05f8c8"
+ ]
+ ]
+ },
+ {
+ "id": "f242ac55.63689",
+ "type": "execute",
+ "name": "execute RestApiCallNode getPath from OOF",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1507.004306793213,
+ "y": 1723.2546639442444,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "8ebd53f.a1c8db",
+ "4a1f8620.db9dd8"
+ ]
+ ]
+ },
+ {
+ "id": "8ebd53f.a1c8db",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1747.0044479370117,
+ "y": 1747.2546334266663,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "386f994c.1e59a6"
+ ]
+ ]
+ },
+ {
+ "id": "2728f3f1.18be8c",
+ "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=\"Error executing OOF api\" />\n",
+ "comments": "",
+ "x": 1886.004482269287,
+ "y": 1696.2547249794006,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "4a1f8620.db9dd8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1746.0042343139648,
+ "y": 1696.2547240257263,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "2728f3f1.18be8c"
+ ]
+ ]
+ },
+ {
+ "id": "f4212815.8844c8",
+ "type": "comment",
+ "name": "Get VPNs from OOF",
+ "info": "",
+ "comments": "",
+ "x": 1493.008228302002,
+ "y": 1690.2586636543274,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "30312f10.31bce",
+ "type": "for",
+ "name": "for vidx..oof.vpns_length[]",
+ "xml": "<for index='vidx' start='0' end='`$oof.vpns_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1447.004150390625,
+ "y": 1805.5043921470642,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "6a968eb5.e990c"
+ ]
+ ]
+ },
+ {
+ "id": "50ffe7da.bf4678",
+ "type": "comment",
+ "name": "Loop through VPN and configure them",
+ "info": "",
+ "comments": "",
+ "x": 1493.0046005249023,
+ "y": 1940.0047698020935,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "5656fc8f.8dd814",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'name'`\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2686.788330078125,
+ "y": 1277.1218237876892,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "55653cd7.ec43f4"
+ ]
+ ]
+ },
+ {
+ "id": "55653cd7.ec43f4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2875.788299560547,
+ "y": 1277.1218090057373,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "5525b0a7.6138f"
+ ]
+ ]
+ },
+ {
+ "id": "5525b0a7.6138f",
+ "type": "set",
+ "name": "set etht-svc-name & bandwidth-profile-name",
+ "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name='prop.global.sotn.bandwidth-profile-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 3116.78861618042,
+ "y": 1276.721863746643,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "831174d3.18ba68",
+ "type": "switchNode",
+ "name": "switch description",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'description'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2699.6282081604004,
+ "y": 1312.1219186782837,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "3b411fae.953a4"
+ ]
+ ]
+ },
+ {
+ "id": "3b411fae.953a4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2874.628273010254,
+ "y": 1314.121904373169,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "8774460.14dcdb8"
+ ]
+ ]
+ },
+ {
+ "id": "8774460.14dcdb8",
+ "type": "set",
+ "name": "set etht-svc-descr",
+ "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-descr' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 3030.9615898132324,
+ "y": 1311.5829792022705,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "28da2331.d9adbc",
+ "type": "switchNode",
+ "name": "switch tenantId",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'tenantId'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2695.010471343994,
+ "y": 1345.4553089141846,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "ada04353.d80d1"
+ ]
+ ]
+ },
+ {
+ "id": "ada04353.d80d1",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2873.0104751586914,
+ "y": 1349.455186843872,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "cee74467.1a9228"
+ ]
+ ]
+ },
+ {
+ "id": "cee74467.1a9228",
+ "type": "set",
+ "name": "set tenantId",
+ "xml": "<set>\n<parameter name='prop.global.sotn.tenantId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 3011.0106620788574,
+ "y": 1346.0551624298096,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "8c9ddaa9.6e1178",
+ "type": "switchNode",
+ "name": "switch cir",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'cir'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2677.850070953369,
+ "y": 1418.4552640914917,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "cd954fdf.ea0ed"
+ ]
+ ]
+ },
+ {
+ "id": "cd954fdf.ea0ed",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2872.8501358032227,
+ "y": 1419.4552640914917,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "31bd7e24.629462"
+ ]
+ ]
+ },
+ {
+ "id": "31bd7e24.629462",
+ "type": "set",
+ "name": "set cir",
+ "xml": "<set>\n<parameter name='prop.sotn.cir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2997.18363571167,
+ "y": 1417.9163389205933,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "5b35ac60.b06374",
+ "type": "switchNode",
+ "name": "switch vpnType",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'vpnType'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2692.158359527588,
+ "y": 1381.2329740524292,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "1d4c9619.a6669a"
+ ]
+ ]
+ },
+ {
+ "id": "1d4c9619.a6669a",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2874.158546447754,
+ "y": 1384.2329587936401,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "bd64b5e6.539838"
+ ]
+ ]
+ },
+ {
+ "id": "bd64b5e6.539838",
+ "type": "set",
+ "name": "set vpnType",
+ "xml": "<set>\n<parameter name='prop.global.sotn.vpnType' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 3010.492290496826,
+ "y": 1380.694200515747,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "cc2b2a86.fe9858",
+ "type": "switchNode",
+ "name": "switch eir",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'eir'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2673.1404151916504,
+ "y": 1452.1531715393066,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "203ce537.bd8b2a"
+ ]
+ ]
+ },
+ {
+ "id": "203ce537.bd8b2a",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2873.1406631469727,
+ "y": 1455.1531105041504,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "7faf1119.e88e9"
+ ]
+ ]
+ },
+ {
+ "id": "7faf1119.e88e9",
+ "type": "set",
+ "name": "set eir",
+ "xml": "<set>\n<parameter name='prop.global.sotn.eir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2996.4742851257324,
+ "y": 1454.614170074463,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "95f6d795.6654c8",
+ "type": "switchNode",
+ "name": "switch colorAware",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'colorAware'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2698.141025543213,
+ "y": 1486.1530504226685,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "b60ea4bb.5cc238"
+ ]
+ ]
+ },
+ {
+ "id": "b60ea4bb.5cc238",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2869.1408462524414,
+ "y": 1492.152988910675,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "6d5c307a.1a01c"
+ ]
+ ]
+ },
+ {
+ "id": "6d5c307a.1a01c",
+ "type": "set",
+ "name": "set colorAware",
+ "xml": "<set>\n<parameter name='prop.global.sotn.colorAware' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 3017.47416305542,
+ "y": 1492.6142015457153,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "12d0e2b2.41538d",
+ "type": "switchNode",
+ "name": "switch couplingFlag",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'couplingFlag'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2700.1409645080566,
+ "y": 1522.153112411499,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "9768f5df.e54b58"
+ ]
+ ]
+ },
+ {
+ "id": "9768f5df.e54b58",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2872.1408462524414,
+ "y": 1531.153081893921,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "9d447a7c.f87728"
+ ]
+ ]
+ },
+ {
+ "id": "9d447a7c.f87728",
+ "type": "set",
+ "name": "set couplingFlag",
+ "xml": "<set>\n<parameter name='prop.global.sotn.couplingFlag' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 3025.47416305542,
+ "y": 1531.6142024993896,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "23c26849.b1be88",
+ "type": "comment",
+ "name": "Check if other EP exists in SOTNConnectionResource",
+ "info": "",
+ "comments": "",
+ "x": 2831.343994140625,
+ "y": 1140.7884497642517,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "1c7f6b36.0dde35",
+ "type": "comment",
+ "name": "Get other global parameters from network",
+ "info": "",
+ "comments": "",
+ "x": 2767.34375,
+ "y": 1226.7884497642517,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "373cb481.0be6cc",
+ "type": "switchNode",
+ "name": "switch access-provider-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-provider-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1715.5661029815674,
+ "y": 1488.2329788208008,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "ff1ef452.ac6398"
+ ]
+ ]
+ },
+ {
+ "id": "ff1ef452.ac6398",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1902.5661029815674,
+ "y": 1484.2329788208008,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "ed2e9db3.52782"
+ ]
+ ]
+ },
+ {
+ "id": "ed2e9db3.52782",
+ "type": "set",
+ "name": "set access-provider-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2070.5661029815674,
+ "y": 1484.8329849243164,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "9ebd0cde.5ee4a",
+ "type": "switchNode",
+ "name": "switch access-client-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-client-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1706.5661182403564,
+ "y": 1531.2434272766113,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "6a1f9494.a9099c"
+ ]
+ ]
+ },
+ {
+ "id": "6a1f9494.a9099c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1893.5661182403564,
+ "y": 1527.2434272766113,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "5c104369.10385c"
+ ]
+ ]
+ },
+ {
+ "id": "5c104369.10385c",
+ "type": "set",
+ "name": "set access-client-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2061.5661182403564,
+ "y": 1527.843433380127,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "3f0a30ad.0a05f",
+ "type": "switchNode",
+ "name": "switch access-topology-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-topology-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1719.566062927246,
+ "y": 1573.2434582710266,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "b8481b61.974128"
+ ]
+ ]
+ },
+ {
+ "id": "b8481b61.974128",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1906.566062927246,
+ "y": 1569.2434582710266,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "cd99ec59.16d01"
+ ]
+ ]
+ },
+ {
+ "id": "cd99ec59.16d01",
+ "type": "set",
+ "name": "set access-topology-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2074.566062927246,
+ "y": 1569.8434643745422,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "6a968eb5.e990c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1670.121467590332,
+ "y": 1842.3444514274597,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "25415b54.636c54",
+ "a5206342.9aba",
+ "51f40b71.957074",
+ "f753496f.fd6098",
+ "a5fc88b6.7da8a8",
+ "48526f97.44c48",
+ "e2b95315.238d5",
+ "1f7c3b05.6c25b5",
+ "15600759.2f8af9",
+ "38b5d1f7.8043be",
+ "3f572112.50e40e"
+ ]
+ ]
+ },
+ {
+ "id": "94168d9.4338d7",
+ "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.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
+ "comments": "",
+ "x": 2311.566131591797,
+ "y": 1906.67764377594,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "1f7c3b05.6c25b5",
+ "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": 1928.0660400390625,
+ "y": 1943.6775832176208,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "530a02a.35bc5fc",
+ "69cd2500.075b9c",
+ "30e7132.e91f7ec"
+ ]
+ ]
+ },
+ {
+ "id": "530a02a.35bc5fc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2148.065975189209,
+ "y": 1907.6775522232056,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "94168d9.4338d7"
+ ]
+ ]
+ },
+ {
+ "id": "69cd2500.075b9c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2157.556915283203,
+ "y": 1948.251558303833,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "5bd73e6e.fe56f"
+ ]
+ ]
+ },
+ {
+ "id": "30e7132.e91f7ec",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2152.889892578125,
+ "y": 1984.5848712921143,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "af020f5f.af078"
+ ]
+ ]
+ },
+ {
+ "id": "5bd73e6e.fe56f",
+ "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 2304.1282653808594,
+ "y": 1944.5373849868774,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "af020f5f.af078",
+ "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 occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 2307.6625366210938,
+ "y": 1986.024019241333,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "e2b95315.238d5",
+ "type": "get-resource",
+ "name": "get-resource pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $oof.vpn.access-node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1873.565933227539,
+ "y": 1852.6772270202637,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "14ef11a9.e55e2e",
+ "226a17e2.188c38",
+ "6e24acbd.f1e944"
+ ]
+ ]
+ },
+ {
+ "id": "14ef11a9.e55e2e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2055.5659790039062,
+ "y": 1797.6773371696472,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "24ab4d52.5b5102"
+ ]
+ ]
+ },
+ {
+ "id": "226a17e2.188c38",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2056.0568809509277,
+ "y": 1835.2514338493347,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "c7278eff.a4e77"
+ ]
+ ]
+ },
+ {
+ "id": "6e24acbd.f1e944",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2047.389892578125,
+ "y": 1868.5848088264465,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "86f1cee5.6a47d"
+ ]
+ ]
+ },
+ {
+ "id": "c7278eff.a4e77",
+ "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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2203.628505706787,
+ "y": 1834.5373225212097,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "86f1cee5.6a47d",
+ "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 occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2201.1625366210938,
+ "y": 1868.0239567756653,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "24ab4d52.5b5102",
+ "type": "set",
+ "name": "set tmp.thirdparty-sdnc-id",
+ "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 2240.5659790039062,
+ "y": 1796.6774592399597,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "c836a451.421728",
+ "type": "comment",
+ "name": "get domain controller information",
+ "info": "",
+ "comments": "",
+ "x": 1924.0698471069336,
+ "y": 1819.681182384491,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "15600759.2f8af9",
+ "type": "set",
+ "name": "set oof.vpn",
+ "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />",
+ "comments": "",
+ "x": 1885.565933227539,
+ "y": 1773.7883105278015,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "a5206342.9aba",
+ "type": "save",
+ "name": "save VPN resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1900.0314102172852,
+ "y": 2350.750671863556,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "51f40b71.957074",
+ "type": "set",
+ "name": "set tmp.vpnName",
+ "xml": "<set>\n<parameter name='tmp.vpnName' value=\"`$oof.vpn.access-node-id + '-' + $prop.global.sotn.etht-svc-name`\" />",
+ "comments": "",
+ "x": 1876.5314102172852,
+ "y": 2303.2503685951233,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "f753496f.fd6098",
+ "type": "save",
+ "name": "save connectivity relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1935.0314102172852,
+ "y": 2395.750427722931,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b6eef9a7.432da8",
+ "type": "comment",
+ "name": "save vpn and its relation to AAI",
+ "info": "",
+ "comments": "",
+ "x": 1918.031608581543,
+ "y": 2264.7506375312805,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "25415b54.636c54",
+ "type": "set",
+ "name": "set src-ltpId dst-ltpId",
+ "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",
+ "comments": "",
+ "x": 1887.0314407348633,
+ "y": 2435.750547885895,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "a5fc88b6.7da8a8",
+ "type": "save",
+ "name": "save srcLTP relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1921.0316925048828,
+ "y": 2475.50075674057,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "48526f97.44c48",
+ "type": "save",
+ "name": "save dstLTP relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1919.0315246582031,
+ "y": 2521.2505955696106,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c941958.f53f068",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 865.0351867675781,
+ "y": 626.0039095878601,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "bf04a12d.5ab3a",
+ "5803dc5e.f9b2f4"
+ ]
+ ]
+ },
+ {
+ "id": "4e69710c.777f7",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 792.0353393554688,
+ "y": 853.0040726661682,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "d0475d22.15b97",
+ "b0b29ede.9f732"
+ ]
+ ]
+ },
+ {
+ "id": "7b1a01af.62e07",
+ "type": "execute",
+ "name": "get parent-service-data url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 692.0352478027344,
+ "y": 816.0039057731628,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "da051cb.7908ce",
+ "type": "execute",
+ "name": "generate tmp.ar-other-url-connection",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-other-url-connection\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.provided-ar.allotted-resource-id`\"/>\n \n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2106.0316009521484,
+ "y": 972.3334670066833,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "511eded7.ee48c",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-other-url-connection`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-other-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2243.032241821289,
+ "y": 1014.8333315849304,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "df822a12.2f4cb8",
+ "6d247d3c.af7454"
+ ]
+ ]
+ },
+ {
+ "id": "386f994c.1e59a6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1868.0315208435059,
+ "y": 1738.0001168251038,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ef27420c.8613d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1245.0001335144043,
+ "y": 1763.0003008842468,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "f242ac55.63689",
+ "30312f10.31bce"
+ ]
+ ]
+ },
+ {
+ "id": "d906524b.eeb18",
+ "type": "outcome",
+ "name": "outcome PendingDelete",
+ "xml": "<outcome value='PendingDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2319.0625915527344,
+ "y": 578.03129529953,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "e6b0a51.a605158"
+ ]
+ ]
+ },
+ {
+ "id": "e6b0a51.a605158",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2503.062602996826,
+ "y": 574.03129529953,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "38b5d1f7.8043be",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1948.5351867675781,
+ "y": 2070.003924846649,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "e9cfbd0.6beca4",
+ "329096c7.0b55ba"
+ ]
+ ]
+ },
+ {
+ "id": "e9cfbd0.6beca4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2183.535186767578,
+ "y": 2048.003924846649,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "44854a0f.60c554"
+ ]
+ ]
+ },
+ {
+ "id": "329096c7.0b55ba",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2175.785186767578,
+ "y": 2101.6468081474304,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "8f0a300b.e6801"
+ ]
+ ]
+ },
+ {
+ "id": "44854a0f.60c554",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 2337.535186767578,
+ "y": 2049.003924846649,
+ "z": "e47fc805.c5c588",
+ "wires": []
+ },
+ {
+ "id": "3f572112.50e40e",
+ "type": "switchNode",
+ "name": "switch prop.sdncRestApi.token_id",
+ "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1951.5312194824219,
+ "y": 2167.031491279602,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "71416b24.4767f4",
+ "95a4ed31.47c83"
+ ]
+ ]
+ },
+ {
+ "id": "71416b24.4767f4",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2177.531467437744,
+ "y": 2143.0313682556152,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "9a737a81.94bba8"
+ ]
+ ]
+ },
+ {
+ "id": "95a4ed31.47c83",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2171.5313453674316,
+ "y": 2206.5313692092896,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "aa539917.f17c98"
+ ]
+ ]
+ },
+ {
+ "id": "8f0a300b.e6801",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2334.53125,
+ "y": 2099.03125,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9a737a81.94bba8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create ethernet Service",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\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=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2465.53125,
+ "y": 2140.03125,
+ "z": "e47fc805.c5c588",
+ "wires": [
+ [
+ "470289f4.54d198",
+ "129cac0c.055ac4"
+ ]
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json index a0faa6a9..bccb6189 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json @@ -1,2017 +1,2087 @@ -[ - { - "id": "b0d71f3f.58b13", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 123, - "y": 32, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "962f9112.e764e" - ] - ] - }, - { - "id": "962f9112.e764e", - "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": 304.00000381469727, - "y": 92.0000171661377, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "87a8de44.934de" - ] - ] - }, - { - "id": "87a8de44.934de", - "type": "method", - "name": "sotn-attachment-topology-operation-deactivate", - "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n", - "comments": "", - "outputs": 1, - "x": 292.0001220703125, - "y": 180, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "b2d80288.ba823" - ] - ] - }, - { - "id": "b2d80288.ba823", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 308.0001220703125, - "y": 735.0002446174622, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "6613ec86.694124", - "f6decbbf.dd5e18", - "1fbc45c.0ff5aba", - "bc709271.507d8", - "1c40b1f3.81976e", - "4f9b598.14771a8", - "8522b683.befcf8", - "62f18656.44cfe8", - "683cb14.3ce605", - "c2e56bca.b33d78", - "802f8ef7.b6731", - "5c1eba3c.5a3914", - "d3793c0a.e76dd", - "a3a48876.1d8a18", - "7ccf367e.a869f8", - "2c211a2d.e90676", - "693977cc.87d158", - "c0b8662.2083398", - "fada7ab3.d1d4e8", - "cfef8c40.7d401" - ] - ] - }, - { - "id": "6613ec86.694124", - "type": "set", - "name": "set tmp.ar.allotted-resource-id,etc", - "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n", - "comments": "", - "x": 704.9935607910156, - "y": 133.9934868812561, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "c64c0419.fa25b8", - "type": "comment", - "name": "set tmp ar-id to fetch resource from MDSAL", - "info": "", - "comments": "", - "x": 733.9538726806641, - "y": 98.02528285980225, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "f6decbbf.dd5e18", - "type": "set", - "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n", - "comments": "", - "x": 658.9934997558594, - "y": 226.99349212646484, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "1c40b1f3.81976e", - "type": "execute", - "name": "execute Properties", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n", - "comments": "", - "outputs": 1, - "x": 665.2553901672363, - "y": 314.6602210998535, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "1fbc45c.0ff5aba", - "type": "execute", - "name": "generate allotted-resource tmp.ar-url", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n", - "comments": "", - "outputs": 1, - "x": 715.2554931640625, - "y": 401.66022205352783, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "61a9d102.2b159", - "type": "comment", - "name": "GET connection-attachment-allotted-resource from mdsal", - "info": "", - "comments": "", - "x": 758.8084869384766, - "y": 472.53876876831055, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "e3f68d6f.a262e", - "type": "comment", - "name": "Used for setting output to API Handler", - "info": "", - "comments": "", - "x": 712.9935302734375, - "y": 193.993501663208, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "b492f1ea.34bc2", - "type": "comment", - "name": "Obtain different URL, template location etc", - "info": "For saving resource information to MDSAL & for AAI", - "comments": "", - "x": 730.9934959411621, - "y": 279.8823823928833, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "d53312d8.be37d", - "type": "comment", - "name": "Used to Get AR by id to MDSAL, same as self-link", - "info": "", - "comments": "", - "x": 756.9935150146484, - "y": 366.8823413848877, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "e963cad3.e8d6c8", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1199.6668281555176, - "y": 520.0000286102295, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "8ab48cf9.6862d" - ] - ] - }, - { - "id": "8ab48cf9.6862d", - "type": "block", - "name": "block: atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1368.6668319702148, - "y": 518.4999294281006, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "46b50e5a.245ae" - ] - ] - }, - { - "id": "46b50e5a.245ae", - "type": "switchNode", - "name": "switch cr length", - "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n", - "comments": "", - "outputs": 1, - "x": 1541.5241012573242, - "y": 456.11909198760986, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "13dfccaf.a022c3", - "30d435f0.aca96a" - ] - ] - }, - { - "id": "13dfccaf.a022c3", - "type": "other", - "name": "outcome 1", - "xml": "<outcome value='1'>\n", - "comments": "", - "outputs": 1, - "x": 1778.8573455810547, - "y": 434.1190423965454, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "2fbac1bd.15b6ee" - ] - ] - }, - { - "id": "2fbac1bd.15b6ee", - "type": "block", - "name": "block: atomic", - "xml": "<block atomic='true'>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1963.3812351226807, - "y": 431.02387619018555, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "5bdbcf18.37ca8", - "cbe39501.d4aef8", - "a9187100.e70c6" - ] - ] - }, - { - "id": "6cd8cd98.bbac14", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n", - "comments": "", - "x": 1887.5190773010254, - "y": 556.0661172866821, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "489ff5d2.164b7c", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1191.5186309814453, - "y": 555.0661134719849, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "6d0a26d5.df63e8" - ] - ] - }, - { - "id": "6d0a26d5.df63e8", - "type": "block", - "name": "block: atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1371.5185813903809, - "y": 555.7326641082764, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "6cd8cd98.bbac14" - ] - ] - }, - { - "id": "30d435f0.aca96a", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1767.1852989196777, - "y": 471.3994026184082, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "6cd8cd98.bbac14" - ] - ] - }, - { - "id": "5bdbcf18.37ca8", - "type": "set", - "name": "set connection-attachment-ar from get", - "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n", - "comments": "", - "x": 2209.444793701172, - "y": 391.0001058578491, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "a9187100.e70c6", - "type": "set", - "name": "set oper-status", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n", - "comments": "", - "x": 2142.4447898864746, - "y": 481.42866039276123, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "cbe39501.d4aef8", - "type": "switchNode", - "name": "switch order-status", - "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n", - "comments": "", - "outputs": 1, - "x": 2153.444625854492, - "y": 435.0001096725464, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "1d7c3fd4.3573f", - "34a89ac4.b608e6" - ] - ] - }, - { - "id": "1d7c3fd4.3573f", - "type": "outcome", - "name": "outcome Active", - "xml": "<outcome value='Active'>\n", - "comments": "", - "outputs": 1, - "x": 2360.044574737549, - "y": 425.0001096725464, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "fffa8dec.2b92a" - ] - ] - }, - { - "id": "34a89ac4.b608e6", - "type": "outcome", - "name": "outcome Other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 2359.7590942382812, - "y": 467.4287004470825, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "31994932.765476" - ] - ] - }, - { - "id": "fffa8dec.2b92a", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 2512.5151290893555, - "y": 423.3757600784302, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "31994932.765476", - "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\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n", - "comments": "", - "x": 2532.6669845581055, - "y": 464.000111579895, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "ade228e6.1238f8", - "type": "call", - "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param", - "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n", - "comments": "", - "outputs": 1, - "x": 920.3031158447266, - "y": 616.4935908317566, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "4f9b598.14771a8", - "type": "block", - "name": "block: atomic", - "xml": "<block atomic=\"true\">\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 617.3092803955078, - "y": 617.4999389648438, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "ade228e6.1238f8" - ] - ] - }, - { - "id": "2ee127b4.83e818", - "type": "comment", - "name": "GET parent-service-data from mdsal to check existence of other End point", - "info": "", - "comments": "", - "x": 799.0004425048828, - "y": 678.5316982269287, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "ac0c0701.4d5818", - "type": "for", - "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]", - "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n", - "comments": "", - "outputs": 1, - "x": 1689.1849975585938, - "y": 882.0040826797485, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "6de65a21.ad20a4" - ] - ] - }, - { - "id": "cf2de8b0.5bcd28", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1095.3269691467285, - "y": 1014.5755434036255, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "75a0a72c.5c3178" - ] - ] - }, - { - "id": "2c958bf6.015ea4", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1286.4543704986572, - "y": 879.7015712037683, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "ac0c0701.4d5818" - ] - ] - }, - { - "id": "6de65a21.ad20a4", - "type": "switchNode", - "name": "switch allotted-resource-id", - "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n", - "comments": "", - "outputs": 1, - "x": 2124.296398162842, - "y": 882.0039796829224, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "9440a4ce.27b3b8", - "44e5c372.52cc1c" - ] - ] - }, - { - "id": "9440a4ce.27b3b8", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2333.106746673584, - "y": 862.4684362411499, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "ce614dfc.389e4" - ] - ] - }, - { - "id": "5d89c62c.f1ebc8", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 2481.867500305176, - "y": 898.3256177902222, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "12052b78.fd51b5" - ] - ] - }, - { - "id": "12052b78.fd51b5", - "type": "set", - "name": "set tmp.pidx and ptx.consumed-ar", - "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />", - "comments": "", - "x": 2716.724937438965, - "y": 896.8971490859985, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "2107b4e5.fcdf0c", - "type": "comment", - "name": "Check existence of other AR in parent service data", - "info": "Check if other allotted resource is available.", - "comments": "", - "x": 722.9628448486328, - "y": 848.8929204940796, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "103b0ff7.ad1fb", - "type": "other", - "name": "outcome 1", - "xml": "<outcome value='1'>\n", - "comments": "", - "outputs": 1, - "x": 1105.9793167114258, - "y": 949.677264213562, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "61e7696e.e32818" - ] - ] - }, - { - "id": "75a0a72c.5c3178", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n", - "comments": "", - "x": 1267.9793128967285, - "y": 1013.677285194397, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "4057b675.85b588", - "type": "other", - "name": "outcome 2", - "xml": "<outcome value='2'>\n", - "comments": "", - "outputs": 1, - "x": 1111.9793910980225, - "y": 880.6772715821862, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "2c958bf6.015ea4" - ] - ] - }, - { - "id": "ce614dfc.389e4", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 2462.090805053711, - "y": 857.6771764755249, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "44e5c372.52cc1c", - "type": "outcomeTrue", - "name": "false", - "xml": "<outcome value='false'>\n", - "comments": "", - "outputs": 1, - "x": 2333.0907974243164, - "y": 896.6771802902222, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "5d89c62c.f1ebc8" - ] - ] - }, - { - "id": "4960bf69.46744", - "type": "switchNode", - "name": "switch mdsal-psd.networks_length", - "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n", - "comments": "", - "outputs": 1, - "x": 1518.3129959106445, - "y": 952.8997611999512, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "21a6ff32.cc535", - "fd1b6df1.cb9a8" - ] - ] - }, - { - "id": "fd1b6df1.cb9a8", - "type": "other", - "name": "outcome 1", - "xml": "<outcome value='1'>\n", - "comments": "", - "outputs": 1, - "x": 1748.3130187988281, - "y": 928.7885932922363, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "bb9fff84.461e" - ] - ] - }, - { - "id": "21a6ff32.cc535", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1742.3131408691406, - "y": 988.7885932922363, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "8d4e5f2f.b2054" - ] - ] - }, - { - "id": "8d4e5f2f.b2054", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n", - "comments": "", - "x": 1914.9655265808105, - "y": 988.8903999328613, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "e3b0ecf2.4e878", - "type": "set", - "name": "set tmp.network.", - "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n", - "comments": "", - "x": 2116.757942199707, - "y": 918.7887525558472, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "61e7696e.e32818", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1278.423671722412, - "y": 950.7885122299194, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "4960bf69.46744" - ] - ] - }, - { - "id": "bb9fff84.461e", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1916.090690612793, - "y": 947.7884273529053, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "e3b0ecf2.4e878", - "2162bd86.35e6f2" - ] - ] - }, - { - "id": "2162bd86.35e6f2", - "type": "for", - "name": "for nidx..tmp.network.network-data.network-request-input.network...[]", - "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >", - "comments": "", - "outputs": 1, - "x": 2292.09130859375, - "y": 990.7884349822998, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "15f15c9c.6120f3" - ] - ] - }, - { - "id": "15f15c9c.6120f3", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 2615.6469688415527, - "y": 991.7885122299194, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "1f8bf049.48a41", - "24ef27d4.5acd08" - ] - ] - }, - { - "id": "1f8bf049.48a41", - "type": "switchNode", - "name": "switch access-node-id", - "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">", - "comments": "", - "outputs": 1, - "x": 2794.1570739746094, - "y": 975.7989301681519, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "8ecdc6ef.8a8ce8" - ] - ] - }, - { - "id": "8ecdc6ef.8a8ce8", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 2981.1570739746094, - "y": 976.7989301681519, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "5c66b7eb.d5bf28" - ] - ] - }, - { - "id": "5c66b7eb.d5bf28", - "type": "set", - "name": "set tmp.found-in-network tmp.ep-available", - "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />", - "comments": "", - "x": 3232.157081604004, - "y": 976.3988723754883, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "24ef27d4.5acd08", - "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": 2777.14697265625, - "y": 1020.7885293960571, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "bc709271.507d8", - "type": "switchNode", - "name": "switch tmp.ep-available", - "xml": "<switch test='`$tmp.ep-available`'>\n", - "comments": "", - "outputs": 1, - "x": 654.3128662109375, - "y": 1153.2327852249146, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "18bdb942.c7be37", - "343945c7.6ea6fa" - ] - ] - }, - { - "id": "343945c7.6ea6fa", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", - "comments": "", - "outputs": 1, - "x": 836.9797019958496, - "y": 1177.5661935806274, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "eb3e9e9.a810a6" - ] - ] - }, - { - "id": "18bdb942.c7be37", - "type": "outcomeTrue", - "name": "false", - "xml": "<outcome value='false'>\n", - "comments": "", - "outputs": 1, - "x": 839.8684730529785, - "y": 1116.566291809082, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "33d109a0.0b3696" - ] - ] - }, - { - "id": "33d109a0.0b3696", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 976.8685493469238, - "y": 1115.4551057815552, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "eb3e9e9.a810a6", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1007.0907897949219, - "y": 1175.5661516189575, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "d5bc9567.22f988" - ] - ] - }, - { - "id": "eba7f62b.bd7668", - "type": "comment", - "name": "GET connection-attachment-ar to store AR data from mdsal", - "info": "", - "comments": "", - "x": 2192.472946166992, - "y": 355.5039691925049, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "2d6b93ab.08655c", - "type": "comment", - "name": "Set source end point", - "info": "", - "comments": "", - "x": 630.9728393554688, - "y": 585.2540645599365, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "8522b683.befcf8", - "type": "set", - "name": "set tmp.ar.parent-service-instance-id", - "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n", - "comments": "", - "x": 683.9689178466797, - "y": 710.0002088546753, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "773fbfc3.82918", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1061.9689140319824, - "y": 759.000207901001, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "e1e0569.afbf9a8" - ] - ] - }, - { - "id": "be2f70a0.4132d", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1053.8207168579102, - "y": 794.0662927627563, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "82d58d98.da526" - ] - ] - }, - { - "id": "82d58d98.da526", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n", - "comments": "", - "x": 1228.9694023132324, - "y": 790.3336429595947, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "e1e0569.afbf9a8", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1212.9689140319824, - "y": 757.000207901001, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "62f18656.44cfe8", - "type": "set", - "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false", - "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />", - "comments": "", - "x": 770.9689102172852, - "y": 884.0001821517944, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "ba6cedb4.1637d", - "type": "comment", - "name": "If other EP exists delete from domain controller", - "info": "", - "comments": "", - "x": 704.9688110351562, - "y": 1077.999997138977, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "84d93cd2.2a2bf", - "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.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n", - "comments": "", - "x": 2702.969627380371, - "y": 1368.0005893707275, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "3c2c4321.6e016c", - "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": 2266.469566345215, - "y": 1427.0005893707275, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "b9c78202.065c4", - "b1e4c467.b20658", - "7cb01101.04dc1" - ] - ] - }, - { - "id": "b9c78202.065c4", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2505.469566345215, - "y": 1380.0005893707275, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "84d93cd2.2a2bf" - ] - ] - }, - { - "id": "b1e4c467.b20658", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 2508.96053314209, - "y": 1427.5746250152588, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "912e3892.c38738" - ] - ] - }, - { - "id": "7cb01101.04dc1", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 2504.29354095459, - "y": 1468.90793800354, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "ba048e79.e103b" - ] - ] - }, - { - "id": "912e3892.c38738", - "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n", - "comments": "", - "x": 2685.5319442749023, - "y": 1415.8603610992432, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "ba048e79.e103b", - "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 occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n", - "comments": "", - "x": 2692.0660972595215, - "y": 1464.3471307754517, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "ac6b10fc.018ca", - "type": "get-resource", - "name": "get-resource pnf", - "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n\n", - "comments": "", - "outputs": 1, - "x": 2215.9697341918945, - "y": 1319.000418663025, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "7d25011f.79dd3", - "abbaec43.33e1c", - "9bfad8e.2252b28" - ] - ] - }, - { - "id": "7d25011f.79dd3", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2403.9697494506836, - "y": 1265.0004110336304, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "addfa25b.c3718" - ] - ] - }, - { - "id": "abbaec43.33e1c", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 2409.460796356201, - "y": 1307.5743074417114, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "6b2117db.4230f8" - ] - ] - }, - { - "id": "9bfad8e.2252b28", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 2395.793804168701, - "y": 1345.9076433181763, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "c5a2b6cb.8de6a8" - ] - ] - }, - { - "id": "6b2117db.4230f8", - "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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n", - "comments": "", - "x": 2563.032096862793, - "y": 1297.8601140975952, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "c5a2b6cb.8de6a8", - "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 occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n", - "comments": "", - "x": 2559.566276550293, - "y": 1337.3469333648682, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "addfa25b.c3718", - "type": "set", - "name": "set tmp.thirdparty-sdnc-id", - "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n", - "comments": "", - "x": 2603.9697647094727, - "y": 1260.0004110336304, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "44ef1c3d.800ab4", - "type": "comment", - "name": "get domain controller information", - "info": "", - "comments": "", - "x": 2259.4736404418945, - "y": 1288.0043859481812, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "7164fdca.4a0d84", - "type": "execute", - "name": "execute RestApiCallNode Delete ethernet Service", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", - "comments": "", - "outputs": 1, - "x": 2308.969596862793, - "y": 1681.0005912780762, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "2b22380a.f1bc58", - "2dc816f1.66c67a" - ] - ] - }, - { - "id": "2b22380a.f1bc58", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2595.9695358276367, - "y": 1704.0005912780762, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "2a372b2.85f3bd4" - ] - ] - }, - { - "id": "2a372b2.85f3bd4", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 2765.9694747924805, - "y": 1707.0005912780762, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "9ab48a6d.252ca8", - "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=\"Error executing Create vpn rest api\" />\n", - "comments": "", - "x": 2765.969596862793, - "y": 1663.0005912780762, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "2dc816f1.66c67a", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 2598.9694747924805, - "y": 1663.0005912780762, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "9ab48a6d.252ca8" - ] - ] - }, - { - "id": "b8fd2a49.d0b368", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 933.7307472229004, - "y": 1677.9527901411057, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "4d3bfe83.8ac38" - ] - ] - }, - { - "id": "4d3bfe83.8ac38", - "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=\"AAI failed\" />\n", - "comments": "", - "x": 1100.2546272277832, - "y": 1689.5718611478806, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "59f13b89.e4e7d4", - "type": "failure", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 940.8260345458984, - "y": 1710.7147578001022, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "4d3bfe83.8ac38" - ] - ] - }, - { - "id": "65a9cdb6.115924", - "type": "comment", - "name": "Save Resource to AAI", - "info": "", - "comments": "", - "x": 652.7784614562988, - "y": 1660.3021783828735, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "a3a48876.1d8a18", - "type": "set", - "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", - "comments": "", - "x": 667.5461578369141, - "y": 1581.8276596069336, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "7ccf367e.a869f8", - "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": 635.9592399597168, - "y": 1742.4434118270874, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "d3793c0a.e76dd", - "type": "execute", - "name": "execute RestApiCallNode - PUT AR by id", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n", - "comments": "", - "outputs": 1, - "x": 717.2782592773438, - "y": 1489.468433380127, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "c94958cd.0f7e08", - "5e263814.55f358", - "1ecab8f8.94f047" - ] - ] - }, - { - "id": "c94958cd.0f7e08", - "type": "not-found", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 985.9196357727051, - "y": 1540.799845121801, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "916b12ec.48653" - ] - ] - }, - { - "id": "5e263814.55f358", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 976.9196853637695, - "y": 1509.2998708710074, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "916b12ec.48653" - ] - ] - }, - { - "id": "1ecab8f8.94f047", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 980.6697235107422, - "y": 1479.6569757461548, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "9a61150.9613ce8" - ] - ] - }, - { - "id": "916b12ec.48653", - "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n", - "comments": "", - "x": 1146.6697235107422, - "y": 1510.0498947128654, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "9a61150.9613ce8", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1122.3256912231445, - "y": 1475.849144935608, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "683cb14.3ce605", - "type": "set", - "name": "set ar-data", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />", - "comments": "", - "x": 617.4918785095215, - "y": 1339.8493564128876, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "802f8ef7.b6731", - "type": "execute", - "name": "execute getTime", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n", - "comments": "", - "outputs": 1, - "x": 634.7777214050293, - "y": 1412.4689540863037, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "5c1eba3c.5a3914", - "type": "set", - "name": "set allotted-resource-oper-status", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n", - "comments": "", - "x": 689.764778137207, - "y": 1450.4200916290283, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "c2e56bca.b33d78", - "type": "set", - "name": "set model-data", - "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />", - "comments": "", - "x": 631.3334197998047, - "y": 1379.024006843567, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "ae41f871.b43fa8", - "type": "comment", - "name": "Prepare data for allotted-resource addition to MDSAL", - "info": "This will add to allotted-resource which is present inside service.", - "comments": "", - "x": 744.6668815612793, - "y": 1300.0239589214325, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "e752535c.aeb57", - "type": "comment", - "name": "Add to allotted-resources in mdsal", - "info": "", - "comments": "", - "x": 686.2467079162598, - "y": 1267.4372606277466, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "2c211a2d.e90676", - "type": "update", - "name": "update AAI allotted-resource", - "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"PendingDelete\" />\n", - "comments": "", - "outputs": 1, - "x": 679.2227401733398, - "y": 1697.7543210983276, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "b8fd2a49.d0b368", - "59f13b89.e4e7d4" - ] - ] - }, - { - "id": "d5bc9567.22f988", - "type": "get-resource", - "name": "get-resource connectivity", - "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.service-data.networks.network[0].network-id AND \n\t\t depth = '1'\"\n pfx='tmp.connectivity' local-only='false' >\n", - "comments": "", - "outputs": 1, - "x": 1213.0005645751953, - "y": 1175.5044269561768, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "7024d4cd.1a62bc", - "cf432033.112d9" - ] - ] - }, - { - "id": "41a48915.ce4758", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", - "outputs": 1, - "x": 1986.1178741455078, - "y": 1372.3445596694946, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "ae412232.e0411", - "3c342d96.9776c2", - "ac6b10fc.018ca", - "3c2c4321.6e016c", - "7164fdca.4a0d84", - "dda1ddc2.84784", - "f1f4e6ef.143a68" - ] - ] - }, - { - "id": "d567023b.2d9f", - "type": "outcome", - "name": "vpn-binding", - "xml": "<outcome value='vpn-binding'>\n", - "comments": "", - "outputs": 1, - "x": 1812.286392211914, - "y": 1374.8260831832886, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "41a48915.ce4758" - ] - ] - }, - { - "id": "de835816.465b48", - "type": "for", - "name": "for each relationship", - "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n", - "comments": "", - "outputs": 1, - "x": 1434.0003356933594, - "y": 1373.0043096542358, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "a2ccacd2.b0dbc" - ] - ] - }, - { - "id": "a2ccacd2.b0dbc", - "type": "switchNode", - "name": "switch related-to", - "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n", - "comments": "", - "outputs": 1, - "x": 1646.0003471374512, - "y": 1374.0043096542358, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "d567023b.2d9f" - ] - ] - }, - { - "id": "3c342d96.9776c2", - "type": "set", - "name": "set tmp.vpn-name", - "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n", - "comments": "", - "x": 2219.0005416870117, - "y": 1086.004626274109, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "ae412232.e0411", - "type": "execute", - "name": "split vpnName to find nodeId", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.vpn-name`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n", - "comments": "", - "outputs": 1, - "x": 2255.0004959106445, - "y": 1187.0039930343628, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "ae670977.becbb8", - "60767ce2.3ab0a4" - ] - ] - }, - { - "id": "60767ce2.3ab0a4", - "type": "failure", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2456.000686645508, - "y": 1164.0039854049683, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "bf10a60c.fdea98" - ] - ] - }, - { - "id": "bf10a60c.fdea98", - "type": "set", - "name": "set tmp.node-id", - "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n<parameter name='tmp.actual.vpn-name' value='`$route1[1]`' />\n", - "comments": "", - "x": 2609.000846862793, - "y": 1162.0039863586426, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "a5afcc72.d877b", - "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": 2593.001012802124, - "y": 1211.0039882659912, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "ae670977.becbb8", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 2453.00066947937, - "y": 1212.0039901733398, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "a5afcc72.d877b" - ] - ] - }, - { - "id": "7024d4cd.1a62bc", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 1394.0001640319824, - "y": 1210.0000715255737, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "ea43f44.e748208" - ] - ] - }, - { - "id": "cf432033.112d9", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", - "comments": "", - "outputs": 1, - "x": 1396.851894378662, - "y": 1137.0663166046143, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "801260ca.47a9" - ] - ] - }, - { - "id": "801260ca.47a9", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connectivity resource not found\" />\n \n", - "comments": "", - "x": 1539.0006637573242, - "y": 1137.3337268829346, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "ea43f44.e748208", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1396.0001754760742, - "y": 1288.0002374649048, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "de835816.465b48" - ] - ] - }, - { - "id": "693977cc.87d158", - "type": "execute", - "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n", - "comments": "", - "outputs": 1, - "x": 832.3339538574219, - "y": 536.4999494552612, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "e963cad3.e8d6c8", - "489ff5d2.164b7c" - ] - ] - }, - { - "id": "c0b8662.2083398", - "type": "execute", - "name": "get parent-service-data tmp.ar-url-psd", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n", - "comments": "", - "outputs": 1, - "x": 686.0001983642578, - "y": 745.0002107620239, - "z": "ed10e8c7.d58f28", - "wires": [ - [] - ] - }, - { - "id": "fada7ab3.d1d4e8", - "type": "execute", - "name": "execute RestApiCallNode - get-resource parent service data", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n", - "comments": "", - "outputs": 1, - "x": 753.0001602172852, - "y": 780.0002946853638, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "773fbfc3.82918", - "be2f70a0.4132d" - ] - ] - }, - { - "id": "cfef8c40.7d401", - "type": "switchNode", - "name": "switch mdsal-psd.service-data.provided-allotted-resources_length", - "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n", - "comments": "", - "outputs": 1, - "x": 769.1842803955078, - "y": 954.7181224822998, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "cf2de8b0.5bcd28", - "103b0ff7.ad1fb", - "4057b675.85b588" - ] - ] - }, - { - "id": "dda1ddc2.84784", - "type": "update", - "name": "delete AAI vpn-binding", - "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpn-name' >", - "comments": "", - "outputs": 1, - "x": 2239.999954223633, - "y": 1784.0001649856567, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "c726da18.1fa408", - "b99e2363.4f50b" - ] - ] - }, - { - "id": "c726da18.1fa408", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 2494.5079612731934, - "y": 1764.1986340284348, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "53701c4b.a688d4" - ] - ] - }, - { - "id": "b99e2363.4f50b", - "type": "failure", - "name": "not-found", - "xml": "<outcome value='not-found'>\n", - "comments": "", - "outputs": 1, - "x": 2501.6032485961914, - "y": 1796.9606016874313, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "53701c4b.a688d4" - ] - ] - }, - { - "id": "53701c4b.a688d4", - "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=\"AAI failed\" />\n", - "comments": "", - "x": 2661.031841278076, - "y": 1775.8177050352097, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "f1f4e6ef.143a68", - "type": "execute", - "name": "execute RestApiCallNode Get token", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>", - "comments": "", - "outputs": 1, - "x": 2279.7541580200195, - "y": 1564.254002571106, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "f8436b41.519d68", - "9d9f79f.4a7c888" - ] - ] - }, - { - "id": "f8436b41.519d68", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 2514.7541580200195, - "y": 1542.254002571106, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "1076a472.b53e4c" - ] - ] - }, - { - "id": "9d9f79f.4a7c888", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 2507.0041580200195, - "y": 1595.8968858718872, - "z": "ed10e8c7.d58f28", - "wires": [ - [ - "6534e8a7.2122d8" - ] - ] - }, - { - "id": "6534e8a7.2122d8", - "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=\"Error executing get token rest api\" />\n", - "comments": "", - "x": 2659.7541580200195, - "y": 1595.6469469070435, - "z": "ed10e8c7.d58f28", - "wires": [] - }, - { - "id": "1076a472.b53e4c", - "type": "set", - "name": "set token-id", - "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n", - "comments": "", - "x": 2668.7541580200195, - "y": 1543.254002571106, - "z": "ed10e8c7.d58f28", - "wires": [] - } -] +[
+ {
+ "id": "ff549c79.63961",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 94.03125,
+ "y": 49.00012397766113,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a05176da.ae3e48"
+ ]
+ ]
+ },
+ {
+ "id": "a05176da.ae3e48",
+ "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": 275.03125381469727,
+ "y": 109.00014114379883,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "fe524cbe.32e62"
+ ]
+ ]
+ },
+ {
+ "id": "fe524cbe.32e62",
+ "type": "method",
+ "name": "sotn-attachment-topology-operation-deactivate",
+ "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 263.0313720703125,
+ "y": 197.00012397766113,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "437c9c25.6eb2d4"
+ ]
+ ]
+ },
+ {
+ "id": "437c9c25.6eb2d4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 279.0313720703125,
+ "y": 752.0003685951233,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a802b53.c930648",
+ "1068510.ffabdaf",
+ "90b4d4b2.478c88",
+ "96a33d9.74471c",
+ "f6798703.c71c48",
+ "74b419be.6c1dc8",
+ "cea5b658.f38fb8",
+ "8fc6baf4.1c66d8",
+ "bd5b936a.6f494",
+ "1ecf912a.ad8d5f",
+ "754f8876.c41b88",
+ "1fa63937.8805f7",
+ "8e1d23f5.d1706",
+ "d507ebff.314fd8",
+ "9f388371.4f18e",
+ "31cf3c93.494fc4",
+ "61d4f147.44641",
+ "7bc058aa.42a598",
+ "7c847f3c.b2ac4",
+ "f0fb1a1c.cc2828"
+ ]
+ ]
+ },
+ {
+ "id": "a802b53.c930648",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id,etc",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 676.0248107910156,
+ "y": 150.99361085891724,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "88124680.e6b8a8",
+ "type": "comment",
+ "name": "set tmp ar-id to fetch resource from MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 704.9851226806641,
+ "y": 115.02540683746338,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "1068510.ffabdaf",
+ "type": "set",
+ "name": "set tmp.ar.self-link",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "comments": "",
+ "x": 630.0247497558594,
+ "y": 243.99361610412598,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "f6798703.c71c48",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 636.2866401672363,
+ "y": 331.66034507751465,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90b4d4b2.478c88",
+ "type": "execute",
+ "name": "generate allotted-resource tmp.ar-url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 686.2867431640625,
+ "y": 418.66034603118896,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "182d3b03.4e2c15",
+ "type": "comment",
+ "name": "GET connection-attachment-allotted-resource from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 729.8397369384766,
+ "y": 489.5388927459717,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "bbe52b99.83dd68",
+ "type": "comment",
+ "name": "Used for setting output to API Handler",
+ "info": "",
+ "comments": "",
+ "x": 684.0247802734375,
+ "y": 210.99362564086914,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "dce4912.220bb7",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 702.0247459411621,
+ "y": 296.88250637054443,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "66940a34.fde394",
+ "type": "comment",
+ "name": "Used to Get AR by id to MDSAL, same as self-link",
+ "info": "",
+ "comments": "",
+ "x": 728.0247650146484,
+ "y": 383.8824653625488,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "55776be8.abf844",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1170.6980781555176,
+ "y": 537.0001525878906,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "5a06af0c.5db4c"
+ ]
+ ]
+ },
+ {
+ "id": "5a06af0c.5db4c",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1339.6980819702148,
+ "y": 535.5000534057617,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "faae066.03a7ef8"
+ ]
+ ]
+ },
+ {
+ "id": "faae066.03a7ef8",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1512.5553512573242,
+ "y": 473.119215965271,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "74bd4c84.2a01f4",
+ "6215df1.a21872"
+ ]
+ ]
+ },
+ {
+ "id": "74bd4c84.2a01f4",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1749.8885955810547,
+ "y": 451.11916637420654,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "932b115b.ef744"
+ ]
+ ]
+ },
+ {
+ "id": "932b115b.ef744",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1934.4124851226807,
+ "y": 448.0240001678467,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "d5b08a67.3e5c48",
+ "5ce1e592.04689c",
+ "fa1f1660.477578"
+ ]
+ ]
+ },
+ {
+ "id": "1d1825f2.925d0a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1858.5503273010254,
+ "y": 573.0662412643433,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "2f2bf02.ca60d1",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1162.5498809814453,
+ "y": 572.066237449646,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "82e6da2.ad6fd28"
+ ]
+ ]
+ },
+ {
+ "id": "82e6da2.ad6fd28",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1342.5498313903809,
+ "y": 572.7327880859375,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "1d1825f2.925d0a"
+ ]
+ ]
+ },
+ {
+ "id": "6215df1.a21872",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1738.2165489196777,
+ "y": 488.39952659606934,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "1d1825f2.925d0a"
+ ]
+ ]
+ },
+ {
+ "id": "d5b08a67.3e5c48",
+ "type": "set",
+ "name": "set connection-attachment-ar from get",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
+ "comments": "",
+ "x": 2180.476043701172,
+ "y": 408.00022983551025,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "fa1f1660.477578",
+ "type": "set",
+ "name": "set oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
+ "comments": "",
+ "x": 2113.4760398864746,
+ "y": 498.42878437042236,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "5ce1e592.04689c",
+ "type": "switchNode",
+ "name": "switch order-status",
+ "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2124.475875854492,
+ "y": 452.0002336502075,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "46412cb7.a5f6f4",
+ "b5fc3d64.54bed"
+ ]
+ ]
+ },
+ {
+ "id": "46412cb7.a5f6f4",
+ "type": "outcome",
+ "name": "outcome Active",
+ "xml": "<outcome value='Active'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2331.075824737549,
+ "y": 442.0002336502075,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "11963437.b728dc"
+ ]
+ ]
+ },
+ {
+ "id": "b5fc3d64.54bed",
+ "type": "outcome",
+ "name": "outcome Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2330.7903442382812,
+ "y": 484.42882442474365,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "1c1d147e.4224ac"
+ ]
+ ]
+ },
+ {
+ "id": "11963437.b728dc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2483.5463790893555,
+ "y": 440.3758840560913,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1c1d147e.4224ac",
+ "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\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
+ "comments": "",
+ "x": 2503.6982345581055,
+ "y": 481.00023555755615,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "6ad0e2bd.71bc3c",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 891.3343658447266,
+ "y": 633.4937148094177,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "74b419be.6c1dc8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 588.3405303955078,
+ "y": 634.5000629425049,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6ad0e2bd.71bc3c"
+ ]
+ ]
+ },
+ {
+ "id": "8a5e890a.680be8",
+ "type": "comment",
+ "name": "GET parent-service-data from mdsal to check existence of other End point",
+ "info": "",
+ "comments": "",
+ "x": 770.0316925048828,
+ "y": 695.5318222045898,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "2205c5d5.df45ea",
+ "type": "for",
+ "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
+ "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1660.2162475585938,
+ "y": 899.0042066574097,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "325e72dd.42ae0e"
+ ]
+ ]
+ },
+ {
+ "id": "f3fcb7.3cb38348",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1066.3582191467285,
+ "y": 1031.5756673812866,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "ed4934e0.63e078"
+ ]
+ ]
+ },
+ {
+ "id": "640c50fa.9b815",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1257.4856204986572,
+ "y": 896.7016951814294,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "2205c5d5.df45ea"
+ ]
+ ]
+ },
+ {
+ "id": "325e72dd.42ae0e",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2095.327648162842,
+ "y": 899.0041036605835,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "27ec9aa5.cff036",
+ "495a6869.e7e8d8"
+ ]
+ ]
+ },
+ {
+ "id": "27ec9aa5.cff036",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2304.137996673584,
+ "y": 879.468560218811,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "ac118201.9b0e6"
+ ]
+ ]
+ },
+ {
+ "id": "7260dcf8.1fb0a4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2452.898750305176,
+ "y": 915.3257417678833,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "5e185008.36b4b"
+ ]
+ ]
+ },
+ {
+ "id": "5e185008.36b4b",
+ "type": "set",
+ "name": "set tmp.pidx and ptx.consumed-ar",
+ "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 2687.756187438965,
+ "y": 913.8972730636597,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "b3d0356b.e2dd48",
+ "type": "comment",
+ "name": "Check existence of other AR in parent service data",
+ "info": "Check if other allotted resource is available.",
+ "comments": "",
+ "x": 693.9940948486328,
+ "y": 865.8930444717407,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "31b6e940.d005b6",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1077.0105667114258,
+ "y": 966.6773881912231,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "864fe6a.0f93518"
+ ]
+ ]
+ },
+ {
+ "id": "ed4934e0.63e078",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1239.0105628967285,
+ "y": 1030.677409172058,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "998ab047.1d3cb",
+ "type": "other",
+ "name": "outcome 2",
+ "xml": "<outcome value='2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1083.0106410980225,
+ "y": 897.6773955598474,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "640c50fa.9b815"
+ ]
+ ]
+ },
+ {
+ "id": "ac118201.9b0e6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2433.122055053711,
+ "y": 874.677300453186,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "495a6869.e7e8d8",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2304.1220474243164,
+ "y": 913.6773042678833,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "7260dcf8.1fb0a4"
+ ]
+ ]
+ },
+ {
+ "id": "e0954e7f.0fc95",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.networks_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1489.3442459106445,
+ "y": 969.8998851776123,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6d21348c.4e000c",
+ "8b08dda8.1325d"
+ ]
+ ]
+ },
+ {
+ "id": "8b08dda8.1325d",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1719.3442687988281,
+ "y": 945.7887172698975,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "2e4674ae.83d44c"
+ ]
+ ]
+ },
+ {
+ "id": "6d21348c.4e000c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1713.3443908691406,
+ "y": 1005.7887172698975,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "33f517e8.5f1128"
+ ]
+ ]
+ },
+ {
+ "id": "33f517e8.5f1128",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n",
+ "comments": "",
+ "x": 1885.9967765808105,
+ "y": 1005.8905239105225,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "6f8f7dac.c1bd54",
+ "type": "set",
+ "name": "set tmp.network.",
+ "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n",
+ "comments": "",
+ "x": 2087.789192199707,
+ "y": 935.7888765335083,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "864fe6a.0f93518",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1249.454921722412,
+ "y": 967.7886362075806,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "e0954e7f.0fc95"
+ ]
+ ]
+ },
+ {
+ "id": "2e4674ae.83d44c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1887.121940612793,
+ "y": 964.7885513305664,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6f8f7dac.c1bd54",
+ "ac5226f5.253788"
+ ]
+ ]
+ },
+ {
+ "id": "ac5226f5.253788",
+ "type": "for",
+ "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
+ "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2263.12255859375,
+ "y": 1007.7885589599609,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "314fe564.900c2a"
+ ]
+ ]
+ },
+ {
+ "id": "314fe564.900c2a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2586.6782188415527,
+ "y": 1008.7886362075806,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6d64b0f1.beb81",
+ "e3bdd7fd.7d8fe8"
+ ]
+ ]
+ },
+ {
+ "id": "6d64b0f1.beb81",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2765.1883239746094,
+ "y": 992.799054145813,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "c510bd0d.90a2"
+ ]
+ ]
+ },
+ {
+ "id": "c510bd0d.90a2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2952.1883239746094,
+ "y": 993.799054145813,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a92bc658.3e7468"
+ ]
+ ]
+ },
+ {
+ "id": "a92bc658.3e7468",
+ "type": "set",
+ "name": "set tmp.found-in-network tmp.ep-available",
+ "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 3203.188331604004,
+ "y": 993.3989963531494,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "e3bdd7fd.7d8fe8",
+ "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": 2748.17822265625,
+ "y": 1037.7886533737183,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "96a33d9.74471c",
+ "type": "switchNode",
+ "name": "switch tmp.ep-available",
+ "xml": "<switch test='`$tmp.ep-available`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 625.3441162109375,
+ "y": 1170.2329092025757,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "61b02086.d03f9",
+ "6c4d286f.2a00a8"
+ ]
+ ]
+ },
+ {
+ "id": "6c4d286f.2a00a8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 808.0109519958496,
+ "y": 1194.5663175582886,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "929ee9e7.521368"
+ ]
+ ]
+ },
+ {
+ "id": "61b02086.d03f9",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 810.8997230529785,
+ "y": 1133.5664157867432,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "856596b.3c40368"
+ ]
+ ]
+ },
+ {
+ "id": "856596b.3c40368",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 947.8997993469238,
+ "y": 1132.4552297592163,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "929ee9e7.521368",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 978.1220397949219,
+ "y": 1192.5662755966187,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "be61dd8a.9e196"
+ ]
+ ]
+ },
+ {
+ "id": "eb0bfad4.778f58",
+ "type": "comment",
+ "name": "GET connection-attachment-ar to store AR data from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 2163.504196166992,
+ "y": 372.504093170166,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "114f8c87.a5aa33",
+ "type": "comment",
+ "name": "Set source end point",
+ "info": "",
+ "comments": "",
+ "x": 602.0040893554688,
+ "y": 602.2541885375977,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "cea5b658.f38fb8",
+ "type": "set",
+ "name": "set tmp.ar.parent-service-instance-id",
+ "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
+ "comments": "",
+ "x": 655.0001678466797,
+ "y": 727.0003328323364,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "5d8dc0c4.ff757",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1033.0001640319824,
+ "y": 776.0003318786621,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6a1bf843.4d25b8"
+ ]
+ ]
+ },
+ {
+ "id": "83b7907.b55937",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1024.8519668579102,
+ "y": 811.0664167404175,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "4f4eb4c7.cc9fdc"
+ ]
+ ]
+ },
+ {
+ "id": "4f4eb4c7.cc9fdc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1200.0006523132324,
+ "y": 807.3337669372559,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "6a1bf843.4d25b8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1184.0001640319824,
+ "y": 774.0003318786621,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8fc6baf4.1c66d8",
+ "type": "set",
+ "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
+ "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
+ "comments": "",
+ "x": 742.0001602172852,
+ "y": 901.0003061294556,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "ce5d7876.710a68",
+ "type": "comment",
+ "name": "If other EP exists delete from domain controller",
+ "info": "",
+ "comments": "",
+ "x": 676.0000610351562,
+ "y": 1095.0001211166382,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "fd46c38b.b0e06",
+ "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.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
+ "comments": "",
+ "x": 2674.000877380371,
+ "y": 1385.0007133483887,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "ff817e6a.4c262",
+ "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": 2237.500816345215,
+ "y": 1444.0007133483887,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "f3622c21.50f46",
+ "e431ae5e.58828",
+ "a151b89e.28add8"
+ ]
+ ]
+ },
+ {
+ "id": "f3622c21.50f46",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2476.500816345215,
+ "y": 1397.0007133483887,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "fd46c38b.b0e06"
+ ]
+ ]
+ },
+ {
+ "id": "e431ae5e.58828",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2479.99178314209,
+ "y": 1444.57474899292,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "236bc0bf.99bb6"
+ ]
+ ]
+ },
+ {
+ "id": "a151b89e.28add8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2475.32479095459,
+ "y": 1485.9080619812012,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6adb79b2.e33818"
+ ]
+ ]
+ },
+ {
+ "id": "236bc0bf.99bb6",
+ "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 2656.5631942749023,
+ "y": 1432.8604850769043,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "6adb79b2.e33818",
+ "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 occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 2663.0973472595215,
+ "y": 1481.3472547531128,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "993c0a9c.fa2968",
+ "type": "get-resource",
+ "name": "get-resource pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2187.0009841918945,
+ "y": 1336.000542640686,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6cbbdc6c.177994",
+ "d6b323fb.dd5df",
+ "691cb9fb.eb1b88"
+ ]
+ ]
+ },
+ {
+ "id": "6cbbdc6c.177994",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2375.0009994506836,
+ "y": 1282.0005350112915,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "f3a2b0cc.a6cd3"
+ ]
+ ]
+ },
+ {
+ "id": "d6b323fb.dd5df",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2380.492046356201,
+ "y": 1324.5744314193726,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "44a433a2.c4cb1c"
+ ]
+ ]
+ },
+ {
+ "id": "691cb9fb.eb1b88",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2366.825054168701,
+ "y": 1362.9077672958374,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a204db7f.ac39f8"
+ ]
+ ]
+ },
+ {
+ "id": "44a433a2.c4cb1c",
+ "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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2534.063346862793,
+ "y": 1314.8602380752563,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "a204db7f.ac39f8",
+ "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 occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2530.597526550293,
+ "y": 1354.3470573425293,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "f3a2b0cc.a6cd3",
+ "type": "set",
+ "name": "set tmp.thirdparty-sdnc-id",
+ "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 2575.0010147094727,
+ "y": 1277.0005350112915,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "d61e54ea.0473f8",
+ "type": "comment",
+ "name": "get domain controller information",
+ "info": "",
+ "comments": "",
+ "x": 2230.5048904418945,
+ "y": 1305.0045099258423,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "10d17cd1.f30ab3",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete ethernet Service",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2761.001152038574,
+ "y": 1730.000747680664,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "94d88f9c.771f9",
+ "f2badd12.3e9c1"
+ ]
+ ]
+ },
+ {
+ "id": "94d88f9c.771f9",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3107.000801086426,
+ "y": 1714.0007457733154,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "1c7ac915.f6a6b7"
+ ]
+ ]
+ },
+ {
+ "id": "1c7ac915.f6a6b7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3277.0007400512695,
+ "y": 1717.0007457733154,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "73cc424c.c105bc",
+ "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=\"Error executing Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 3277.000862121582,
+ "y": 1673.0007457733154,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "f2badd12.3e9c1",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3110.0007400512695,
+ "y": 1673.0007457733154,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "73cc424c.c105bc"
+ ]
+ ]
+ },
+ {
+ "id": "4d3c7e74.2037b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 904.7619972229004,
+ "y": 1694.9529141187668,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "9a2c9c7c.b67bf"
+ ]
+ ]
+ },
+ {
+ "id": "9a2c9c7c.b67bf",
+ "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=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 1071.2858772277832,
+ "y": 1706.5719851255417,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "76fdd751.58a9d8",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 911.8572845458984,
+ "y": 1727.7148817777634,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "9a2c9c7c.b67bf"
+ ]
+ ]
+ },
+ {
+ "id": "4fec1ce6.1b1a34",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 623.8097114562988,
+ "y": 1677.3023023605347,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "d507ebff.314fd8",
+ "type": "set",
+ "name": "set output to api handler",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "comments": "",
+ "x": 638.5774078369141,
+ "y": 1598.8277835845947,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "9f388371.4f18e",
+ "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": 606.9904899597168,
+ "y": 1759.4435358047485,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "8e1d23f5.d1706",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT AR by id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 688.3095092773438,
+ "y": 1506.468557357788,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "e11c7417.4fa658",
+ "64cfcda1.4c2f84",
+ "c55d4506.901118"
+ ]
+ ]
+ },
+ {
+ "id": "e11c7417.4fa658",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 956.9508857727051,
+ "y": 1557.799969099462,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "14bdf473.21930c"
+ ]
+ ]
+ },
+ {
+ "id": "64cfcda1.4c2f84",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 947.9509353637695,
+ "y": 1526.2999948486686,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "14bdf473.21930c"
+ ]
+ ]
+ },
+ {
+ "id": "c55d4506.901118",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 951.7009735107422,
+ "y": 1496.657099723816,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "82c892ac.f910d"
+ ]
+ ]
+ },
+ {
+ "id": "14bdf473.21930c",
+ "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=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1117.7009735107422,
+ "y": 1527.0500186905265,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "82c892ac.f910d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1093.3569412231445,
+ "y": 1492.849268913269,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd5b936a.6f494",
+ "type": "set",
+ "name": "set ar-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
+ "comments": "",
+ "x": 588.5231285095215,
+ "y": 1356.8494803905487,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "754f8876.c41b88",
+ "type": "execute",
+ "name": "execute getTime",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 605.8089714050293,
+ "y": 1429.4690780639648,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1fa63937.8805f7",
+ "type": "set",
+ "name": "set allotted-resource-oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
+ "comments": "",
+ "x": 660.796028137207,
+ "y": 1467.4202156066895,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "1ecf912a.ad8d5f",
+ "type": "set",
+ "name": "set model-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
+ "comments": "",
+ "x": 602.3646697998047,
+ "y": 1396.024130821228,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "3d5eb994.20a306",
+ "type": "comment",
+ "name": "Prepare data for allotted-resource addition to MDSAL",
+ "info": "This will add to allotted-resource which is present inside service.",
+ "comments": "",
+ "x": 715.6981315612793,
+ "y": 1317.0240828990936,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "35db93ec.682e9c",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 657.2779579162598,
+ "y": 1284.4373846054077,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "31cf3c93.494fc4",
+ "type": "update",
+ "name": "update AAI allotted-resource",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"PendingDelete\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 650.2539901733398,
+ "y": 1714.7544450759888,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "4d3c7e74.2037b",
+ "76fdd751.58a9d8"
+ ]
+ ]
+ },
+ {
+ "id": "be61dd8a.9e196",
+ "type": "get-resource",
+ "name": "get-resource connectivity",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.service-data.networks.network[0].network-id AND \n\t\t depth = '1'\"\n pfx='tmp.connectivity' local-only='false' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1184.0318145751953,
+ "y": 1192.504550933838,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "ec3a781a.b17a88",
+ "13bcbf26.d71d71"
+ ]
+ ]
+ },
+ {
+ "id": "3730ddb4.d493b2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1957.1491241455078,
+ "y": 1389.3446836471558,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "76aabffd.38e",
+ "ddc37a19.aa1838",
+ "993c0a9c.fa2968",
+ "ff817e6a.4c262",
+ "d2c267be.388018",
+ "4ec4550f.fd160c",
+ "767b76a3.973bd8"
+ ]
+ ]
+ },
+ {
+ "id": "2d7c3367.b4917c",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1783.317642211914,
+ "y": 1391.8262071609497,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "3730ddb4.d493b2"
+ ]
+ ]
+ },
+ {
+ "id": "95f1a2bf.0b285",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1405.0315856933594,
+ "y": 1390.004433631897,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "68b3b3fe.7b312c"
+ ]
+ ]
+ },
+ {
+ "id": "68b3b3fe.7b312c",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1617.0315971374512,
+ "y": 1391.004433631897,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "2d7c3367.b4917c"
+ ]
+ ]
+ },
+ {
+ "id": "ddc37a19.aa1838",
+ "type": "set",
+ "name": "set tmp.vpn-name",
+ "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",
+ "comments": "",
+ "x": 2190.0317916870117,
+ "y": 1103.00475025177,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "76aabffd.38e",
+ "type": "execute",
+ "name": "split vpnName to find nodeId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.vpn-name`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2226.0317459106445,
+ "y": 1204.004117012024,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "78a77003.35ea4",
+ "637ec688.c44a88"
+ ]
+ ]
+ },
+ {
+ "id": "637ec688.c44a88",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2427.031936645508,
+ "y": 1181.0041093826294,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "b87e837.b66ce8"
+ ]
+ ]
+ },
+ {
+ "id": "b87e837.b66ce8",
+ "type": "set",
+ "name": "set tmp.node-id",
+ "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n<parameter name='tmp.actual.vpn-name' value='`$route1[1]`' />\n",
+ "comments": "",
+ "x": 2580.032096862793,
+ "y": 1179.0041103363037,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "857b862a.e6a0b8",
+ "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": 2564.032262802124,
+ "y": 1228.0041122436523,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "78a77003.35ea4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2424.03191947937,
+ "y": 1229.004114151001,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "857b862a.e6a0b8"
+ ]
+ ]
+ },
+ {
+ "id": "ec3a781a.b17a88",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1365.0314140319824,
+ "y": 1227.0001955032349,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "8cc479bc.b82368"
+ ]
+ ]
+ },
+ {
+ "id": "13bcbf26.d71d71",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1367.883144378662,
+ "y": 1154.0664405822754,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "c5f74144.ebbac"
+ ]
+ ]
+ },
+ {
+ "id": "c5f74144.ebbac",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connectivity resource not found\" />\n \n",
+ "comments": "",
+ "x": 1510.0319137573242,
+ "y": 1154.3338508605957,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "8cc479bc.b82368",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1367.0314254760742,
+ "y": 1305.000361442566,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "95f1a2bf.0b285"
+ ]
+ ]
+ },
+ {
+ "id": "61d4f147.44641",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 803.3652038574219,
+ "y": 553.5000734329224,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "55776be8.abf844",
+ "2f2bf02.ca60d1"
+ ]
+ ]
+ },
+ {
+ "id": "7bc058aa.42a598",
+ "type": "execute",
+ "name": "get parent-service-data tmp.ar-url-psd",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 657.0314483642578,
+ "y": 762.0003347396851,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7c847f3c.b2ac4",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 724.0314102172852,
+ "y": 797.0004186630249,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "5d8dc0c4.ff757",
+ "83b7907.b55937"
+ ]
+ ]
+ },
+ {
+ "id": "f0fb1a1c.cc2828",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 740.2155303955078,
+ "y": 971.7182464599609,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "f3fcb7.3cb38348",
+ "31b6e940.d005b6",
+ "998ab047.1d3cb"
+ ]
+ ]
+ },
+ {
+ "id": "d2c267be.388018",
+ "type": "update",
+ "name": "delete AAI vpn-binding",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpn-name' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2211.031204223633,
+ "y": 1801.0002889633179,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "e8b749f3.e275f8",
+ "ef20a9a9.f1fb18"
+ ]
+ ]
+ },
+ {
+ "id": "e8b749f3.e275f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2465.5392112731934,
+ "y": 1781.1987580060959,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "b53766de.89b208"
+ ]
+ ]
+ },
+ {
+ "id": "ef20a9a9.f1fb18",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2472.6344985961914,
+ "y": 1813.9607256650925,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "b53766de.89b208"
+ ]
+ ]
+ },
+ {
+ "id": "b53766de.89b208",
+ "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=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 2632.063091278076,
+ "y": 1792.8178290128708,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "4ec4550f.fd160c",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2250.7854080200195,
+ "y": 1581.254126548767,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "d144148d.dc75b8",
+ "6622df6c.28bd"
+ ]
+ ]
+ },
+ {
+ "id": "d144148d.dc75b8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2485.7854080200195,
+ "y": 1559.254126548767,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "11df681e.1cd4c8"
+ ]
+ ]
+ },
+ {
+ "id": "6622df6c.28bd",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2478.0354080200195,
+ "y": 1612.8970098495483,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a07b50ef.81562"
+ ]
+ ]
+ },
+ {
+ "id": "11df681e.1cd4c8",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 2639.7854080200195,
+ "y": 1560.254126548767,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "767b76a3.973bd8",
+ "type": "switchNode",
+ "name": "switch prop.sdncRestApi.token_id",
+ "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2257.031126022339,
+ "y": 1686.5312061309814,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "647e08e2.0afec8",
+ "4b8f5cd7.3f8294"
+ ]
+ ]
+ },
+ {
+ "id": "4b8f5cd7.3f8294",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2477.0312519073486,
+ "y": 1726.031084060669,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "10d17cd1.f30ab3"
+ ]
+ ]
+ },
+ {
+ "id": "647e08e2.0afec8",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2483.031373977661,
+ "y": 1662.5310831069946,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "e34fee1b.784d2"
+ ]
+ ]
+ },
+ {
+ "id": "a07b50ef.81562",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2623.0311431884766,
+ "y": 1610.5309600830078,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e34fee1b.784d2",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete ethernet Service",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2762.03125,
+ "y": 1659.5311279296875,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "f2badd12.3e9c1",
+ "94d88f9c.771f9"
+ ]
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/resources/graph.versions b/platform-logic/generic-resource-api/src/main/resources/graph.versions index bae81681..3fbd3f58 100755 --- a/platform-logic/generic-resource-api/src/main/resources/graph.versions +++ b/platform-logic/generic-resource-api/src/main/resources/graph.versions @@ -114,7 +114,7 @@ GENERIC-RESOURCE-API self-serve-generate-name ${project.version} sync GENERIC-RESOURCE-API self-serve-generate-name-changeassign ${project.version} sync GENERIC-RESOURCE-API self-serve-mS-mac-address-assign ${project.version} sync GENERIC-RESOURCE-API self-serve-mS-vlan-tag-assign ${project.version} sync -GENERIC-RESOURCE-API self-serve-netbox-ip-assignment ${project.version} sync +GENERIC-RESOURCE-API self-serve-netbox-ip-assign ${project.version} sync GENERIC-RESOURCE-API self-serve-unresolved-composite-data ${project.version} sync GENERIC-RESOURCE-API self-serve-vf-module-assign ${project.version} sync GENERIC-RESOURCE-API self-serve-vf-module-unassign ${project.version} sync diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-generate-name.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-generate-name.xml index 94225a15..294ce772 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-generate-name.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-generate-name.xml @@ -6,430 +6,613 @@ <set>
<parameter name='tmp.naming-data-payload' value='{"elements":[' />
</set>
- <call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' ></call>
- <switch test="`$ss.capability-type`">
- <outcome value='vnf'>
- <switch test="`$ss.capability-action`">
- <outcome value='unassign'>
- <for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>
- <outcome value='true'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '{'`" />
- </set>
- <for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key_length`' >
- <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name == 'external-key'`">
- <outcome value='true'>
- <set>
- <parameter name="tmp.naming-data-payload" value="`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value + '",'`"/>
- </set>
- </outcome>
- </switch>
- </for>
- <set>
- <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '},'`" />
- </set>
- <set>
- <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + ']}'`" />
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
- <parameter name='outputPath' value='tmp.naming-data-payload' />
- <parameter name='source' value='`$tmp.naming-data-payload`' />
- <parameter name='target' value=',}' />
- <parameter name='replacement' value='}' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
- <parameter name='outputPath' value='tmp.naming-data-payload' />
- <parameter name='source' value='`$tmp.naming-data-payload`' />
- <parameter name='target' value=',]' />
- <parameter name='replacement' value=']' />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value="BEFORE namegeneration.node.UnAssignNameNode"/>
- </record>
- <execute plugin='org.openecomp.sdnc.prov.namegeneration.node.UnAssignNameNode' method='process'>
- <parameter name='payload' value='`$tmp.naming-data-payload`' />
- <parameter name="prifix" value="nameGenResponse" />
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error from NameGenerationNode Unassign" />
- </return>
- </block>
- </outcome>
- <outcome value='not-found'>
- <block>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error from NameGenerationNode Unassign" />
- </return>
- </block>
- </outcome>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value="AFTER namegeneration.node.UnAssignNameNode"/>
- </record>
- <set>
- <parameter name='pathname'
- value="`'/var/tmp/ss-gen-name-' +
- $ss.capability-type + '-' + $ss.capability-action + '-' +
- $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id + '.log'`" />
- </set>
- <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="jsonStringToCtx">
- <parameter name="source" value="nameGenResponse.response-payload" />
- <parameter name="outputPath" value="jsonContextPrefix" />
- <parameter name="isEscaped" value="false" />
- </execute>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='DELETED' />
- </set>
- <for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].name == $jsonContextPrefix.elements[$n].resource-name`'>
- <outcome value='true'>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].value`' value="`$jsonContextPrefix.elements[$n].resource-value`" />
- </set>
- </outcome>
- </switch>
- </for>
- </block>
- </outcome>
- </switch>
- </for>
- </outcome>
- <outcome value='assign'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.naming-data-payload' value='{"elements":[' />
- </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from capability-param-resolution" />
+ </return>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from capability-param-resolution" />
+ </return>
+ </outcome>
+ </call>
+ <switch test="`$ss.capability-type == 'vnf'`">
+ <outcome value='true'>
+ <block>
+ <switch test="`$ss.capability-action == 'unassign'`">
+ <outcome value='true'>
<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >
<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>
<outcome value='true'>
<block atomic='true'>
<set>
<parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '{'`" />
+ <parameter name='tmp.gen-name_length' value='1' />
</set>
<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key_length`' >
- <set>
- <parameter name="tmp.naming-data-payload" value="`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value + '",'`"/>
- </set>
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name == 'external-key'`">
+ <outcome value='true'>
+ <set>
+ <parameter name="tmp.naming-data-payload" value="`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value + '",'`"/>
+ <parameter name="`tmp.gen-name[0].element[$j].name`" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name`"/>
+ <parameter name="`tmp.gen-name[0].element[$j].value`" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value`"/>
+ <parameter name="`tmp.gen-name[0].element_length`" value='`$j + 1`' />
+ </set>
+ </outcome>
+ </switch>
</for>
<set>
<parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '},'`" />
</set>
+ <set>
+ <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + ']}'`" />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
+ <parameter name='outputPath' value='tmp.naming-data-payload' />
+ <parameter name='source' value='`$tmp.naming-data-payload`' />
+ <parameter name='target' value=',}' />
+ <parameter name='replacement' value='}' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
+ <parameter name='outputPath' value='tmp.naming-data-payload' />
+ <parameter name='source' value='`$tmp.naming-data-payload`' />
+ <parameter name='target' value=',]' />
+ <parameter name='replacement' value=']' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.naming.gen-name.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.naming.gen-name.url + $prop.restapi.naming.gen-name.service`' />
+ <parameter name='restapiUser' value='`$prop.naming.gen-name.user`' />
+ <parameter name='restapiPassword' value='`$prop.naming.gen-name.pwd`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='DELETE' />
+ <parameter name="responsePrefix" value="nameGenResponse" />
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from NameGenerationNode Unassign" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from NameGenerationNode Unassign" />
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="jsonStringToCtx">
+ <parameter name="source" value="nameGenResponse.httpResponse" />
+ <parameter name="outputPath" value="jsonContextPrefix" />
+ <parameter name="isEscaped" value="false" />
+ </execute>
+ <for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >
+ <for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >
+ <parameter name="source" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`" />
+ <parameter name="target" value="$"/>
+ <outcome value='true'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name='ctx_memory_result_key' value='resource-resolution-split' />
+ <parameter name='original_string' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' />
+ <parameter name='regex' value='\$\{' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name='ctx_memory_result_key' value='s2' />
+ <parameter name='original_string' value='`$resource-resolution-split[1]`' />
+ <parameter name='regex' value='\}' />
+ </execute>
+ <switch test='`$s2[0] == $jsonContextPrefix.elements[$n].resource-name`'>
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' value="`$jsonContextPrefix.elements[$n].resource-value`" />
+ </set>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.status`' value='DELETED' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </execute>
+ </for>
+ </for>
</block>
</outcome>
</switch>
</for>
- <switch test="`$tmp.naming-data-payload == ''`">
- <outcome value='false'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + ']}'`" />
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
- <parameter name='outputPath' value='tmp.naming-data-payload' />
- <parameter name='source' value='`$tmp.naming-data-payload`' />
- <parameter name='target' value=',}' />
- <parameter name='replacement' value='}' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
- <parameter name='outputPath' value='tmp.naming-data-payload' />
- <parameter name='source' value='`$tmp.naming-data-payload`' />
- <parameter name='target' value=',]' />
- <parameter name='replacement' value=']' />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value="BEFORE namegeneration.node.AssignNameNode"/>
- </record>
- <execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>
- <parameter name='payload' value='`$tmp.naming-data-payload`' />
- <parameter name="prifix" value="nameGenResponse" />
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error from NameGenerationNode Assign" />
- </return>
- </block>
- </outcome>
- <outcome value='not-found'>
- <block>
+ </outcome>
+ </switch>
+ <switch test="`$ss.capability-action == 'assign'`">
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.naming-data-payload' value='{"elements":[' />
+ <parameter name='tmp.gen-name_length' value='0' />
+ </set>
+ <for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >
+ <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '{'`" />
+ </set>
+ <for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key_length`' >
<set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />
+ <parameter name="tmp.naming-data-payload" value="`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value + '",'`"/>
+ <parameter name="`tmp.gen-name[$tmp.gen-name_length].element[$j].name`" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].name`"/>
+ <parameter name="`tmp.gen-name[$tmp.gen-name_length].element[$j].value`" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.resource-key[$j].value`"/>
+ <parameter name="`tmp.gen-name[$tmp.gen-name_length].element_length`" value='`$j + 1`' />
</set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error from NameGenerationNode Assign" />
- </return>
- </block>
- </outcome>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value="AFTER namegeneration.node.AssignNameNode"/>
- </record>
- <set>
- <parameter name='pathname'
- value="`'/var/tmp/ss-gen-name-' +
- $ss.capability-type + '-' + $ss.capability-action + '-' +
- $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id + '.log'`" />
- </set>
- <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="jsonStringToCtx">
- <parameter name="source" value="nameGenResponse.response-payload" />
- <parameter name="outputPath" value="jsonContextPrefix" />
- <parameter name="isEscaped" value="false" />
- </execute>
- <for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >
- <for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].name == $jsonContextPrefix.elements[$n].resource-name`'>
- <outcome value='true'>
+ </for>
+ <set>
+ <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '},'`" />
+ <parameter name='tmp.gen-name_length' value='`$tmp.gen-name_length + 1`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ <switch test="`$tmp.naming-data-payload == ''`">
+ <outcome value='false'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + ']}'`" />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
+ <parameter name='outputPath' value='tmp.naming-data-payload' />
+ <parameter name='source' value='`$tmp.naming-data-payload`' />
+ <parameter name='target' value=',}' />
+ <parameter name='replacement' value='}' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
+ <parameter name='outputPath' value='tmp.naming-data-payload' />
+ <parameter name='source' value='`$tmp.naming-data-payload`' />
+ <parameter name='target' value=',]' />
+ <parameter name='replacement' value=']' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.naming.gen-name.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.naming.gen-name.url + $prop.restapi.naming.gen-name.service`' />
+ <parameter name='restapiUser' value='`$prop.naming.gen-name.user`' />
+ <parameter name='restapiPassword' value='`$prop.naming.gen-name.pwd`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name="responsePrefix" value="nameGenResponse" />
+ <outcome value='failure'>
+ <block>
<set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' value="`$jsonContextPrefix.elements[$n].resource-value`" />
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.status`' value='SUCCESS' />
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />
</set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from NameGenerationNode Assign" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].resource-resolution-data.status`' value='FAILED' />
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from NameGenerationNode Assign" />
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="jsonStringToCtx">
+ <parameter name="source" value="nameGenResponse.httpResponse" />
+ <parameter name="outputPath" value="jsonContextPrefix" />
+ <parameter name="isEscaped" value="false" />
+ </execute>
+ <for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >
+ <for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >
+ <parameter name="source" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`" />
+ <parameter name="target" value="$"/>
+ <outcome value='true'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name='ctx_memory_result_key' value='resource-resolution-split' />
+ <parameter name='original_string' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' />
+ <parameter name='regex' value='\$\{' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name='ctx_memory_result_key' value='s2' />
+ <parameter name='original_string' value='`$resource-resolution-split[1]`' />
+ <parameter name='regex' value='\}' />
+ </execute>
+ <switch test='`$s2[0] == $jsonContextPrefix.elements[$n].resource-name`'>
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`' value="`$jsonContextPrefix.elements[$n].resource-value`" />
+ </set>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.status`' value='SUCCESS' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </execute>
+ </for>
+ </for>
+ <for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >
+ <parameter name="source" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].value`" />
+ <parameter name="target" value="$"/>
+ <outcome value='false'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.capability-name`' value='INPUT' />
+ </set>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$l].resource-resolution-data.status`' value='SUCCESS' />
+ </set>
+ </block>
</outcome>
- </switch>
+ </execute>
</for>
- </for>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
</outcome>
- <outcome value='vf-module'>
- <switch test="`$ss.capability-action`">
- <outcome value='unassign'>
- <for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>
- <outcome value='true'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '{'`" />
- </set>
- <for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key_length`' >
- <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name == 'external-key'`">
- <outcome value='true'>
- <set>
- <parameter name="tmp.naming-data-payload" value="`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value + '",'`"/>
- </set>
- </outcome>
- </switch>
- </for>
- <set>
- <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '},'`" />
- </set>
- <set>
- <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + ']}'`" />
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
- <parameter name='outputPath' value='tmp.naming-data-payload' />
- <parameter name='source' value='`$tmp.naming-data-payload`' />
- <parameter name='target' value=',}' />
- <parameter name='replacement' value='}' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
- <parameter name='outputPath' value='tmp.naming-data-payload' />
- <parameter name='source' value='`$tmp.naming-data-payload`' />
- <parameter name='target' value=',]' />
- <parameter name='replacement' value=']' />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value="BEFORE namegeneration.node.UnAssignNameNode"/>
- </record>
- <execute plugin='org.openecomp.sdnc.prov.namegeneration.node.UnAssignNameNode' method='process'>
- <parameter name='payload' value='`$tmp.naming-data-payload`' />
- <parameter name="prifix" value="nameGenResponse" />
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error from NameGenerationNode Unassign" />
- </return>
- </block>
- </outcome>
- <outcome value='not-found'>
- <block>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error from NameGenerationNode Unassign" />
- </return>
- </block>
- </outcome>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value="AFTER namegeneration.node.UnAssignNameNode"/>
- </record>
- <set>
- <parameter name='pathname'
- value="`'/var/tmp/ss-gen-name-' +
- $ss.capability-type + '-' + $ss.capability-action + '-' +
- $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.vf-module-id + '.log'`" />
- </set>
- <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="jsonStringToCtx">
- <parameter name="source" value="nameGenResponse.response-payload" />
- <parameter name="outputPath" value="jsonContextPrefix" />
- <parameter name="isEscaped" value="false" />
- </execute>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='DELETED' />
- </set>
- <for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].name == $jsonContextPrefix.elements[$n].resource-name`'>
- <outcome value='true'>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].value`' value="`$jsonContextPrefix.elements[$n].resource-value`" />
- </set>
- </outcome>
- </switch>
- </for>
- </block>
- </outcome>
- </switch>
- </for>
- </outcome>
- <outcome value='assign'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.naming-data-payload' value='{"elements":[' />
- </set>
+ </switch>
+ <switch test="`$ss.capability-type == 'vf-module'`">
+ <outcome value='true'>
+ <block>
+ <switch test="`$ss.capability-action == 'unassign'`">
+ <outcome value='true'>
<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >
<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>
<outcome value='true'>
<block atomic='true'>
<set>
<parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '{'`" />
+ <parameter name='tmp.gen-name_length' value='1' />
</set>
<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key_length`' >
- <set>
- <parameter name="tmp.naming-data-payload" value="`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value + '",'`"/>
- </set>
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name == 'external-key'`">
+ <outcome value='true'>
+ <set>
+ <parameter name="tmp.naming-data-payload" value="`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value + '",'`"/>
+ <parameter name="`tmp.gen-name[0].element[$j].name`" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name`"/>
+ <parameter name="`tmp.gen-name[0].element[$j].value`" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value`"/>
+ <parameter name="`tmp.gen-name[0].element_length`" value='`$j + 1`' />
+ </set>
+ </outcome>
+ </switch>
</for>
<set>
<parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '},'`" />
</set>
+ <set>
+ <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + ']}'`" />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
+ <parameter name='outputPath' value='tmp.naming-data-payload' />
+ <parameter name='source' value='`$tmp.naming-data-payload`' />
+ <parameter name='target' value=',}' />
+ <parameter name='replacement' value='}' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
+ <parameter name='outputPath' value='tmp.naming-data-payload' />
+ <parameter name='source' value='`$tmp.naming-data-payload`' />
+ <parameter name='target' value=',]' />
+ <parameter name='replacement' value=']' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.naming.gen-name.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.naming.gen-name.url + $prop.restapi.naming.gen-name.service`' />
+ <parameter name='restapiUser' value='`$prop.naming.gen-name.user`' />
+ <parameter name='restapiPassword' value='`$prop.naming.gen-name.pwd`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='DELETE' />
+ <parameter name="responsePrefix" value="nameGenResponse" />
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from NameGenerationNode Unassign" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from NameGenerationNode Unassign" />
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="jsonStringToCtx">
+ <parameter name="source" value="nameGenResponse.httpResponse" />
+ <parameter name="outputPath" value="jsonContextPrefix" />
+ <parameter name="isEscaped" value="false" />
+ </execute>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='DELETED' />
+ </set>
+ <for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >
+ <for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >
+ <parameter name="source" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`" />
+ <parameter name="target" value="$"/>
+ <outcome value='true'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name='ctx_memory_result_key' value='resource-resolution-split' />
+ <parameter name='original_string' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' />
+ <parameter name='regex' value='\$\{' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name='ctx_memory_result_key' value='s2' />
+ <parameter name='original_string' value='`$resource-resolution-split[1]`' />
+ <parameter name='regex' value='\}' />
+ </execute>
+ <switch test='`$s2[0] == $jsonContextPrefix.elements[$n].resource-name`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' value="`$jsonContextPrefix.elements[$n].resource-value`" />
+ </set>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </execute>
+ </for>
+ </for>
</block>
</outcome>
</switch>
</for>
- <switch test="`$tmp.naming-data-payload == ''`">
- <outcome value='false'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + ']}'`" />
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
- <parameter name='outputPath' value='tmp.naming-data-payload' />
- <parameter name='source' value='`$tmp.naming-data-payload`' />
- <parameter name='target' value=',}' />
- <parameter name='replacement' value='}' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
- <parameter name='outputPath' value='tmp.naming-data-payload' />
- <parameter name='source' value='`$tmp.naming-data-payload`' />
- <parameter name='target' value=',]' />
- <parameter name='replacement' value=']' />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value="BEFORE namegeneration.node.AssignNameNode"/>
- </record>
- <execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>
- <parameter name='payload' value='`$tmp.naming-data-payload`' />
- <parameter name="prifix" value="nameGenResponse" />
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error from NameGenerationNode Assign" />
- </return>
- </block>
- </outcome>
- <outcome value='not-found'>
- <block>
+ </outcome>
+ </switch>
+ <switch test="`$ss.capability-action == 'assign'`">
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.naming-data-payload' value='{"elements":[' />
+ <parameter name='tmp.gen-name_length' value='0' />
+ </set>
+ <for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >
+ <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.capability-name == $ss.capability-name`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '{'`" />
+ </set>
+ <for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key_length`' >
<set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />
+ <parameter name="tmp.naming-data-payload" value="`$tmp.naming-data-payload + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name + '":' + '"' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value + '",'`"/>
+ <parameter name="`tmp.gen-name[$tmp.gen-name_length].element[$j].name`" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].name`"/>
+ <parameter name="`tmp.gen-name[$tmp.gen-name_length].element[$j].value`" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.resource-key[$j].value`"/>
+ <parameter name="`tmp.gen-name[$tmp.gen-name_length].element_length`" value='`$j + 1`' />
</set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error from NameGenerationNode Assign" />
- </return>
- </block>
- </outcome>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log"/>
- <parameter name="field1" value="AFTER namegeneration.node.AssignNameNode"/>
- </record>
- <set>
- <parameter name='pathname'
- value="`'/var/tmp/ss-gen-name-' +
- $ss.capability-type + '-' + $ss.capability-action + '-' +
- $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.vf-module-id + '.log'`" />
- </set>
- <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="jsonStringToCtx">
- <parameter name="source" value="nameGenResponse.response-payload" />
- <parameter name="outputPath" value="jsonContextPrefix" />
- <parameter name="isEscaped" value="false" />
- </execute>
- <for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >
- <for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].name == $jsonContextPrefix.elements[$n].resource-name`'>
- <outcome value='true'>
+ </for>
+ <set>
+ <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + '},'`" />
+ <parameter name='tmp.gen-name_length' value='`$tmp.gen-name_length + 1`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ <switch test="`$tmp.naming-data-payload == ''`">
+ <outcome value='false'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.naming-data-payload' value="`$tmp.naming-data-payload + ']}'`" />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
+ <parameter name='outputPath' value='tmp.naming-data-payload' />
+ <parameter name='source' value='`$tmp.naming-data-payload`' />
+ <parameter name='target' value=',}' />
+ <parameter name='replacement' value='}' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace'>
+ <parameter name='outputPath' value='tmp.naming-data-payload' />
+ <parameter name='source' value='`$tmp.naming-data-payload`' />
+ <parameter name='target' value=',]' />
+ <parameter name='replacement' value=']' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.naming.gen-name.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.naming.gen-name.url + $prop.restapi.naming.gen-name.service`' />
+ <parameter name='restapiUser' value='`$prop.naming.gen-name.user`' />
+ <parameter name='restapiPassword' value='`$prop.naming.gen-name.pwd`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name="responsePrefix" value="nameGenResponse" />
+ <outcome value='failure'>
+ <block>
<set>
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' value="`$jsonContextPrefix.elements[$n].resource-value`" />
- <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].resource-resolution-data.status`' value='SUCCESS' />
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />
</set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from NameGenerationNode Assign" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='FAILED' />
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error from NameGenerationNode Assign" />
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="jsonStringToCtx">
+ <parameter name="source" value="nameGenResponse.httpResponse" />
+ <parameter name="outputPath" value="jsonContextPrefix" />
+ <parameter name="isEscaped" value="false" />
+ </execute>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].resource-resolution-data.status`' value='SUCCESS' />
+ </set>
+ <for index='cn' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].name == 'vnfc-name'`">
+ <outcome value='true'>
+ <for silentFailure='true' index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key_length`' >
+ <block>
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'vm-type'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-type`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-invariant-uuid'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-invariant-uuid`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-customization-uuid'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-customization-uuid`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-uuid'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-uuid`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-version'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-version`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[j].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'model-name'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-name`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].name == 'vnfc-name'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-name`' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cn].resource-resolution-data.resource-key[$j].value`' />
+ </set>
+ </outcome>
+ </switch>
+ </block>
+ </for>
</outcome>
</switch>
</for>
- </for>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
+ <for index='n' start='0' end='`$jsonContextPrefix.elements_length`' >
+ <for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >
+ <parameter name="source" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`" />
+ <parameter name="target" value="$"/>
+ <outcome value='true'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name='ctx_memory_result_key' value='resource-resolution-split' />
+ <parameter name='original_string' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' />
+ <parameter name='regex' value='\$\{' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name='ctx_memory_result_key' value='s2' />
+ <parameter name='original_string' value='`$resource-resolution-split[1]`' />
+ <parameter name='regex' value='\}' />
+ </execute>
+ <switch test='`$s2[0] == $jsonContextPrefix.elements[$n].resource-name`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`' value="`$jsonContextPrefix.elements[$n].resource-value`" />
+ </set>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </execute>
+ </for>
+ </for>
+ <for index='l' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >
+ <parameter name="source" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].value`" />
+ <parameter name="target" value="$"/>
+ <outcome value='false'>
+ <block>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].resource-resolution-data.capability-name`' value='INPUT' />
+ </set>
+ <set>
+ <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$l].resource-resolution-data.status`' value='SUCCESS' />
+ </set>
+ </block>
+ </outcome>
+ </execute>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
</outcome>
</switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='`$pathname`' />
- </execute>
</block>
</method>
</service-logic>
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-mS-mac-address-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-mS-mac-address-assign.xml index 7d9c358f..60c749ae 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-mS-mac-address-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-mS-mac-address-assign.xml @@ -86,7 +86,7 @@ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
<parameter name="logger" value="message-log"/>
<parameter name="field1" value="__TIMESTAMP__"/>
- <parameter name="field2" value="self-serve-mS-mac-address-assign: call self-service-capability-param-resolution DG"/>
+ <parameter name="field2" value="self-serve-mS-mac-address-assign: call self-serve-capability-param-resolution DG"/>
</record>
<set>
<!--<parameter name='name' value='value' />-->
@@ -97,11 +97,11 @@ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
<parameter name="logger" value="message-log"/>
<parameter name="field1" value="__TIMESTAMP__"/>
- <parameter name="field2" value="self-serve-mS-mac-address-assign: Failure calling self-service-capability-param-resolution"/>
+ <parameter name="field2" value="self-serve-mS-mac-address-assign: Failure calling self-serve-capability-param-resolution"/>
</record>
<return status='failure'>
<parameter name='error-code' value='402' />
- <parameter name='error-message' value='Failure calling self-service-capability-param-resolution' />
+ <parameter name='error-message' value='Failure calling self-serve-capability-param-resolution' />
</return>
</block>
</outcome>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.xml index c1bbe225..56a52ff4 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.xml @@ -125,7 +125,7 @@ <parameter name="logger" value="message-log"/>
<parameter name="field1" value="BEFORE ConfigAssignmentNode"/>
</record>
- <execute plugin='org.onap.ccsdk.config.assignment.service.ConfigAssignmentNode' method='process'>
+ <execute plugin='org.onap.ccsdk.features.assignment.service.ConfigAssignmentNode' method='process'>
<parameter name="request-id" value='`$request-id`' />
<parameter name="resource-id" value='`$resource-id`' />
<parameter name="resource-type" value='`$resource-type`' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.xml index 54549b69..c4f52fca 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.xml @@ -100,7 +100,7 @@ <parameter name="logger" value="message-log"/>
<parameter name="field1" value="BEFORE ConfigAssignmentNode"/>
</record>
- <execute plugin='org.onap.ccsdk.config.assignment.service.ConfigAssignmentNode' method='process'>
+ <execute plugin='org.onap.ccsdk.features.assignment.service.ConfigAssignmentNode' method='process'>
<parameter name="request-id" value='`$request-id`' />
<parameter name="resource-id" value='`$resource-id`' />
<parameter name="resource-type" value='`$resource-type`' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-vnf-input.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-vnf-input.xml index bb60391c..6de5257f 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-vnf-input.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-vnf-input.xml @@ -39,15 +39,6 @@ </return>
</outcome>
</switch>
- <switch test='`$vnf-topology-operation-input.vnf-information.vnf-id`'>
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="vnf-information.vnf-id is a required input" />
- </return>
- </outcome>
- </switch>
<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>
<outcome value='assign'>
<block atomic="true">
@@ -83,4 +74,4 @@ </switch>
</block>
</method>
-</service-logic>
\ No newline at end of file +</service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign.xml index 69f26c74..b7888ede 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign.xml @@ -1408,6 +1408,7 @@ key="INSERT INTO VIPR_CONFIGURATION (vnf_id, vnf_name, ecomp_service_instance_id <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.'
value='$vf-module-topology-operation-input.vf-module-request-input.' />
</set>
+ <call module='GENERIC-RESOURCE-API' rpc='gw-vfmodule-update' mode='sync' ></call>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status'
value='PendingCreate' />
@@ -1429,4 +1430,4 @@ key="INSERT INTO VIPR_CONFIGURATION (vnf_id, vnf_name, ecomp_service_instance_id </switch>
</block>
</method>
-</service-logic>
\ No newline at end of file +</service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml index 4ce82b1c..2b20f06e 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml @@ -265,6 +265,16 @@ value="`$connection-attachment-ar-identifiers.`" /> </return>
</outcome>
</save>
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="service-instance:relationship-list"
+ key="customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND
+ service-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND
+ service-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id"
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="allotted-resource" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/business/customers/customer/' + $connection-attachment-topology-operation-input.service-information.global-customer-id + '/service-subscriptions/service-subscription/' + $connection-attachment-topology-operation-input.service-information.subscription-service-type + '/service-instances/service-instance/' + $connection-attachment-topology-operation-input.service-information.service-instance-id + '/allotted-resources/allotted-resource/' + $tmp.ar.allotted-resource-id`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="allotted-resource.id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.ar.allotted-resource-id`" />
+ </save>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml index 98d8bc9e..7fffebd5 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml @@ -33,6 +33,7 @@ </outcome>
</get-resource>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />
<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml index ffd5ee73..db4a18c4 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml @@ -128,6 +128,7 @@ <parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />
<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
@@ -148,6 +149,7 @@ <parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />
<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml index ef9278b9..3e4a32f2 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml @@ -447,37 +447,62 @@ </set>
</outcome>
<outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing get token rest api" />
- </return>
+ <block></block>
</outcome>
</execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
- <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="patch"/>
- <parameter name="responsePrefix" value="vpn-result"/>
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
- <parameter name="trustStorePassword" value="adminadmin"/>
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
- <parameter name="keyStorePassword" value="adminadmin"/>
- <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing Create vpn rest api" />
- </return>
+ <switch test="`$prop.sdncRestApi.token_id`">
+ <outcome value=''>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <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="patch"/>
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
</outcome>
- <outcome value='success'>
- <block atomic="true"></block>
+ <outcome value='Other'>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <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="patch"/>
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
</outcome>
- </execute>
+ </switch>
<set>
<parameter name='tmp.vpnName' value="`$oof.vpn.access-node-id + '-' + $prop.global.sotn.etht-svc-name`" />
</set>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml index 4626b3c3..9a334655 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml @@ -291,36 +291,60 @@ </set>
</outcome>
<outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing get token rest api" />
- </return>
+ <block></block>
</outcome>
</execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-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="vpn-result"/>
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
- <parameter name="trustStorePassword" value="adminadmin"/>
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
- <parameter name="keyStorePassword" value="adminadmin"/>
- <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing Create vpn rest api" />
- </return>
+ <switch test="`$prop.sdncRestApi.token_id`">
+ <outcome value=''>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-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="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
</outcome>
- <outcome value='success'>
- <block atomic="true"></block>
+ <outcome value='Other'>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-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="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
</outcome>
- </execute>
+ </switch>
<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
key='vpn-binding.vpn-id = $tmp.vpn-name' >
<outcome value='failure'>
diff --git a/platform-logic/lcm/src/main/json/LCM_config-scale-out.json b/platform-logic/lcm/src/main/json/LCM_config-scale-out.json index 9d37cf13..870997b1 100755 --- a/platform-logic/lcm/src/main/json/LCM_config-scale-out.json +++ b/platform-logic/lcm/src/main/json/LCM_config-scale-out.json @@ -302,7 +302,7 @@ "id": "dfe17100.934dc",
"type": "execute",
"name": "execute RestConfAPI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.lcm.restconf.configscaleout.templatefile`\" />\n <parameter name='restapiUrl' value=\"`'http://' + $payloadJson.request-parameters.vnf-host-ip-address + ':' + $prop.lcm.restconf.port + $prop.lcm.restconf.configscaleout.urlpath + $payloadJson.configuration-parameters.ip-addr`\" />\n <parameter name='restapiUser' value='`$prop.lcm.restconf.configscaleout.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.restconf.configscaleout.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"restconf\" />",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.lcm.restconf.configscaleout.templatefile`\" />\n <parameter name='restapiUrl' value=\"`'http://' + $payloadJson.request-parameters.host-ip-address + ':' + $prop.lcm.restconf.port + $prop.lcm.restconf.configscaleout.urlpath + $payloadJson.configuration-parameters.ip-addr`\" />\n <parameter name='restapiUser' value='`$prop.lcm.restconf.configscaleout.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.restconf.configscaleout.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"restconf\" />",
"comments": "",
"outputs": 1,
"x": 302,
@@ -335,7 +335,7 @@ "id": "874cba8d.9da118",
"type": "record",
"name": "record",
- "xml": "<record plugin='org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder'> \n\t<parameter name='logger' value='message-log'/> \n\t<parameter name='field1' value='`$payloadJson.request-parameters.vnf-host-ip-address`'/>\n\t<parameter name='field2' value='`$payloadJson.configuration-parameters.ip-addr`'/>",
+ "xml": "<record plugin='org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder'> \n\t<parameter name='logger' value='message-log'/> \n\t<parameter name='field1' value='`$payloadJson.request-parameters.host-ip-address`'/>\n\t<parameter name='field2' value='`$payloadJson.configuration-parameters.ip-addr`'/>",
"comments": "",
"outputs": 1,
"x": 678,
diff --git a/platform-logic/lcm/src/main/json/LCM_health-check.json b/platform-logic/lcm/src/main/json/LCM_health-check.json index 075da772..60e65b68 100755 --- a/platform-logic/lcm/src/main/json/LCM_health-check.json +++ b/platform-logic/lcm/src/main/json/LCM_health-check.json @@ -96,7 +96,7 @@ "id": "a0daec6.f75351",
"type": "execute",
"name": "execute RestConfAPI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value=\"`'http://' + $payloadJson.request-parameters.vnf-host-ip-address + ':' + $prop.lcm.restconf.port + $prop.lcm.restconf.configscaleout.geturlpath`\" />\n <parameter name='restapiUser' value='`$prop.lcm.restconf.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.restconf.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"restconf\" />",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value=\"`'http://' + $payloadJson.request-parameters.host-ip-address + ':' + $prop.lcm.restconf.port + $prop.lcm.restconf.configscaleout.geturlpath`\" />\n <parameter name='restapiUser' value='`$prop.lcm.restconf.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.restconf.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"restconf\" />",
"comments": "",
"outputs": 1,
"x": 465,
@@ -129,7 +129,7 @@ "id": "289cee6b.89c1d2",
"type": "record",
"name": "record",
- "xml": "<record plugin='org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder'> \n\t<parameter name='logger' value='message-log'/> \n\t<parameter name='field1' value='`$payloadJson.request-parameters.vnf-host-ip-address`'/>",
+ "xml": "<record plugin='org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder'> \n\t<parameter name='logger' value='message-log'/> \n\t<parameter name='field1' value='`$payloadJson.request-parameters.host-ip-address`'/>",
"comments": "",
"outputs": 1,
"x": 845,
diff --git a/platform-logic/lcm/src/main/xml/LCM_config-scale-out.xml b/platform-logic/lcm/src/main/xml/LCM_config-scale-out.xml index 6f5163fa..ce836e21 100755 --- a/platform-logic/lcm/src/main/xml/LCM_config-scale-out.xml +++ b/platform-logic/lcm/src/main/xml/LCM_config-scale-out.xml @@ -18,14 +18,14 @@ <outcome value='success'>
<record plugin='org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder'>
<parameter name='logger' value='message-log'/>
- <parameter name='field1' value='`$payloadJson.request-parameters.vnf-host-ip-address`'/>
+ <parameter name='field1' value='`$payloadJson.request-parameters.host-ip-address`'/>
<parameter name='field2' value='`$payloadJson.configuration-parameters.ip-addr`'/>
</record>
</outcome>
</execute>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.lcm.restconf.configscaleout.templatefile`" />
- <parameter name='restapiUrl' value="`'http://' + $payloadJson.request-parameters.vnf-host-ip-address + ':' + $prop.lcm.restconf.port + $prop.lcm.restconf.configscaleout.urlpath + $payloadJson.configuration-parameters.ip-addr`" />
+ <parameter name='restapiUrl' value="`'http://' + $payloadJson.request-parameters.host-ip-address + ':' + $prop.lcm.restconf.port + $prop.lcm.restconf.configscaleout.urlpath + $payloadJson.configuration-parameters.ip-addr`" />
<parameter name='restapiUser' value='`$prop.lcm.restconf.configscaleout.user`' />
<parameter name='restapiPassword' value='`$prop.lcm.restconf.configscaleout.password`' />
<parameter name='format' value='json' />
diff --git a/platform-logic/lcm/src/main/xml/LCM_health-check.xml b/platform-logic/lcm/src/main/xml/LCM_health-check.xml index 90b1cdea..d706aac6 100755 --- a/platform-logic/lcm/src/main/xml/LCM_health-check.xml +++ b/platform-logic/lcm/src/main/xml/LCM_health-check.xml @@ -18,12 +18,12 @@ <outcome value='success'>
<record plugin='org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder'>
<parameter name='logger' value='message-log'/>
- <parameter name='field1' value='`$payloadJson.request-parameters.vnf-host-ip-address`'/>
+ <parameter name='field1' value='`$payloadJson.request-parameters.host-ip-address`'/>
</record>
</outcome>
</execute>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name='restapiUrl' value="`'http://' + $payloadJson.request-parameters.vnf-host-ip-address + ':' + $prop.lcm.restconf.port + $prop.lcm.restconf.configscaleout.geturlpath`" />
+ <parameter name='restapiUrl' value="`'http://' + $payloadJson.request-parameters.host-ip-address + ':' + $prop.lcm.restconf.port + $prop.lcm.restconf.configscaleout.geturlpath`" />
<parameter name='restapiUser' value='`$prop.lcm.restconf.user`' />
<parameter name='restapiPassword' value='`$prop.lcm.restconf.password`' />
<parameter name='format' value='json' />
diff --git a/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json b/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json index a061f634..67d8b1d4 100644 --- a/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json +++ b/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json @@ -5,7 +5,7 @@ "rpc-name": ${lcm-dmaap.rpc-name}, "type": ${lcm-dmaap.type}, "body": { - "input": { + "output": { "common-header": { "api-ver": ${lcm-dmaap.api-ver}, "flags": { |