Merge "Adding support for multi-layer and multi-domain topology discovery for CCVPN"
authorDan Timoney <dtimoney@att.com>
Wed, 4 Mar 2020 14:57:26 +0000 (14:57 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 4 Mar 2020 14:57:26 +0000 (14:57 +0000)
79 files changed:
installation/dmaap-listener/src/main/properties/dmaap-consumer-CMNotify.properties [new file with mode: 0644]
installation/dmaap-listener/src/main/properties/dmaap-listener.properties
installation/sdnc-web/pom.xml
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vfmodule-mapping-ra-response.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vfmodule-template-ra-response.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vnf-mapping-ra-response.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vnf-template-ra-response.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.json
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.json
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation.json
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation.json
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-deactivate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-delete.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/resources/graph.versions
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vfmodule-mapping-ra-response.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vfmodule-template-ra-response.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vnf-mapping-ra-response.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vnf-template-ra-response.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.xml
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-ra-assignment.xml
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation.xml
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation.xml
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-deactivate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-delete.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu2.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu3.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu4.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_bandwidth-update.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_call-bandwidth-update-pinterface.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_create-service-async.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu1.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu2.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu3.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu4.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_delete-service-async.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_handle-async-notif.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_service-create-tapi.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_service-delete-tapi.json [new file with mode: 0644]
platform-logic/optical-service/src/main/json/optical-service_success-aai-update-tapi.json [new file with mode: 0644]
platform-logic/optical-service/src/main/resources/graph.versions
platform-logic/optical-service/src/main/xml/optical-service_aai-delete-service-handling.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu1.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu2.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu3.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu4.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_call-bandwidth-update-pinterface.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu1.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu2.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu3.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu4.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_delete-service-async.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_handle-async-notif.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_service-create-tapi.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_service-delete-tapi.xml [new file with mode: 0644]
platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml [new file with mode: 0644]

diff --git a/installation/dmaap-listener/src/main/properties/dmaap-consumer-CMNotify.properties b/installation/dmaap-listener/src/main/properties/dmaap-consumer-CMNotify.properties
new file mode 100644 (file)
index 0000000..aae34a2
--- /dev/null
@@ -0,0 +1,35 @@
+TransportType=HTTPNOAUTH
+Latitude =50.000000
+Longitude =-100.000000
+Version =1.0
+ServiceName =message-router.onap:3904/events
+Environment =TEST
+Partner =
+routeOffer=MR1
+SubContextPath =/
+Protocol =http
+MethodType =GET
+username =admin
+password =admin
+contenttype =application/json
+authKey=fs20cKwalJ6ry4kX:7Hqm6BDZK47IKxGRkOPFk33qMYs=
+authDate=2019-04-09T04:28:40-05:00
+host=message-router.onap:3904
+topic=CM-NOTIFICATION
+group=users
+id=sdnc1
+timeout=15000
+limit=1000
+filter=
+AFT_DME2_EXCHANGE_REQUEST_HANDLERS=com.att.nsa.test.PreferredRouteRequestHandler
+AFT_DME2_EXCHANGE_REPLY_HANDLERS=com.att.nsa.test.PreferredRouteReplyHandler
+AFT_DME2_REQ_TRACE_ON=true
+AFT_ENVIRONMENT=AFTUAT
+AFT_DME2_EP_CONN_TIMEOUT=15000
+AFT_DME2_ROUNDTRIP_TIMEOUT_MS=240000
+AFT_DME2_EP_READ_TIMEOUT_MS=50000
+sessionstickinessrequired=NO
+DME2preferredRouterFilePath=/opt/onap/sdnc/data/properties/dmaap-listener.preferredRoute.txt
+sdnc.odl.user=admin
+sdnc.odl.password=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
+sdnc.odl.url-base=http://sdnc.onap:8282/restconf/operations
index ce8e337..5101c27 100755 (executable)
@@ -1 +1 @@
-subscriptions=org.onap.ccsdk.sli.northbound.dmaapclient.SdncDhcpEventConsumer:dhcpalert.properties;org.onap.ccsdk.sli.northbound.dmaapclient.SdncLcmDmaapConsumer:lcm.properties;org.onap.ccsdk.sli.northbound.dmaapclient.SdncAaiDmaapConsumer:aai.properties;org.onap.ccsdk.sli.northbound.dmaapclient.OofPciPocDmaapConsumers:dmaap-consumer-oofpcipoc.properties;org.onap.ccsdk.sli.northbound.dmaapclient.A1AdapterPolicyDmaapConsumer:dmaap-consumer-a1Adapter-policy.properties
+subscriptions=org.onap.ccsdk.sli.northbound.dmaapclient.SdncDhcpEventConsumer:dhcpalert.properties;org.onap.ccsdk.sli.northbound.dmaapclient.SdncLcmDmaapConsumer:lcm.properties;org.onap.ccsdk.sli.northbound.dmaapclient.SdncAaiDmaapConsumer:aai.properties;org.onap.ccsdk.sli.northbound.dmaapclient.OofPciPocDmaapConsumers:dmaap-consumer-oofpcipoc.properties;org.onap.ccsdk.sli.northbound.dmaapclient.A1AdapterPolicyDmaapConsumer:dmaap-consumer-a1Adapter-policy.properties;org.onap.ccsdk.sli.northbound.dmaapclient.CMNotifyDmaapConsumer:dmaap-consumer-CMNotify.properties
index 1ae66ab..45aa9db 100644 (file)
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- connectApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- eventLogApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- helpApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- maintenanceApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- minimumApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- configurationApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- demoApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- faultApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- mediatorApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- performanceHistoryApp -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>odlux/*</includes>
+                                                                       <includes>odlux/**</includes>
                                                                </artifactItem>
                                                                <!-- helpserver resources -->
                                                                <artifactItem>
                                                                        <type>jar</type>
                                                                        <overWrite>false</overWrite>
                                                                        <outputDirectory>${project.build.directory}/docker-stage/html</outputDirectory>
-                                                                       <includes>help/*</includes>
+                                                                       <includes>help/**</includes>
                                                                </artifactItem>
                                                        </artifactItems>
                                                </configuration>
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vfmodule-mapping-ra-response.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vfmodule-mapping-ra-response.json
new file mode 100644 (file)
index 0000000..daa8d21
--- /dev/null
@@ -0,0 +1 @@
+[{"id":"79a754d7.03267c","type":"dgstart","name":"DGSTART","outputs":1,"x":138.57142639160156,"y":61.42857360839844,"z":"1823fdbd.4322b2","wires":[["5f07514.3329cb"]]},{"id":"5f07514.3329cb","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":414.57142639160156,"y":62.42857360839844,"z":"1823fdbd.4322b2","wires":[["ab2e4dba.2286e"]]},{"id":"ab2e4dba.2286e","type":"method","name":"self-serve-process-vfmodule-mapping-ra-response","xml":"<method rpc='self-serve-process-vfmodule-mapping-ra-response' mode='sync'>\n","comments":"","outputs":1,"x":304.0714416503906,"y":116.17857551574707,"z":"1823fdbd.4322b2","wires":[["553fad5c.980e24"]]},{"id":"553fad5c.980e24","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":197.83727264404297,"y":187.04762268066406,"z":"1823fdbd.4322b2","wires":[["fe513761.0453c8","46e20dec.d3b074","41663779.ca9db8","269dfcc8.a905a4"]]},{"id":"fe513761.0453c8","type":"switchNode","name":"switch resolution-summary_length","xml":"<switch test='`$jsonContextPrefix.resolution-summary_length`'>\n","comments":"","outputs":1,"x":489.6229705810547,"y":230.41666984558105,"z":"1823fdbd.4322b2","wires":[["2b5ec4f9.cbde6c"]]},{"id":"2b5ec4f9.cbde6c","type":"not-found","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":798.1943817138672,"y":229.84525871276855,"z":"1823fdbd.4322b2","wires":[["9b918b20.342278"]]},{"id":"9b918b20.342278","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=\"resolution-summary_length is null\" />\n","comments":"","x":969.1944198608398,"y":230.41666793823242,"z":"1823fdbd.4322b2","wires":[]},{"id":"46e20dec.d3b074","type":"for","name":"for resolution-summary[]","xml":"<for silentFailure='true'  index='vdns-index' start='0' end='`$jsonContextPrefix.resolution-summary_length`' >\n","comments":"","outputs":1,"x":455.8333282470703,"y":440.4166946411133,"z":"1823fdbd.4322b2","wires":[["954f452d.486a28"]]},{"id":"938b4d93.409c3","type":"set","name":" ADD resolution-summary[].name/value to param[]","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' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].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' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].value`'/>","comments":"","x":1687.3333129882812,"y":522.666711807251,"z":"1823fdbd.4322b2","wires":[]},{"id":"3ef76de7.5dfde2","type":"for","name":"for vf-module-parameters.param[]","xml":"<for silentFailure='true' index='param-index' 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":1359.0833358764648,"y":439.41670989990234,"z":"1823fdbd.4322b2","wires":[["f75c0cc1.c0d76"]]},{"id":"954f452d.486a28","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":683.833309173584,"y":440.16671085357666,"z":"1823fdbd.4322b2","wires":[["94a79fec.a4fc6","636f16f7.c04838","267a31a7.235fee"]]},{"id":"f75c0cc1.c0d76","type":"switchNode","name":"switch param[].name == resolution-summary[].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[$param-index].name == $jsonContextPrefix.resolution-summary[$vdns-index].name`'>","comments":"","outputs":1,"x":1755.0833358764648,"y":439.41670989990234,"z":"1823fdbd.4322b2","wires":[["fca48735.1564f8"]]},{"id":"fca48735.1564f8","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2075.083335876465,"y":439.41670989990234,"z":"1823fdbd.4322b2","wires":[["57f68d23.7bf1d4"]]},{"id":"b76edb5a.1c05a8","type":"set","name":"set param[].value = resolution-summary[].value","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[$param-index].value' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].value`'/>\n","comments":"","x":2500.08345413208,"y":407.66670989990234,"z":"1823fdbd.4322b2","wires":[]},{"id":"267a31a7.235fee","type":"switchNode","name":"switch tmp.mso.param.found","xml":"<switch test='`$tmp.mso.param.found`'>\n","comments":"","outputs":1,"x":929.8333129882812,"y":522.166711807251,"z":"1823fdbd.4322b2","wires":[["bdf7df62.8888c"]]},{"id":"bdf7df62.8888c","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1157.3333129882812,"y":521.666711807251,"z":"1823fdbd.4322b2","wires":[["50cf521c.43565c"]]},{"id":"94a79fec.a4fc6","type":"set","name":"set tmp.mso.param.found = false","xml":"<set>\n<parameter name='tmp.mso.param.found' value='false' />\n","comments":"","x":945.8332977294922,"y":362.4167232513428,"z":"1823fdbd.4322b2","wires":[]},{"id":"636f16f7.c04838","type":"switchNode","name":"switch prehighnum > 0","xml":"<switch test='`$prehighnum &gt; 0`'>\n","comments":"","outputs":1,"x":910.333309173584,"y":440.16671085357666,"z":"1823fdbd.4322b2","wires":[["c66e2a0d.6fd948"]]},{"id":"c66e2a0d.6fd948","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1124.8689613342285,"y":439.9881534576416,"z":"1823fdbd.4322b2","wires":[["3ef76de7.5dfde2"]]},{"id":"50cf521c.43565c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1334.3333129882812,"y":521.666711807251,"z":"1823fdbd.4322b2","wires":[["938b4d93.409c3","5e3df1a4.6ec2c","17be5cec.c2a0e3","f55a1ca5.c81d9","c092e803.425f58","b53942f9.6835c"]]},{"id":"5e3df1a4.6ec2c","type":"set","name":"highnum++","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1547.158576965332,"y":846.9484558105469,"z":"1823fdbd.4322b2","wires":[]},{"id":"17fdac5b.a35a14","type":"comment","name":"vdns-index","info":"","comments":"","x":487.5595016479492,"y":399.65477752685547,"z":"1823fdbd.4322b2","wires":[]},{"id":"36736ef5.d25a72","type":"comment","name":"param-index","info":"","comments":"","x":1396.3095245361328,"y":398.65477657318115,"z":"1823fdbd.4322b2","wires":[]},{"id":"b59f84a4.fbb0f8","type":"set","name":"set tmp.mso.param.found = true","xml":"<set>\n<parameter name='tmp.mso.param.found' value='true' />\n","comments":"","x":2441.309524536133,"y":471.90478134155273,"z":"1823fdbd.4322b2","wires":[]},{"id":"57f68d23.7bf1d4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2213.309524536133,"y":438.9047794342041,"z":"1823fdbd.4322b2","wires":[["b76edb5a.1c05a8","b59f84a4.fbb0f8"]]},{"id":"17be5cec.c2a0e3","type":"switchNode","name":"switch dictionary-source","xml":"<switch test='`$jsonContextPrefix.resolution-summary[$vdns-index].dictionary-source`'>\n","comments":"","outputs":1,"x":1587.559497833252,"y":605.9047651290894,"z":"1823fdbd.4322b2","wires":[["4a257f5c.6e8cc"]]},{"id":"4a257f5c.6e8cc","type":"other","name":"sdnc","xml":"<outcome value='sdnc'>\n","comments":"","outputs":1,"x":1800.0595054626465,"y":605.904764175415,"z":"1823fdbd.4322b2","wires":[["c6b4f5b9.5551d8"]]},{"id":"f3cd0176.72782","type":"comment","name":"capability","info":"","comments":"","x":1818.8095092773438,"y":569.6547622680664,"z":"1823fdbd.4322b2","wires":[]},{"id":"c6b4f5b9.5551d8","type":"for","name":"for key-identifiers[]","xml":"<for silentFailure='true'  index='kid-index' start='0' end='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers_length`' >\n","comments":"","outputs":1,"x":1991.3094787597656,"y":605.9047546386719,"z":"1823fdbd.4322b2","wires":[["6e3cdabe.e05b74"]]},{"id":"6e3cdabe.e05b74","type":"set","name":"set resource-key[] to key-identifiers[] ","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].resource-resolution-data.resource-key[$kid-index].name' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers[$kid-index].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.resource-key[$kid-index].value' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers[$kid-index].value`'/>\n","comments":"","x":2289.0595092773438,"y":606.154764175415,"z":"1823fdbd.4322b2","wires":[]},{"id":"f55a1ca5.c81d9","type":"set","name":"set request-payload","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].resource-resolution-data.payload' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].request-payload`'/>\n\n","comments":"","x":1574.420539855957,"y":733.7936515808105,"z":"1823fdbd.4322b2","wires":[]},{"id":"ba13b3a1.e2577","type":"comment","name":"Overwrite MSO input with RA response","info":"","comments":"","x":2136.8095092773438,"y":379.6547603607178,"z":"1823fdbd.4322b2","wires":[]},{"id":"c092e803.425f58","type":"set","name":"set param[].status and 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[$highnum].resource-resolution-data.capability-name' \n\tvalue='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' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].status`'/>","comments":"","x":1642.6705474853516,"y":793.7936534881592,"z":"1823fdbd.4322b2","wires":[]},{"id":"f4090c21.3d36a","type":"comment","name":"NEW param from RA response","info":"","comments":"","x":1226.3094940185547,"y":488.4047622680664,"z":"1823fdbd.4322b2","wires":[]},{"id":"b53942f9.6835c","type":"set","name":"set resource-resolution-data.resource-key_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[$highnum].resource-resolution-data.resource-key_length' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers_length`' />\n","comments":"","x":1675.5555267333984,"y":674.4444303512573,"z":"1823fdbd.4322b2","wires":[]},{"id":"269dfcc8.a905a4","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: self-serve-process-vfmodule-mapping-ra-response\"/>\n\n","comments":"","outputs":1,"x":384.08330154418945,"y":968.3610124588013,"z":"1823fdbd.4322b2","wires":[[]]},{"id":"41663779.ca9db8","type":"set","name":"set service-data...param_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' \n\tvalue='`$highnum`'/>\n","comments":"","x":473.2975425720215,"y":915.2181148529053,"z":"1823fdbd.4322b2","wires":[]}]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vfmodule-template-ra-response.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vfmodule-template-ra-response.json
new file mode 100644 (file)
index 0000000..e6945c0
--- /dev/null
@@ -0,0 +1 @@
+[{"id":"2e507f62.19bb6","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":588.2539825439453,"y":410.1587429046631,"z":"6aa560e5.85c47","wires":[["5103e61.a16e518"]]},{"id":"93065c5b.0381d","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":1802.2539825439453,"y":461.1587429046631,"z":"6aa560e5.85c47","wires":[]},{"id":"d85544dd.7444d8","type":"for","name":"for capability-data","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n","comments":"","outputs":1,"x":492.9683074951172,"y":735.0158672332764,"z":"6aa560e5.85c47","wires":[["d9aa7add.98f838"]]},{"id":"d9aa7add.98f838","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":715.9683074951172,"y":735.0158672332764,"z":"6aa560e5.85c47","wires":[["f40c4e87.7662"]]},{"id":"5c20309b.4e988","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":1561.2539825439453,"y":410.1587429046631,"z":"6aa560e5.85c47","wires":[["eddc2b7e.b25dd8"]]},{"id":"5103e61.a16e518","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":867.2539825439453,"y":411.1587429046631,"z":"6aa560e5.85c47","wires":[["4904006a.4a46c","9a71c833.c3ba38","b9f0e559.8a4478"]]},{"id":"eddc2b7e.b25dd8","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":1819.2539825439453,"y":410.1587429046631,"z":"6aa560e5.85c47","wires":[["6173dec6.c45a8"]]},{"id":"6173dec6.c45a8","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1999.2539825439453,"y":410.1587429046631,"z":"6aa560e5.85c47","wires":[["42e3ef61.cd65c"]]},{"id":"42e3ef61.cd65c","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`' \n\tvalue='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='tmp.mso.param.found' value='true' />\n","comments":"","x":2209.2539825439453,"y":411.1587429046631,"z":"6aa560e5.85c47","wires":[]},{"id":"b9f0e559.8a4478","type":"switchNode","name":"switch tmp.mso.param.not-found","xml":"<switch test='`$tmp.mso.param.found`'>\n","comments":"","outputs":1,"x":1109.2539825439453,"y":463.1587429046631,"z":"6aa560e5.85c47","wires":[["c5edd65c.570798"]]},{"id":"c5edd65c.570798","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1343.2539825439453,"y":462.1587429046631,"z":"6aa560e5.85c47","wires":[["a4895338.9624b"]]},{"id":"4904006a.4a46c","type":"set","name":"set for existing param name","xml":"<set>\n<parameter name='tmp.mso.param.found' value='false' />\n","comments":"","x":1093.2539825439453,"y":352.1587429046631,"z":"6aa560e5.85c47","wires":[]},{"id":"9a71c833.c3ba38","type":"switchNode","name":"switch check length > 0","xml":"<switch test='`$prehighnum &gt; 0`'>\n","comments":"","outputs":1,"x":1085.7539825439453,"y":411.1587429046631,"z":"6aa560e5.85c47","wires":[["461e05f4.4d39bc"]]},{"id":"461e05f4.4d39bc","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1332.7539825439453,"y":411.1587429046631,"z":"6aa560e5.85c47","wires":[["5c20309b.4e988"]]},{"id":"c8bb45ac.567628","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":1790.6825561523438,"y":783.730185508728,"z":"6aa560e5.85c47","wires":[["9188cc48.86d4b"]]},{"id":"341ba0da.79e99","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":2189.6825561523438,"y":724.730185508728,"z":"6aa560e5.85c47","wires":[]},{"id":"eeff7929.acf308","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":1370.111068725586,"y":625.7302198410034,"z":"6aa560e5.85c47","wires":[]},{"id":"f40c4e87.7662","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":950.9683074951172,"y":735.0158672332764,"z":"6aa560e5.85c47","wires":[["84304501.8a30b8"]]},{"id":"84304501.8a30b8","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":1161.9683074951172,"y":735.0158672332764,"z":"6aa560e5.85c47","wires":[["eeff7929.acf308","b624cec6.6ca6d","e9299336.32d1"]]},{"id":"b624cec6.6ca6d","type":"switchNode","name":"switch payload_length","xml":"<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n","comments":"","outputs":1,"x":1397.6825561523438,"y":732.730185508728,"z":"6aa560e5.85c47","wires":[["a6e4d7a5.6d9358","1f7c362b.f32f5a"]]},{"id":"a6e4d7a5.6d9358","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1612.6825561523438,"y":664.730185508728,"z":"6aa560e5.85c47","wires":[[]]},{"id":"1f7c362b.f32f5a","type":"other","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1621.6825561523438,"y":783.730185508728,"z":"6aa560e5.85c47","wires":[["c8bb45ac.567628"]]},{"id":"9188cc48.86d4b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1967.6825561523438,"y":782.730185508728,"z":"6aa560e5.85c47","wires":[["341ba0da.79e99","6287f81d.480b78","f718b5cf.321da8"]]},{"id":"6287f81d.480b78","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":2178.6825561523438,"y":782.730185508728,"z":"6aa560e5.85c47","wires":[]},{"id":"f718b5cf.321da8","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='num' value='`$num + 1`' />\n","comments":"","x":2191.6825561523438,"y":848.730185508728,"z":"6aa560e5.85c47","wires":[]},{"id":"e9299336.32d1","type":"set","name":"highnum++","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1360.8253784179688,"y":859.0159585475922,"z":"6aa560e5.85c47","wires":[]},{"id":"6bb79aed.6b8014","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1720.2539825439453,"y":521.1587429046631,"z":"6aa560e5.85c47","wires":[]},{"id":"a4895338.9624b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1514.2539825439453,"y":461.1587429046631,"z":"6aa560e5.85c47","wires":[["93065c5b.0381d","6bb79aed.6b8014"]]},{"id":"db7d6742.60d0b8","type":"dgstart","name":"DGSTART","outputs":1,"x":151.42858123779297,"y":68.57148170471191,"z":"6aa560e5.85c47","wires":[["aac05aea.529ab8"]]},{"id":"aac05aea.529ab8","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":427.42858123779297,"y":69.57148170471191,"z":"6aa560e5.85c47","wires":[["c788dc3b.52169"]]},{"id":"c788dc3b.52169","type":"method","name":"self-serve-process-vfmodule-template-ra-response","xml":"<method rpc='self-serve-process-vfmodule-template-ra-response' mode='sync'>\n","comments":"","outputs":1,"x":316.92859649658203,"y":123.32148361206055,"z":"6aa560e5.85c47","wires":[["3f7f456.82182ba"]]},{"id":"3f7f456.82182ba","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":247.20236206054688,"y":187.04766273498535,"z":"6aa560e5.85c47","wires":[["a8663f4c.6dc1","2e507f62.19bb6","d85544dd.7444d8","606e195c.551628","56d0bcfa.fdd634"]]},{"id":"a8663f4c.6dc1","type":"switchNode","name":"switch resource-accumulator-resolved-data_length","xml":"<switch test='`$jsonContextPrefix.resource-accumulator-resolved-data_length`'>\n","comments":"","outputs":1,"x":608.0356979370117,"y":260.8929042816162,"z":"6aa560e5.85c47","wires":[["f73172dd.87028"]]},{"id":"f73172dd.87028","type":"not-found","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":916.6071090698242,"y":260.3214931488037,"z":"6aa560e5.85c47","wires":[["953e9372.9aa27"]]},{"id":"953e9372.9aa27","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=\"resource-accumulator-resolved-data_length is null\" />\n","comments":"","x":1087.6071472167969,"y":260.8929023742676,"z":"6aa560e5.85c47","wires":[]},{"id":"56d0bcfa.fdd634","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: self-serve-process-vfmodule-template-ra-response\"/>\n\n","comments":"","outputs":1,"x":424.89284896850586,"y":1053.3928203582764,"z":"6aa560e5.85c47","wires":[[]]},{"id":"606e195c.551628","type":"set","name":"set service-data...param_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' \n\tvalue='`$highnum`'/>\n","comments":"","x":514.607177734375,"y":966.2499573230743,"z":"6aa560e5.85c47","wires":[]},{"id":"8b5eee54.80644","type":"comment","name":"Overwrite MSO input with RA response","info":"","comments":"","x":1922.857177734375,"y":365.71429443359375,"z":"6aa560e5.85c47","wires":[]},{"id":"d509dbb8.56c1b8","type":"comment","name":"index=i","info":"","comments":"","x":594.2857055664062,"y":361.4285888671875,"z":"6aa560e5.85c47","wires":[]},{"id":"54ef5d5c.c54284","type":"comment","name":"index=cnt","info":"","comments":"","x":1510.5357055664062,"y":366.4285888671875,"z":"6aa560e5.85c47","wires":[]}]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vnf-mapping-ra-response.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vnf-mapping-ra-response.json
new file mode 100644 (file)
index 0000000..9bd19ca
--- /dev/null
@@ -0,0 +1 @@
+[{"id":"9b6d371e.c6a5b8","type":"dgstart","name":"DGSTART","outputs":1,"x":97.10714721679688,"y":35.357144355773926,"z":"cc8da33a.a3512","wires":[["7f9c939d.f0fa3c"]]},{"id":"7f9c939d.f0fa3c","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":373.1071472167969,"y":36.357144355773926,"z":"cc8da33a.a3512","wires":[["3727034d.b6c80c"]]},{"id":"3727034d.b6c80c","type":"method","name":"self-self-serve-process-vnf-mapping-ra-response","xml":"<method rpc='self-serve-process-vnf-mapping-ra-response' mode='sync'>\n","comments":"","outputs":1,"x":270.107177734375,"y":101.35714912414551,"z":"cc8da33a.a3512","wires":[["e0df88c8.a19d48"]]},{"id":"e0df88c8.a19d48","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":208.5952033996582,"y":224.36906719207764,"z":"cc8da33a.a3512","wires":[["1a6fb0cb.d8582f","e44bd144.de106","54667cf1.053ed4","7110110c.690ce"]]},{"id":"1a6fb0cb.d8582f","type":"for","name":"for resolution-summary[]","xml":"<for silentFailure='true'  index='vdns-index' start='0' end='`$jsonContextPrefix.resolution-summary_length`' >\n","comments":"","outputs":1,"x":490.5952606201172,"y":515.9405288696289,"z":"cc8da33a.a3512","wires":[["c84e9ab4.fb63b8"]]},{"id":"6216191d.a6c8b8","type":"set","name":" ADD resolution-summary[].name/value to param[]","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].name`' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].value`' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].value`'/>","comments":"","x":1723.0952453613281,"y":598.1905460357666,"z":"cc8da33a.a3512","wires":[]},{"id":"f0431561.d17b88","type":"for","name":"for vnf-parameters-data.param","xml":"<for silentFailure='true' index='param-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n","comments":"","outputs":1,"x":1393.8452682495117,"y":514.940544128418,"z":"cc8da33a.a3512","wires":[["f790a097.1441e"]]},{"id":"c84e9ab4.fb63b8","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":718.5952415466309,"y":515.6905450820923,"z":"cc8da33a.a3512","wires":[["1b143473.01604c","3e6e808e.4055b","25045112.d8e58e"]]},{"id":"f790a097.1441e","type":"switchNode","name":"switch param[].name == resolution-summary[].name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$param-index].name == $jsonContextPrefix.resolution-summary[$vdns-index].name`'>\n","comments":"","outputs":1,"x":1797.8452682495117,"y":514.940544128418,"z":"cc8da33a.a3512","wires":[["e152f6a8.7c7ea8"]]},{"id":"e152f6a8.7c7ea8","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2103.8452682495117,"y":514.940544128418,"z":"cc8da33a.a3512","wires":[["1a4f635d.5cf1ed"]]},{"id":"f2314be8.6e5f98","type":"set","name":"set param[].value = resolution-summary[].value","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$param-index].value`' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].value`'/>\n","comments":"","x":2531.845386505127,"y":483.19054412841797,"z":"cc8da33a.a3512","wires":[]},{"id":"25045112.d8e58e","type":"switchNode","name":"switch tmp.mso.param.found","xml":"<switch test='`$tmp.mso.param.found`'>\n","comments":"","outputs":1,"x":964.5952453613281,"y":597.6905460357666,"z":"cc8da33a.a3512","wires":[["94e253dc.b5579"]]},{"id":"94e253dc.b5579","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1192.0952453613281,"y":597.1905460357666,"z":"cc8da33a.a3512","wires":[["26faed4e.1937b2"]]},{"id":"1b143473.01604c","type":"set","name":"set tmp.mso.param.found = false","xml":"<set>\n<parameter name='tmp.mso.param.found' value='false' />\n","comments":"","x":980.5952301025391,"y":437.9405574798584,"z":"cc8da33a.a3512","wires":[]},{"id":"3e6e808e.4055b","type":"switchNode","name":"switch prehighnum > 0","xml":"<switch test='`$prehighnum &gt; 0`'>\n","comments":"","outputs":1,"x":945.0952415466309,"y":515.6905450820923,"z":"cc8da33a.a3512","wires":[["dcd8c396.2a136"]]},{"id":"dcd8c396.2a136","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1159.6308937072754,"y":515.5119876861572,"z":"cc8da33a.a3512","wires":[["f0431561.d17b88"]]},{"id":"26faed4e.1937b2","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1369.0952453613281,"y":597.1905460357666,"z":"cc8da33a.a3512","wires":[["6216191d.a6c8b8","7c581d08.c049e4","be14dceb.d566f","86226715.4e4188","ab22106f.33c1c","2368af4a.13c2e"]]},{"id":"7c581d08.c049e4","type":"set","name":"highnum++","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1591.1427917480469,"y":903.9167537689209,"z":"cc8da33a.a3512","wires":[]},{"id":"e44bd144.de106","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: self-serve-process-vnf-mapping-ra-response\"/>\n\n","comments":"","outputs":1,"x":394.17859649658203,"y":1062.607195854187,"z":"cc8da33a.a3512","wires":[[]]},{"id":"54667cf1.053ed4","type":"switchNode","name":"switch resolution-summary_length","xml":"<switch test='`$jsonContextPrefix.resolution-summary_length`'>\n","comments":"","outputs":1,"x":519.4285736083984,"y":274.2857322692871,"z":"cc8da33a.a3512","wires":[["36a8b4bd.a72a1c"]]},{"id":"36a8b4bd.a72a1c","type":"not-found","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":762.2856903076172,"y":273.71431732177734,"z":"cc8da33a.a3512","wires":[["3a0dd12b.637d2e"]]},{"id":"3a0dd12b.637d2e","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=\"resolution-summary is null\" />\n","comments":"","x":935.4285888671875,"y":273.85716247558594,"z":"cc8da33a.a3512","wires":[]},{"id":"45a63cd6.8d9584","type":"comment","name":"vdns-index","info":"","comments":"","x":522.3214340209961,"y":475.1786117553711,"z":"cc8da33a.a3512","wires":[]},{"id":"d89f51f0.383af","type":"comment","name":"param-index","info":"","comments":"","x":1431.0714569091797,"y":474.1786108016968,"z":"cc8da33a.a3512","wires":[]},{"id":"1d850d86.e6c312","type":"set","name":"set tmp.mso.param.found = true","xml":"<set>\n<parameter name='tmp.mso.param.found' value='true' />\n","comments":"","x":2473.0714569091797,"y":547.4286155700684,"z":"cc8da33a.a3512","wires":[]},{"id":"1a4f635d.5cf1ed","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2242.0714569091797,"y":514.4286136627197,"z":"cc8da33a.a3512","wires":[["f2314be8.6e5f98","1d850d86.e6c312"]]},{"id":"be14dceb.d566f","type":"switchNode","name":"switch dictionary-source","xml":"<switch test='`$jsonContextPrefix.resolution-summary[$vdns-index].dictionary-source`'>\n","comments":"","outputs":1,"x":1629.0714416503906,"y":683.9285984039307,"z":"cc8da33a.a3512","wires":[["3354f65c.fa1afa"]]},{"id":"3354f65c.fa1afa","type":"other","name":"sdnc","xml":"<outcome value='sdnc'>\n","comments":"","outputs":1,"x":1834.8214378356934,"y":681.4285984039307,"z":"cc8da33a.a3512","wires":[["4895fd88.d96874"]]},{"id":"55bbac42.e84034","type":"comment","name":"capability","info":"","comments":"","x":1853.5714416503906,"y":645.178596496582,"z":"cc8da33a.a3512","wires":[]},{"id":"4895fd88.d96874","type":"for","name":"for key-identifiers[]","xml":"<for silentFailure='true'  index='kid-index' start='0' end='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers_length`' >\n","comments":"","outputs":1,"x":2026.0714111328125,"y":681.4285888671875,"z":"cc8da33a.a3512","wires":[["7ef33d35.752214"]]},{"id":"7ef33d35.752214","type":"set","name":"set resource-key[] to key-identifiers[] ","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[$kid-index].name' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers[$kid-index].name`'/>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$kid-index].value' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers[$kid-index].value`'/>\n","comments":"","x":2323.8214416503906,"y":681.6785984039307,"z":"cc8da33a.a3512","wires":[]},{"id":"86226715.4e4188","type":"set","name":"set request-payload","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.payload`' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].request-payload`'/>\n\n","comments":"","x":1614.4047546386719,"y":794.7619495391846,"z":"cc8da33a.a3512","wires":[]},{"id":"5ec89dda.1924b4","type":"comment","name":"from RA response","info":"","comments":"","x":553.5714111328125,"y":242.6785888671875,"z":"cc8da33a.a3512","wires":[]},{"id":"c0f71bea.1b3e78","type":"comment","name":"Overwrite MSO input with RA response","info":"","comments":"","x":2043.5714416503906,"y":455.1785945892334,"z":"cc8da33a.a3512","wires":[]},{"id":"ab22106f.33c1c","type":"set","name":"set param[].status and capability-name","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' \n\tvalue='RA Resolved'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' \n\tvalue='`$jsonContextPrefix.payload.resolution-summary[$vdns-index].status`'/>","comments":"","x":1685.6547622680664,"y":849.7619514465332,"z":"cc8da33a.a3512","wires":[]},{"id":"7110110c.690ce","type":"set","name":"set service-data...param_length","xml":"<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' \n\tvalue='`$highnum`'/>\n","comments":"","x":483.39283752441406,"y":1009.464298248291,"z":"cc8da33a.a3512","wires":[]},{"id":"c8a2bad.7897e48","type":"comment","name":"NEW param from RA response","info":"","comments":"","x":1261.0714263916016,"y":563.928596496582,"z":"cc8da33a.a3512","wires":[]},{"id":"2368af4a.13c2e","type":"set","name":"set resource-resolution-data.resource-key_length","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_length' \n\tvalue='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers_length`' />\n","comments":"","x":1718.5712814331055,"y":742.5396614074707,"z":"cc8da33a.a3512","wires":[]}]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vnf-template-ra-response.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-process-vnf-template-ra-response.json
new file mode 100644 (file)
index 0000000..b8fb0aa
--- /dev/null
@@ -0,0 +1 @@
+[{"id":"d6090c0a.e0753","type":"dgstart","name":"DGSTART","outputs":1,"x":121.25,"y":36.25,"z":"82762174.abe83","wires":[["f60513bf.6174"]]},{"id":"f60513bf.6174","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":37.25,"z":"82762174.abe83","wires":[["4f2dd461.63980c"]]},{"id":"4f2dd461.63980c","type":"method","name":"self-serve-process-vnf-template-ra-response","xml":"<method rpc='self-serve-process-vnf-template-ra-response' mode='sync'>\n","comments":"","outputs":1,"x":286.75001525878906,"y":91.00000190734863,"z":"82762174.abe83","wires":[["68932e17.3bb2a"]]},{"id":"68932e17.3bb2a","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":222.7380599975586,"y":171.86904335021973,"z":"82762174.abe83","wires":[["7eee3cd3.adf7b4","f5ede167.749ad","34309b70.de0e04","f9b3050f.731788","20f44d7b.af9632"]]},{"id":"7eee3cd3.adf7b4","type":"for","name":"for resource-accumulator-resolved-data","xml":"<for silentFailure='true'  index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n","comments":"","outputs":1,"x":537.488037109375,"y":385.1547260284424,"z":"82762174.abe83","wires":[["35fae5cb.4f646a"]]},{"id":"25d03886.9ab038","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":1806.4880447387695,"y":450.583288192749,"z":"82762174.abe83","wires":[]},{"id":"f5ede167.749ad","type":"for","name":"for capability-data","xml":"<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n","comments":"","outputs":1,"x":450.3452835083008,"y":694.2975940704346,"z":"82762174.abe83","wires":[["efbc3e4e.04d3c"]]},{"id":"efbc3e4e.04d3c","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":665.3452835083008,"y":694.2975940704346,"z":"82762174.abe83","wires":[["a57b105d.f7006"]]},{"id":"6175b27f.0affac","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":1529.488037109375,"y":384.1547260284424,"z":"82762174.abe83","wires":[["93a274f.c066b88"]]},{"id":"35fae5cb.4f646a","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":816.488037109375,"y":385.1547260284424,"z":"82762174.abe83","wires":[["da5f0602.8b3b18","f02e2566.844538","a137b478.1330d8"]]},{"id":"93a274f.c066b88","type":"switchNode","name":"switch param[].name: service-data vs resolved-data","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":1912.488037109375,"y":384.1547260284424,"z":"82762174.abe83","wires":[["40e6f212.e16f6c"]]},{"id":"40e6f212.e16f6c","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2222.488037109375,"y":384.1547260284424,"z":"82762174.abe83","wires":[["dac5b948.a12f38"]]},{"id":"a5493932.c14388","type":"set","name":"set param[].value = resolved-data","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":2588.488067626953,"y":353.15473079681396,"z":"82762174.abe83","wires":[]},{"id":"a137b478.1330d8","type":"switchNode","name":"switch tmp.mso.param.found","xml":"<switch test='`$tmp.mso.param.found`'>\n","comments":"","outputs":1,"x":1073.488037109375,"y":451.1547260284424,"z":"82762174.abe83","wires":[["809b62f4.2bf5c"]]},{"id":"809b62f4.2bf5c","type":"not-found","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1311.488037109375,"y":451.1547260284424,"z":"82762174.abe83","wires":[["febe6260.562d4"]]},{"id":"da5f0602.8b3b18","type":"set","name":"set tmp.mso.param.found = false","xml":"<set>\n<parameter name='tmp.mso.param.found' value='false' />\n","comments":"","x":1091.238052368164,"y":326.15472984313965,"z":"82762174.abe83","wires":[]},{"id":"f02e2566.844538","type":"switchNode","name":"switch prehighnum > 0","xml":"<switch test='`$prehighnum &gt; 0`'>\n","comments":"","outputs":1,"x":1053.988037109375,"y":385.1547260284424,"z":"82762174.abe83","wires":[["dbaaa27d.ae02d"]]},{"id":"dbaaa27d.ae02d","type":"not-found","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1300.988037109375,"y":385.1547260284424,"z":"82762174.abe83","wires":[["6175b27f.0affac"]]},{"id":"e13da3f1.629a5","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":1790.3452911376953,"y":719.8690757751465,"z":"82762174.abe83","wires":[["14559e90.eaf311"]]},{"id":"55ead4e7.384f7c","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":2168.34521484375,"y":664.8691024780273,"z":"82762174.abe83","wires":[]},{"id":"4f1cdbf8.b5a114","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":1351.7737579345703,"y":622.7261741161346,"z":"82762174.abe83","wires":[]},{"id":"a57b105d.f7006","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":899.3452835083008,"y":694.2975940704346,"z":"82762174.abe83","wires":[["7b366e85.7fe89"]]},{"id":"7b366e85.7fe89","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":1127.3452835083008,"y":694.2975940704346,"z":"82762174.abe83","wires":[["4f1cdbf8.b5a114","aac50216.6c755","f38e7b6a.1ddc28"]]},{"id":"aac50216.6c755","type":"switchNode","name":"switch payload_length = NULL","xml":"<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n","comments":"","outputs":1,"x":1398.7737579345703,"y":693.7261741161346,"z":"82762174.abe83","wires":[["318068dc.0cf5a8","ebfb92ca.67fc3"]]},{"id":"318068dc.0cf5a8","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1632.7023811340332,"y":662.2262372970581,"z":"82762174.abe83","wires":[[]]},{"id":"ebfb92ca.67fc3","type":"other","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1634.3452911376953,"y":719.8690757751465,"z":"82762174.abe83","wires":[["e13da3f1.629a5"]]},{"id":"7c3030e1.6f6ac","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":2147.3452911376953,"y":718.8690757751465,"z":"82762174.abe83","wires":[]},{"id":"a2fb0d7f.3c324","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='num' value='`$num + 1`' />\n","comments":"","x":2173.916675567627,"y":772.8691272735596,"z":"82762174.abe83","wires":[]},{"id":"f38e7b6a.1ddc28","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n\n","comments":"","x":1355.2023696899414,"y":773.4404754638672,"z":"82762174.abe83","wires":[]},{"id":"febe6260.562d4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1488.488037109375,"y":450.1547260284424,"z":"82762174.abe83","wires":[["25d03886.9ab038","a94ea0de.f4e19"]]},{"id":"a94ea0de.f4e19","type":"set","name":"increment length","xml":"<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n","comments":"","x":1708.130844116211,"y":514.2618827819824,"z":"82762174.abe83","wires":[]},{"id":"14559e90.eaf311","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":1965.3452911376953,"y":719.8690757751465,"z":"82762174.abe83","wires":[["55ead4e7.384f7c","7c3030e1.6f6ac","a2fb0d7f.3c324"]]},{"id":"34309b70.de0e04","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: self-serve-process-vnf-template-ra-response\"/>\n\n","comments":"","outputs":1,"x":406.857120513916,"y":947.1428744792938,"z":"82762174.abe83","wires":[[]]},{"id":"f9b3050f.731788","type":"switchNode","name":"switch resource-accumulator-resolved-data_length","xml":"<switch test='`$jsonContextPrefix.resource-accumulator-resolved-data_length`'>\n","comments":"","outputs":1,"x":577.8571166992188,"y":228.5714225769043,"z":"82762174.abe83","wires":[["c36a3cd4.c9a8"]]},{"id":"c36a3cd4.c9a8","type":"not-found","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":886.4285278320312,"y":228.0000114440918,"z":"82762174.abe83","wires":[["f4d1e67.c040818"]]},{"id":"f4d1e67.c040818","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=\"resource-accumulator-resolved-data_length is null\" />\n","comments":"","x":1057.428565979004,"y":228.57142066955566,"z":"82762174.abe83","wires":[]},{"id":"934348f8.f445e8","type":"set","name":"set tmp.mso.param.found = true","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":2586.2500610351562,"y":410.2500162124634,"z":"82762174.abe83","wires":[]},{"id":"dac5b948.a12f38","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2362.500030517578,"y":384.00000762939453,"z":"82762174.abe83","wires":[["a5493932.c14388","934348f8.f445e8"]]},{"id":"b48e8695.9725b8","type":"comment","name":"index=cnt","info":"","comments":"","x":1526.25,"y":342.5,"z":"82762174.abe83","wires":[]},{"id":"42c2c025.4ab71","type":"comment","name":"index=i","info":"","comments":"","x":610,"y":337.5,"z":"82762174.abe83","wires":[]},{"id":"20f44d7b.af9632","type":"set","name":"set service-data...param_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length' \n\tvalue='`$highnum`'/>\n","comments":"","x":496.57144927978516,"y":860.0000114440918,"z":"82762174.abe83","wires":[]}]
\ No newline at end of file
index efe8ee6..bd19efd 100644 (file)
@@ -1,1185 +1 @@
-[
-    {
-        "id": "a497f564.a4f098",
-        "type": "dgstart",
-        "name": "DGSTART",
-        "outputs": 1,
-        "x": 177,
-        "y": 84,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "86c9c962.7342a8"
-            ]
-        ]
-    },
-    {
-        "id": "86c9c962.7342a8",
-        "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": 453,
-        "y": 85,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "d7517e20.9dcd5"
-            ]
-        ]
-    },
-    {
-        "id": "d7517e20.9dcd5",
-        "type": "method",
-        "name": "self-serve-vfmodule-ra-assignment",
-        "xml": "<method rpc='self-serve-vfmodule-ra-assignment' mode='sync'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 804,
-        "y": 85,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "ed8eb912.b3b758"
-            ]
-        ]
-    },
-    {
-        "id": "ed8eb912.b3b758",
-        "type": "block",
-        "name": "block atomic",
-        "xml": "<block atomic=\"true\">\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 189.5,
-        "y": 167,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "aa1b1c80.cc44a",
-                "ad94d45c.b42738",
-                "be3cc63c.1364a8",
-                "d22ed1cc.a3d2",
-                "3b2d4411.81821c",
-                "e9f32b69.e2f1b8",
-                "d975d3e7.41559",
-                "2129120f.4c214e",
-                "c3a30796.aceda8",
-                "9175398d.c04fa8",
-                "11b406c0.22da09",
-                "bbab380e.910a58",
-                "8e0f6b.25999098",
-                "873ccf3b.1d408",
-                "5989d23c.c4816c",
-                "f15b2532.ed6cd8"
-            ]
-        ]
-    },
-    {
-        "id": "ad94d45c.b42738",
-        "type": "set",
-        "name": "set",
-        "xml": "<set>\n   <parameter name=\"cds\" value=\"execution-service_process.\"/>\n   <parameter name=\"`$cds + 'commonHeader.requestId'`\" 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=\"`$cds + 'commonHeader.subRequestId'`\" value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" />   \n   <parameter name=\"`$cds + 'actionIdentifiers.actionName'`\" value=\"resource-assignment\"/> \n   <parameter name=\"responsePrefix\" value=\"raAssign\" />\n   <parameter name=\"`$cds + 'isNonAppend'`\" value=\"true\"/>\n   <parameter name=\"`$cds + 'commonHeader.originatorId'`\" value=\"SDNC_DG\"/>\n   <parameter name=\"`$cds + 'actionIdentifiers.mode'`\" value=\"sync\"/>\n",
-        "comments": "",
-        "x": 370,
-        "y": 220,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "64e2173c.958b58",
-        "type": "outcome",
-        "name": "true",
-        "xml": "<outcome value='true'>",
-        "comments": "",
-        "outputs": 1,
-        "x": 650.2142486572266,
-        "y": 565.4642963409424,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "545277b4.e0bb38"
-            ]
-        ]
-    },
-    {
-        "id": "d22ed1cc.a3d2",
-        "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": 473.71431732177734,
-        "y": 430.7143135070801,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "4bf3e8f8.745bd8"
-            ]
-        ]
-    },
-    {
-        "id": "70a829fa.30fea8",
-        "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": 1220.428565979004,
-        "y": 363.1428813934326,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "3153b11f.bf66de",
-        "type": "outcome",
-        "name": "sdnc_model_name",
-        "xml": "<outcome value='sdnc_model_name'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 966.4285659790039,
-        "y": 363.1428813934326,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "70a829fa.30fea8"
-            ]
-        ]
-    },
-    {
-        "id": "4bf3e8f8.745bd8",
-        "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": 728.4285659790039,
-        "y": 430.1428813934326,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "3153b11f.bf66de",
-                "2f8525ae.fd272a",
-                "49db862e.217b58",
-                "ba2667e.2988e98"
-            ]
-        ]
-    },
-    {
-        "id": "2f8525ae.fd272a",
-        "type": "outcome",
-        "name": "sdnc_model_version",
-        "xml": "<outcome value='sdnc_model_version'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 969.4285659790039,
-        "y": 409.1428813934326,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "1585d1d8.a9e64e"
-            ]
-        ]
-    },
-    {
-        "id": "49db862e.217b58",
-        "type": "outcome",
-        "name": "vf_module_label",
-        "xml": "<outcome value='vf_module_label'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 954.4285659790039,
-        "y": 458.1428813934326,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "4fdf7f0e.99111"
-            ]
-        ]
-    },
-    {
-        "id": "1585d1d8.a9e64e",
-        "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": 1224.428565979004,
-        "y": 409.1428813934326,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "4fdf7f0e.99111",
-        "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": 1206.428565979004,
-        "y": 458.1428813934326,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "99a874b2.f5f858",
-        "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 + '&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name + '&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value + '&quot;,'`\"/>\n\n",
-        "comments": "",
-        "x": 1224.428565979004,
-        "y": 509.1428813934326,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "ba2667e.2988e98",
-        "type": "outcome",
-        "name": "other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 926.4285659790039,
-        "y": 509.1428813934326,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "99a874b2.f5f858"
-            ]
-        ]
-    },
-    {
-        "id": "3b2d4411.81821c",
-        "type": "set",
-        "name": "set configAssignment JsonString",
-        "xml": "<set>\n<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '&quot;service-instance-id&quot;:&quot;' + $vf-module-topology-operation-input.service-information.service-instance-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '&quot;vnf-id&quot;:&quot;' + $vf-module-topology-operation-input.vnf-information.vnf-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '&quot;vf-module-model-customization-uuid&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '&quot;vnf-model-customization-uuid&quot;:&quot;' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload8\" value=\"`$tmp.config-name-value-payload7 + '&quot;vf-module-id&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload9\" value=\"`$tmp.config-name-value-payload8 + '&quot;aic-cloud-region&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region + '&quot;'`\"/>",
-        "comments": "",
-        "x": 450,
-        "y": 660,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "e9f32b69.e2f1b8",
-        "type": "execute",
-        "name": "execute BlueprintProcessingClient",
-        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value=\"`$prop.cds.url + '/api/v1/execution-service/process'`\" />\n    <parameter name='restapiUser' value='`$prop.cds.user`' />\n    <parameter name='restapiPassword' value='`$prop.cds.pwd`' />\n    <parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name=\"responsePrefix\" value=\"`$responsePrefix`\" />",
-        "comments": "",
-        "outputs": 1,
-        "x": 459.33331298828125,
-        "y": 900,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "110f9145.d77fff",
-                "356e5968.733e76"
-            ]
-        ]
-    },
-    {
-        "id": "110f9145.d77fff",
-        "type": "failure",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 683.3333129882812,
-        "y": 866,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "48054045.e69da"
-            ]
-        ]
-    },
-    {
-        "id": "48054045.e69da",
-        "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": 881.3333129882812,
-        "y": 866,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "2129120f.4c214e",
-        "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": 492.00001525878906,
-        "y": 1168.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "cb710ae6.5a4038"
-            ]
-        ]
-    },
-    {
-        "id": "9c282888.202138",
-        "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": 1706.000015258789,
-        "y": 1219.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "c3a30796.aceda8",
-        "type": "for",
-        "name": "for capability-data",
-        "xml": "<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 411.00001525878906,
-        "y": 1431.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "74b1206d.0fed1"
-            ]
-        ]
-    },
-    {
-        "id": "74b1206d.0fed1",
-        "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": 634.0000152587891,
-        "y": 1431.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "acaea466.cd4ab8"
-            ]
-        ]
-    },
-    {
-        "id": "d975d3e7.41559",
-        "type": "execute",
-        "name": "execute jsonStringToCtx",
-        "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'raAssign.payload.resource-assignment-response.meshed-template.' + $tmp.vf-module-label`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 436.00001525878906,
-        "y": 1089.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "aa1b1c80.cc44a",
-        "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": 419,
-        "y": 167,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "322955c2.67bfda"
-            ]
-        ]
-    },
-    {
-        "id": "322955c2.67bfda",
-        "type": "failure",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 624,
-        "y": 167,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "eedef31.1f0501"
-            ]
-        ]
-    },
-    {
-        "id": "eedef31.1f0501",
-        "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": 788,
-        "y": 166,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "ee67402d.5d28e",
-        "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": 1465.000015258789,
-        "y": 1168.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "7f19057e.59cacc"
-            ]
-        ]
-    },
-    {
-        "id": "cb710ae6.5a4038",
-        "type": "block",
-        "name": "block atomic",
-        "xml": "<block atomic=\"true\">",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 771.0000152587891,
-        "y": 1169.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "e2f0cba4.654da8",
-                "bd5d211c.f590f",
-                "69e4eac9.bfa664"
-            ]
-        ]
-    },
-    {
-        "id": "be3cc63c.1364a8",
-        "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": 491,
-        "y": 268,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "dcf68c0.5595078",
-                "212315d0.254f0a"
-            ]
-        ]
-    },
-    {
-        "id": "dcf68c0.5595078",
-        "type": "outcome",
-        "name": "null",
-        "xml": "<outcome value=''>",
-        "comments": "",
-        "outputs": 1,
-        "x": 754.1428833007812,
-        "y": 235.85715293884277,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "2fd156a6.7f84aa"
-            ]
-        ]
-    },
-    {
-        "id": "212315d0.254f0a",
-        "type": "other",
-        "name": "other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 753.1428833007812,
-        "y": 299.8571529388428,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "704076e8.db1178"
-            ]
-        ]
-    },
-    {
-        "id": "2fd156a6.7f84aa",
-        "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": 967.1428833007812,
-        "y": 235.85715293884277,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "704076e8.db1178",
-        "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": 952.1428833007812,
-        "y": 299.8571529388428,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "7f19057e.59cacc",
-        "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": 1723.000015258789,
-        "y": 1168.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "249e69e0.c58706"
-            ]
-        ]
-    },
-    {
-        "id": "249e69e0.c58706",
-        "type": "not-found",
-        "name": "true",
-        "xml": "<outcome value='true'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1903.000015258789,
-        "y": 1168.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "ed76b6f6.2b9568"
-            ]
-        ]
-    },
-    {
-        "id": "ed76b6f6.2b9568",
-        "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": 2113.000015258789,
-        "y": 1169.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "69e4eac9.bfa664",
-        "type": "switchNode",
-        "name": "switch tmp.mso.param.not-found",
-        "xml": "<switch test='`$tmp.mso.param.found`'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1013.0000152587891,
-        "y": 1221.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "9a1a87b5.132028"
-            ]
-        ]
-    },
-    {
-        "id": "9a1a87b5.132028",
-        "type": "not-found",
-        "name": "false",
-        "xml": "<outcome value='false'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1247.000015258789,
-        "y": 1220.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "60cb391a.7088d8"
-            ]
-        ]
-    },
-    {
-        "id": "e2f0cba4.654da8",
-        "type": "set",
-        "name": "set for existing param name",
-        "xml": "<set>\n<parameter name='tmp.mso.param.found' value='false' />\n",
-        "comments": "",
-        "x": 997.0000152587891,
-        "y": 1110.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "bd5d211c.f590f",
-        "type": "switchNode",
-        "name": "switch check length > 0",
-        "xml": "<switch test='`$prehighnum &gt; 0`'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 989.5000152587891,
-        "y": 1169.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "a9041b72.5fd4e8"
-            ]
-        ]
-    },
-    {
-        "id": "a9041b72.5fd4e8",
-        "type": "not-found",
-        "name": "true",
-        "xml": "<outcome value='true'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1236.500015258789,
-        "y": 1169.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "ee67402d.5d28e"
-            ]
-        ]
-    },
-    {
-        "id": "a8fb4875.424878",
-        "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": 1683.000015258789,
-        "y": 1483.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "d1581b7a.307818"
-            ]
-        ]
-    },
-    {
-        "id": "c34d628a.5ba25",
-        "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": 2082.000015258789,
-        "y": 1424.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "8aa1345a.8ddd28",
-        "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": 1261.000015258789,
-        "y": 1385.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "acaea466.cd4ab8",
-        "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": 869.0000152587891,
-        "y": 1432.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "44eeef6b.763aa"
-            ]
-        ]
-    },
-    {
-        "id": "44eeef6b.763aa",
-        "type": "block",
-        "name": "block atomic",
-        "xml": "<block atomic=\"true\">",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 1064.000015258789,
-        "y": 1431.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "8aa1345a.8ddd28",
-                "859dcf36.75878",
-                "7a25862.9293b78",
-                "cf8679e9.4fafd8"
-            ]
-        ]
-    },
-    {
-        "id": "7a25862.9293b78",
-        "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": 1260.000015258789,
-        "y": 1483.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "356e5968.733e76",
-        "type": "failure",
-        "name": "not-found",
-        "xml": "<outcome value='not-found'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 688.3333129882812,
-        "y": 928,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "48054045.e69da"
-            ]
-        ]
-    },
-    {
-        "id": "859dcf36.75878",
-        "type": "switchNode",
-        "name": "switch payload_length",
-        "xml": "<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1290.000015258789,
-        "y": 1432.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "4c86e71b.d68c88",
-                "24678540.a0541a"
-            ]
-        ]
-    },
-    {
-        "id": "4c86e71b.d68c88",
-        "type": "outcome",
-        "name": "true",
-        "xml": "<outcome value='true'>",
-        "comments": "",
-        "outputs": 1,
-        "x": 1505.000015258789,
-        "y": 1364.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "24678540.a0541a",
-        "type": "other",
-        "name": "false",
-        "xml": "<outcome value='false'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1514.000015258789,
-        "y": 1483.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "a8fb4875.424878"
-            ]
-        ]
-    },
-    {
-        "id": "9175398d.c04fa8",
-        "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": 438.78570556640625,
-        "y": 565.6071863174438,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "64e2173c.958b58"
-            ]
-        ]
-    },
-    {
-        "id": "d294acc7.bd931",
-        "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": 1116.9285354614258,
-        "y": 566.464297413826,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "10c023aa.5d4fbc",
-                "dedcf4a6.d6ca18",
-                "2f6f6c84.413364"
-            ]
-        ]
-    },
-    {
-        "id": "10c023aa.5d4fbc",
-        "type": "failure",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1360.1427536010742,
-        "y": 566.8451566696167,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "2b521b7.20a39e4"
-            ]
-        ]
-    },
-    {
-        "id": "2b521b7.20a39e4",
-        "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": 1541.142734527588,
-        "y": 566.9880638122559,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "64e226e0.1a2c48",
-        "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": 1138.380874633789,
-        "y": 695.3095798492432,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "8ea00362.3b8f7",
-                "cf82827d.c0abe",
-                "78e0a6e.6498258"
-            ]
-        ]
-    },
-    {
-        "id": "8ea00362.3b8f7",
-        "type": "failure",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1417.1664581298828,
-        "y": 695.6904038190842,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "9c3a2915.d4bae8"
-            ]
-        ]
-    },
-    {
-        "id": "9c3a2915.d4bae8",
-        "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": 1592.166389465332,
-        "y": 695.8333042860031,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "cf82827d.c0abe",
-        "type": "success",
-        "name": "success",
-        "xml": "<outcome value='success'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1427.3808822631836,
-        "y": 775.095287322998,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "726ff5db.17542c"
-            ]
-        ]
-    },
-    {
-        "id": "545277b4.e0bb38",
-        "type": "block",
-        "name": "block : atomic",
-        "xml": "<block atomic=\"true\">",
-        "atomic": "true",
-        "outputs": 1,
-        "x": 825.7380294799805,
-        "y": 565.8452922105789,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "d294acc7.bd931",
-                "64e226e0.1a2c48"
-            ]
-        ]
-    },
-    {
-        "id": "7bffb405.6623ac",
-        "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": 1639.42866897583,
-        "y": 646.964334487915,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "dedcf4a6.d6ca18",
-        "type": "success",
-        "name": "success",
-        "xml": "<outcome value='success'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1368.0001411437988,
-        "y": 647.2500095367432,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "7bffb405.6623ac"
-            ]
-        ]
-    },
-    {
-        "id": "726ff5db.17542c",
-        "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": 1631.821434020996,
-        "y": 776.6786003112793,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "d1581b7a.307818",
-        "type": "block",
-        "name": "block : atomic",
-        "xml": "<block atomic='true'>",
-        "atomic": "true",
-        "comments": "",
-        "outputs": 1,
-        "x": 1860.000015258789,
-        "y": 1482.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "c34d628a.5ba25",
-                "c56e214a.a3f38",
-                "57886653.e3ab98"
-            ]
-        ]
-    },
-    {
-        "id": "c56e214a.a3f38",
-        "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": 2071.000015258789,
-        "y": 1482.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "2f6f6c84.413364",
-        "type": "not-found",
-        "name": "not-found",
-        "xml": "<outcome value='not-found'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1370.7500190734863,
-        "y": 606.5000076293945,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "6ec44df1.26ebd4"
-            ]
-        ]
-    },
-    {
-        "id": "6ec44df1.26ebd4",
-        "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": 1542.0000228881836,
-        "y": 605.2500085830688,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "78e0a6e.6498258",
-        "type": "not-found",
-        "name": "not-found",
-        "xml": "<outcome value='not-found'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1428.25,
-        "y": 736.5,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "b55099bd.544558"
-            ]
-        ]
-    },
-    {
-        "id": "b55099bd.544558",
-        "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": 1599.5000038146973,
-        "y": 735.2500009536743,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "57886653.e3ab98",
-        "type": "set",
-        "name": "increment length",
-        "xml": "<set>\n\t<parameter name='num' value='`$num + 1`' />\n",
-        "comments": "",
-        "x": 2084.000015258789,
-        "y": 1548.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "cf8679e9.4fafd8",
-        "type": "set",
-        "name": "increment length",
-        "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n",
-        "comments": "",
-        "x": 1277.000015258789,
-        "y": 1554.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "a939f9eb.ae83b8",
-        "type": "set",
-        "name": "increment length",
-        "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n",
-        "comments": "",
-        "x": 1624.000015258789,
-        "y": 1279.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "60cb391a.7088d8",
-        "type": "block",
-        "name": "block : atomic",
-        "xml": "<block atomic='true'>",
-        "atomic": "true",
-        "comments": "",
-        "outputs": 1,
-        "x": 1418.000015258789,
-        "y": 1219.3333473205566,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            [
-                "9c282888.202138",
-                "a939f9eb.ae83b8"
-            ]
-        ]
-    },
-    {
-        "id": "11b406c0.22da09",
-        "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 BlueprintProcessingClient\"/>\n\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 370,
-        "y": 820,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "bbab380e.910a58",
-        "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 BlueprintProcessingClient\"/>\n\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 380.3333282470703,
-        "y": 984.000018119812,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "873ccf3b.1d408",
-        "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": 393.25,
-        "y": 1706.5000133514404,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "8e0f6b.25999098",
-        "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": 399.5,
-        "y": 1654.0000114440918,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    },
-    {
-        "id": "5989d23c.c4816c",
-        "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": 378.00000381469727,
-        "y": 1605.2500190734863,
-        "z": "2e17456e.1fa78a",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "f15b2532.ed6cd8",
-        "type": "set",
-        "name": "set updateJsonPayload",
-        "xml": "<set>\n\t<parameter name=\"tmp.json-payload\" value=\"`'{' + $tmp.config-name-value-payload9 + '}'`\" />\n    <parameter name=\"`$cds + 'actionIdentifiers.blueprintName'`\" value='`$tmp.sdnc-model-name`' />\n    <parameter name=\"`$cds + 'actionIdentifiers.blueprintVersion'`\" value='`$tmp.sdnc-model-version`' />\n    <parameter name=\"`$cds + 'payload.resource-assignment-request.template-prefix[0]'`\" value='`$tmp.vf-module-label`' />\n    <parameter name=\"`$cds + 'payload.resource-assignment-request.resource-assignment-properties'`\" value='`$tmp.json-payload`' />",
-        "comments": "",
-        "x": 421,
-        "y": 740,
-        "z": "2e17456e.1fa78a",
-        "wires": []
-    }
-]
+[{"id":"4dffc60d.5bd808","type":"dgstart","name":"DGSTART","outputs":1,"x":141.42858123779297,"y":65.71432209014893,"z":"f6902f40.5e19","wires":[["91c8160.4dcc1e8"]]},{"id":"91c8160.4dcc1e8","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":417.42858123779297,"y":66.71432209014893,"z":"f6902f40.5e19","wires":[["14bf1d36.3d8cf3"]]},{"id":"14bf1d36.3d8cf3","type":"method","name":"self-serve-vfmodule-ra-assignment","xml":"<method rpc='self-serve-vfmodule-ra-assignment' mode='sync'>\n","comments":"","outputs":1,"x":768.428581237793,"y":66.71432209014893,"z":"f6902f40.5e19","wires":[["39968a5c.ccc976"]]},{"id":"39968a5c.ccc976","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":153.92858123779297,"y":148.71432209014893,"z":"f6902f40.5e19","wires":[["7254b5cc.b6e2cc","1459f827.386618","82877888.a7fc38","9a591dc8.409ea","91c376dc.43b9f8","6fdb941c.28348c","e0d9e606.a1f3b8","a7fb3dc8.82b7b","2433b69e.9dac5a","421c7868.35b668","5a748f0d.33a49","1ffabdff.2624f2","247751ca.46435e","ca7fe006.4ef63","d2ce5f51.17499"]]},{"id":"1459f827.386618","type":"set","name":"set","xml":"<set>\n   <parameter name=\"cds\" value=\"execution-service_process.\"/>\n   <parameter name=\"`$cds + 'commonHeader.requestId'`\" 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=\"`$cds + 'commonHeader.subRequestId'`\" value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" />   \n   <parameter name=\"`$cds + 'actionIdentifiers.actionName'`\" value=\"resource-assignment\"/> \n   <parameter name=\"responsePrefix\" value=\"raAssign\" />\n   <parameter name=\"`$cds + 'isNonAppend'`\" value=\"true\"/>\n   <parameter name=\"`$cds + 'commonHeader.originatorId'`\" value=\"SDNC_DG\"/>\n   <parameter name=\"`$cds + 'actionIdentifiers.mode'`\" value=\"sync\"/>\n","comments":"","x":348.7142639160156,"y":214.57146644592285,"z":"f6902f40.5e19","wires":[]},{"id":"d601ca0a.4083b8","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":643.2142333984375,"y":761.4642413854599,"z":"f6902f40.5e19","wires":[["427cc999.3bd468"]]},{"id":"9a591dc8.409ea","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":466.7143859863281,"y":458.14292430877686,"z":"f6902f40.5e19","wires":[["dfdf3542.d43a68"]]},{"id":"cf936a79.960488","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":1213.4286346435547,"y":390.5714921951294,"z":"f6902f40.5e19","wires":[]},{"id":"163793cb.859cfc","type":"outcome","name":"sdnc_model_name","xml":"<outcome value='sdnc_model_name'>\n","comments":"","outputs":1,"x":959.4286346435547,"y":390.5714921951294,"z":"f6902f40.5e19","wires":[["cf936a79.960488"]]},{"id":"dfdf3542.d43a68","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":721.4286346435547,"y":457.5714921951294,"z":"f6902f40.5e19","wires":[["163793cb.859cfc","b400f633.2e5378","da04e9fd.4674f8","177a5191.74c57e"]]},{"id":"b400f633.2e5378","type":"outcome","name":"sdnc_model_version","xml":"<outcome value='sdnc_model_version'>\n","comments":"","outputs":1,"x":962.4286346435547,"y":436.5714921951294,"z":"f6902f40.5e19","wires":[["7ebb83ae.d475ac"]]},{"id":"da04e9fd.4674f8","type":"outcome","name":"vf_module_label","xml":"<outcome value='vf_module_label'>\n","comments":"","outputs":1,"x":947.4286346435547,"y":485.5714921951294,"z":"f6902f40.5e19","wires":[["12118326.66feed"]]},{"id":"7ebb83ae.d475ac","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":1217.4286346435547,"y":436.5714921951294,"z":"f6902f40.5e19","wires":[]},{"id":"12118326.66feed","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":1199.4286346435547,"y":485.5714921951294,"z":"f6902f40.5e19","wires":[]},{"id":"efbc62cb.48e09","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 + '&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name + '&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value + '&quot;,'`\"/>\n\n","comments":"","x":1217.4286346435547,"y":536.5714921951294,"z":"f6902f40.5e19","wires":[]},{"id":"177a5191.74c57e","type":"outcome","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":919.4286346435547,"y":536.5714921951294,"z":"f6902f40.5e19","wires":[["efbc62cb.48e09"]]},{"id":"91c376dc.43b9f8","type":"set","name":"set configAssignment JsonString","xml":"<set>\n<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '&quot;service-instance-id&quot;:&quot;' + $vf-module-topology-operation-input.service-information.service-instance-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '&quot;vnf-id&quot;:&quot;' + $vf-module-topology-operation-input.vnf-information.vnf-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '&quot;vf-module-model-customization-uuid&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '&quot;vnf-model-customization-uuid&quot;:&quot;' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload8\" value=\"`$tmp.config-name-value-payload7 + '&quot;vf-module-id&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload9\" value=\"`$tmp.config-name-value-payload8 + '&quot;aic-cloud-region&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region + '&quot;'`\"/>","comments":"","x":443.00003814697266,"y":973.7143392562866,"z":"f6902f40.5e19","wires":[]},{"id":"6fdb941c.28348c","type":"execute","name":"execute BlueprintProcessingClient","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value=\"`$prop.cds.url + '/api/v1/execution-service/process'`\" />\n    <parameter name='restapiUser' value='`$prop.cds.user`' />\n    <parameter name='restapiPassword' value='`$prop.cds.pwd`' />\n    <parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name=\"responsePrefix\" value=\"`$responsePrefix`\" />","comments":"","outputs":1,"x":445.1904296875,"y":1143.7142820358276,"z":"f6902f40.5e19","wires":[["594be503.f419ac","3419422c.24830e"]]},{"id":"594be503.f419ac","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":687.7618255615234,"y":1112.571475982666,"z":"f6902f40.5e19","wires":[["8edb7744.b6b238"]]},{"id":"8edb7744.b6b238","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":861.4760818481445,"y":1141.1429405212402,"z":"f6902f40.5e19","wires":[]},{"id":"e0d9e606.a1f3b8","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'raAssign.payload.resource-assignment-response.meshed-template.' + $tmp.vf-module-label`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":406.1428985595703,"y":1297.3333320617676,"z":"f6902f40.5e19","wires":[[]]},{"id":"7254b5cc.b6e2cc","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":403.4285659790039,"y":149.14289474487305,"z":"f6902f40.5e19","wires":[["e24c189a.46feb8"]]},{"id":"e24c189a.46feb8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":608.4285659790039,"y":149.14289474487305,"z":"f6902f40.5e19","wires":[["39ad9c69.bcd344"]]},{"id":"39ad9c69.bcd344","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":772.4285659790039,"y":149.14289474487305,"z":"f6902f40.5e19","wires":[]},{"id":"82877888.a7fc38","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":472.5714340209961,"y":294.00005435943604,"z":"f6902f40.5e19","wires":[["98f386c5.e8bba8","c4516b65.17aaa8"]]},{"id":"98f386c5.e8bba8","type":"outcome","name":"null","xml":"<outcome value=''>","comments":"","outputs":1,"x":735.7143173217773,"y":261.8572072982788,"z":"f6902f40.5e19","wires":[["e77b3d83.fde56"]]},{"id":"c4516b65.17aaa8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":734.7143173217773,"y":325.8572072982788,"z":"f6902f40.5e19","wires":[["3a943829.dea268"]]},{"id":"e77b3d83.fde56","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":948.7143173217773,"y":261.8572072982788,"z":"f6902f40.5e19","wires":[]},{"id":"3a943829.dea268","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":933.7143173217773,"y":325.8572072982788,"z":"f6902f40.5e19","wires":[]},{"id":"3419422c.24830e","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":692.7618255615234,"y":1174.571475982666,"z":"f6902f40.5e19","wires":[["8edb7744.b6b238"]]},{"id":"a7fb3dc8.82b7b","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":431.7856903076172,"y":761.6071313619614,"z":"f6902f40.5e19","wires":[["d601ca0a.4083b8"]]},{"id":"5ac8e4a2.4d4cdc","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":1115.6427459716797,"y":673.8927841186523,"z":"f6902f40.5e19","wires":[["ab0217f0.3c09f8","d436a8eb.310f58","54a1f6ba.ddb6e8"]]},{"id":"ab0217f0.3c09f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1357.999885559082,"y":623.416501045227,"z":"f6902f40.5e19","wires":[["8de303f.6eea6"]]},{"id":"8de303f.6eea6","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":1538.9998664855957,"y":623.5594081878662,"z":"f6902f40.5e19","wires":[]},{"id":"3aadcdf.ea01932","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":1137.0950012207031,"y":847.0239028334618,"z":"f6902f40.5e19","wires":[["2f50f1a3.c9e7be","226785b2.b6bb5a","bc50ef9a.ee4a9"]]},{"id":"2f50f1a3.c9e7be","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1418.7377166748047,"y":794.1189783215523,"z":"f6902f40.5e19","wires":[["999b5358.3c004"]]},{"id":"999b5358.3c004","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":1593.737648010254,"y":794.2618787884712,"z":"f6902f40.5e19","wires":[]},{"id":"226785b2.b6bb5a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1428.9521751403809,"y":896.3810014128685,"z":"f6902f40.5e19","wires":[["596dce00.574df4"]]},{"id":"427cc999.3bd468","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":818.7380142211914,"y":761.8452372550964,"z":"f6902f40.5e19","wires":[["5ac8e4a2.4d4cdc","3aadcdf.ea01932"]]},{"id":"79398b4d.f2cf44","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":1639.571548461914,"y":721.5356760025024,"z":"f6902f40.5e19","wires":[]},{"id":"d436a8eb.310f58","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1366.1430206298828,"y":721.8213510513306,"z":"f6902f40.5e19","wires":[["79398b4d.f2cf44"]]},{"id":"596dce00.574df4","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":1622.3927268981934,"y":895.9643144011497,"z":"f6902f40.5e19","wires":[]},{"id":"54a1f6ba.ddb6e8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1370.8929252624512,"y":673.928524017334,"z":"f6902f40.5e19","wires":[["de68ea72.16eda8"]]},{"id":"de68ea72.16eda8","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":1542.1429290771484,"y":673.6785249710083,"z":"f6902f40.5e19","wires":[]},{"id":"bc50ef9a.ee4a9","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1429.8212661743164,"y":845.928583085537,"z":"f6902f40.5e19","wires":[["6713d4f5.791f4c"]]},{"id":"6713d4f5.791f4c","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":1601.0712699890137,"y":845.6785840392113,"z":"f6902f40.5e19","wires":[]},{"id":"2433b69e.9dac5a","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 BlueprintProcessingClient\"/>\n\n","comments":"","outputs":1,"x":351.5714530944824,"y":1077.999945640564,"z":"f6902f40.5e19","wires":[[]]},{"id":"421c7868.35b668","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 BlueprintProcessingClient\"/>\n\n","comments":"","outputs":1,"x":347.6190185546875,"y":1234.8571891784668,"z":"f6902f40.5e19","wires":[[]]},{"id":"1ffabdff.2624f2","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":364.8214416503906,"y":1608.2144298553467,"z":"f6902f40.5e19","wires":[[]]},{"id":"5a748f0d.33a49","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":366.78575897216797,"y":1541.4286289215088,"z":"f6902f40.5e19","wires":[]},{"id":"247751ca.46435e","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":342.42859649658203,"y":1474.1070833206177,"z":"f6902f40.5e19","wires":[[]]},{"id":"ca7fe006.4ef63","type":"set","name":"set updateJsonPayload","xml":"<set>\n\t<parameter name=\"tmp.json-payload\" value=\"`'{' + $tmp.config-name-value-payload9 + '}'`\" />\n    <parameter name=\"`$cds + 'actionIdentifiers.blueprintName'`\" value='`$tmp.sdnc-model-name`' />\n    <parameter name=\"`$cds + 'actionIdentifiers.blueprintVersion'`\" value='`$tmp.sdnc-model-version`' />\n    <parameter name=\"`$cds + 'payload.resource-assignment-request.template-prefix[0]'`\" value='`$tmp.vf-module-label`' />\n    <parameter name=\"`$cds + 'payload.resource-assignment-request.resource-assignment-properties'`\" value='`$tmp.json-payload`' />","comments":"","x":409.7143096923828,"y":1029.4286937713623,"z":"f6902f40.5e19","wires":[]},{"id":"d2ce5f51.17499","type":"switchNode","name":"switch: jsonContextPrefix.resource-accumulator-resolved-data_length","xml":"<switch test=\"`$jsonContextPrefix.resource-accumulator-resolved-data_length`\">\n","comments":"","outputs":1,"x":564.2857055664062,"y":1372.8572034835815,"z":"f6902f40.5e19","wires":[["e5c38409.014558","6a1d4cbd.e5e004"]]},{"id":"e5c38409.014558","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":932.0634460449219,"y":1348.4127197265625,"z":"f6902f40.5e19","wires":[["1798f3ad.219efc"]]},{"id":"4a6d4db3.b62444","type":"call","name":"Call self-serve-process-vfmodule-template-ra-response","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-process-vfmodule-template-ra-response' mode='sync' >\n","comments":"","outputs":1,"x":1241.063461303711,"y":1402.3015422821045,"z":"f6902f40.5e19","wires":[[]]},{"id":"1798f3ad.219efc","type":"call","name":"Call self-serve-process-vfmodule-mapping-ra-response","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-process-vfmodule-mapping-ra-response' mode='sync' >\n","comments":"","outputs":1,"x":1241.3968353271484,"y":1348.4127445220947,"z":"f6902f40.5e19","wires":[[]]},{"id":"6a1d4cbd.e5e004","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":931.0634307861328,"y":1401.7461185455322,"z":"f6902f40.5e19","wires":[["4a6d4db3.b62444"]]}]
\ No newline at end of file
index 61c880f..abca12d 100644 (file)
@@ -1,1086 +1 @@
-[
-    {
-        "id": "1e918461.063a3c",
-        "type": "dgstart",
-        "name": "DGSTART",
-        "outputs": 1,
-        "x": 125,
-        "y": 42,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "7b65fd49.93ba14"
-            ]
-        ]
-    },
-    {
-        "id": "7b65fd49.93ba14",
-        "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": 401,
-        "y": 43,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "96f203b4.cb4d1"
-            ]
-        ]
-    },
-    {
-        "id": "96f203b4.cb4d1",
-        "type": "method",
-        "name": "self-serve-vnf-ra-assignment",
-        "xml": "<method rpc='self-serve-vnf-ra-assignment' mode='sync'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 718,
-        "y": 43,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "38f3f9c9.28a466"
-            ]
-        ]
-    },
-    {
-        "id": "38f3f9c9.28a466",
-        "type": "block",
-        "name": "block atomic",
-        "xml": "<block atomic=\"true\">\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 214.16664123535156,
-        "y": 123.33333396911621,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "5a42798d.9a03d8",
-                "94e52d4.07895d",
-                "f709c437.029758",
-                "ef8d7a.8b1ad288",
-                "bdb13e3c.e9de2",
-                "dd0c4879.786768",
-                "654c303d.bc966",
-                "41ae2337.afe27c",
-                "8e50b155.95aaa",
-                "4b3da748.094068",
-                "72e48172.d53ce",
-                "4471abbd.a27dc4",
-                "40bf0919.577208",
-                "fa837cb4.36bad",
-                "c9addd0a.302f8",
-                "d351ac36.10e8b"
-            ]
-        ]
-    },
-    {
-        "id": "94e52d4.07895d",
-        "type": "set",
-        "name": "set",
-        "xml": "<set>\n   <parameter name=\"cds\" value=\"execution-service_process.\"/>\n   <parameter name=\"`$cds + 'commonHeader.requestId'`\" 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=\"`$cds + 'commonHeader.subRequestId'`\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />   \n   <parameter name=\"`$cds + 'actionIdentifiers.actionName'`\" value=\"resource-assignment\"/> \n   <parameter name=\"responsePrefix\" value=\"raAssign\" />\n   <parameter name=\"`$cds + 'isNonAppend'`\" value=\"true\"/>\n   <parameter name=\"`$cds + 'commonHeader.originatorId'`\" value=\"SDNC_DG\"/>\n   <parameter name=\"`$cds + 'actionIdentifiers.mode'`\" value=\"sync\"/>\n",
-        "comments": "",
-        "x": 399.9166603088379,
-        "y": 168.08333015441895,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "1f52d973.dc6427",
-        "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": 938.8094635009766,
-        "y": 559.6189861297607,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "ef8bd7bf.770928",
-                "785d91f7.04973",
-                "7c972f3e.f0f83"
-            ]
-        ]
-    },
-    {
-        "id": "ef8bd7bf.770928",
-        "type": "failure",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1183.8095626831055,
-        "y": 508.904709815979,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "a279ec52.aab4c"
-            ]
-        ]
-    },
-    {
-        "id": "a279ec52.aab4c",
-        "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": 1356.8095626831055,
-        "y": 507.904709815979,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "a6be3be4.1bdc08",
-        "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": 1559.2380638122559,
-        "y": 609.047513961792,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "46a2ef10.633e8",
-        "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": 1358.8095626831055,
-        "y": 556.904709815979,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "bdb13e3c.e9de2",
-        "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": 459.80946350097656,
-        "y": 560.6189861297607,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "25045ee0.e3d5c2"
-            ]
-        ]
-    },
-    {
-        "id": "785d91f7.04973",
-        "type": "not-found",
-        "name": "not-found",
-        "xml": "<outcome value='not-found'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1189.8095626831055,
-        "y": 557.904709815979,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "46a2ef10.633e8"
-            ]
-        ]
-    },
-    {
-        "id": "25045ee0.e3d5c2",
-        "type": "outcome",
-        "name": "true",
-        "xml": "<outcome value='true'>",
-        "comments": "",
-        "outputs": 1,
-        "x": 708.8094635009766,
-        "y": 560.6189861297607,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "1f52d973.dc6427"
-            ]
-        ]
-    },
-    {
-        "id": "ef8d7a.8b1ad288",
-        "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": 475.66664123535156,
-        "y": 360.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "51f6fdb.4dce504"
-            ]
-        ]
-    },
-    {
-        "id": "51f6fdb.4dce504",
-        "type": "block",
-        "name": "block atomic",
-        "xml": "<block atomic=\"true\">",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 697.6666412353516,
-        "y": 359.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "58dbc6ed.e4fb78"
-            ]
-        ]
-    },
-    {
-        "id": "3eef3f7d.acf9e",
-        "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": 1348.6666412353516,
-        "y": 292.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "28936220.7676ce",
-        "type": "outcome",
-        "name": "sdnc_model_name",
-        "xml": "<outcome value='sdnc_model_name'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1094.6666412353516,
-        "y": 292.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "3eef3f7d.acf9e"
-            ]
-        ]
-    },
-    {
-        "id": "58dbc6ed.e4fb78",
-        "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": 856.6666412353516,
-        "y": 359.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "28936220.7676ce",
-                "41a51be4.e2de84",
-                "97a885a0.8b08e8",
-                "95df12c3.3ce8e"
-            ]
-        ]
-    },
-    {
-        "id": "41a51be4.e2de84",
-        "type": "outcome",
-        "name": "sdnc_model_version",
-        "xml": "<outcome value='sdnc_model_version'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1097.6666412353516,
-        "y": 338.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "50619bed.59bcf4"
-            ]
-        ]
-    },
-    {
-        "id": "97a885a0.8b08e8",
-        "type": "outcome",
-        "name": "sdnc_artifact_name",
-        "xml": "<outcome value='sdnc_artifact_name'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1096.6666412353516,
-        "y": 387.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "82133366.c0bff"
-            ]
-        ]
-    },
-    {
-        "id": "50619bed.59bcf4",
-        "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": 1352.6666412353516,
-        "y": 338.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "82133366.c0bff",
-        "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": 1348.6666412353516,
-        "y": 387.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "77c6656f.94e17c",
-        "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 + '&quot;' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name + '&quot;:&quot;' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value + '&quot;,'`\"/>\n\n",
-        "comments": "",
-        "x": 1364.6666412353516,
-        "y": 436.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "95df12c3.3ce8e",
-        "type": "outcome",
-        "name": "other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1056.666648864746,
-        "y": 436.9047546386719,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "77c6656f.94e17c"
-            ]
-        ]
-    },
-    {
-        "id": "dd0c4879.786768",
-        "type": "set",
-        "name": "set configAssignment JsonString",
-        "xml": "<set>\n<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '&quot;service-instance-id&quot;:&quot;' + $vnf-topology-operation-input.service-information.service-instance-id   + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '&quot;vnf-model-customization-uuid&quot;:&quot;' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '&quot;vnf-id&quot;:&quot;' + $vnf-topology-operation-input.vnf-information.vnf-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '&quot;aic-cloud-region&quot;:&quot;' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + '&quot;'`\"/>\n",
-        "comments": "",
-        "x": 470,
-        "y": 620,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "654c303d.bc966",
-        "type": "execute",
-        "name": "execute BlueprintProcessingClient",
-        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value=\"`$prop.cds.url + '/api/v1/execution-service/process'`\" />\n    <parameter name='restapiUser' value='`$prop.cds.user`' />\n    <parameter name='restapiPassword' value='`$prop.cds.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n    <parameter name=\"responsePrefix\" value=\"`$responsePrefix`\" />",
-        "comments": "",
-        "outputs": 1,
-        "x": 477.33331298828125,
-        "y": 834,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "d37d9ea0.c12ad",
-                "e8698b70.c431d8"
-            ]
-        ]
-    },
-    {
-        "id": "d37d9ea0.c12ad",
-        "type": "failure",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 717.3333129882812,
-        "y": 808,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "cb6982c3.5d096"
-            ]
-        ]
-    },
-    {
-        "id": "cb6982c3.5d096",
-        "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": 899.3333129882812,
-        "y": 829,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "8e50b155.95aaa",
-        "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": 501.66664123535156,
-        "y": 1051.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "76ae92fe.97658c"
-            ]
-        ]
-    },
-    {
-        "id": "edaf4d66.0e603",
-        "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": 1731.6666412353516,
-        "y": 1103.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "4b3da748.094068",
-        "type": "for",
-        "name": "for capability-data",
-        "xml": "<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 426.66664123535156,
-        "y": 1393.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "afcca100.08442"
-            ]
-        ]
-    },
-    {
-        "id": "afcca100.08442",
-        "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": 635.6666412353516,
-        "y": 1393.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "f22e79d3.9fa598"
-            ]
-        ]
-    },
-    {
-        "id": "41ae2337.afe27c",
-        "type": "execute",
-        "name": "execute jsonStringToCtx",
-        "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'raAssign.payload.resource-assignment-response.meshed-template.' + $tmp.sdnc-artifact-name`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 445.66664123535156,
-        "y": 972.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "5a42798d.9a03d8",
-        "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": 451.66664123535156,
-        "y": 123.33333396911621,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "90850917.831e78"
-            ]
-        ]
-    },
-    {
-        "id": "90850917.831e78",
-        "type": "failure",
-        "name": "failure",
-        "xml": "<outcome value='failure'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 629.6666412353516,
-        "y": 121.33333396911621,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "5b293973.a44fd8"
-            ]
-        ]
-    },
-    {
-        "id": "5b293973.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=\"generateUUID is failed\" />\n",
-        "comments": "",
-        "x": 776.6666412353516,
-        "y": 122.33333396911621,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "55dc72e4.040a6c",
-        "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": 1474.6666412353516,
-        "y": 1051.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "ef8bc14b.ccbff"
-            ]
-        ]
-    },
-    {
-        "id": "76ae92fe.97658c",
-        "type": "block",
-        "name": "block atomic",
-        "xml": "<block atomic=\"true\">",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 780.6666412353516,
-        "y": 1052.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "824fa75d.391fc8",
-                "2c5ebadc.773bc6",
-                "f84c1bca.bb7958"
-            ]
-        ]
-    },
-    {
-        "id": "f709c437.029758",
-        "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": 503.66664123535156,
-        "y": 221.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "23708a8a.213166",
-                "80282891.85c258"
-            ]
-        ]
-    },
-    {
-        "id": "23708a8a.213166",
-        "type": "outcome",
-        "name": "null",
-        "xml": "<outcome value=''>",
-        "comments": "",
-        "outputs": 1,
-        "x": 741.6666412353516,
-        "y": 189.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "dc5b10f3.283cb"
-            ]
-        ]
-    },
-    {
-        "id": "80282891.85c258",
-        "type": "other",
-        "name": "other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 740.6666412353516,
-        "y": 253.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "9174046b.b8b7d8"
-            ]
-        ]
-    },
-    {
-        "id": "dc5b10f3.283cb",
-        "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": 954.6666412353516,
-        "y": 189.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "9174046b.b8b7d8",
-        "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": 939.6666412353516,
-        "y": 253.3333339691162,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "ef8bc14b.ccbff",
-        "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": 1732.6666412353516,
-        "y": 1051.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "ee6ccc97.25efa"
-            ]
-        ]
-    },
-    {
-        "id": "ee6ccc97.25efa",
-        "type": "not-found",
-        "name": "true",
-        "xml": "<outcome value='true'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1912.6666412353516,
-        "y": 1051.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "ed52e9db.e0c808"
-            ]
-        ]
-    },
-    {
-        "id": "ed52e9db.e0c808",
-        "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": 2122.6666412353516,
-        "y": 1052.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "f84c1bca.bb7958",
-        "type": "switchNode",
-        "name": "switch tmp.mso.param.not-found",
-        "xml": "<switch test='`$tmp.mso.param.found`'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1022.6666412353516,
-        "y": 1104.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "eb181e3d.05137"
-            ]
-        ]
-    },
-    {
-        "id": "eb181e3d.05137",
-        "type": "not-found",
-        "name": "false",
-        "xml": "<outcome value='false'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1256.6666412353516,
-        "y": 1103.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "f72b62.fb42f4a"
-            ]
-        ]
-    },
-    {
-        "id": "824fa75d.391fc8",
-        "type": "set",
-        "name": "set for existing param name",
-        "xml": "<set>\n<parameter name='tmp.mso.param.found' value='false' />\n",
-        "comments": "",
-        "x": 1006.6666412353516,
-        "y": 993.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "2c5ebadc.773bc6",
-        "type": "switchNode",
-        "name": "switch check length > 0",
-        "xml": "<switch test='`$prehighnum &gt; 0`'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 999.1666412353516,
-        "y": 1052.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "6aca2d7e.39e184"
-            ]
-        ]
-    },
-    {
-        "id": "6aca2d7e.39e184",
-        "type": "not-found",
-        "name": "true",
-        "xml": "<outcome value='true'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1246.1666412353516,
-        "y": 1052.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "55dc72e4.040a6c"
-            ]
-        ]
-    },
-    {
-        "id": "32788be4.48e304",
-        "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": 1817.6666412353516,
-        "y": 1411.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "52ca6e98.bf065"
-            ]
-        ]
-    },
-    {
-        "id": "778c089.bfab7f8",
-        "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": 2166.6666412353516,
-        "y": 1347.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "1eb3f359.e179fd",
-        "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": 1390.6666412353516,
-        "y": 1291.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "f22e79d3.9fa598",
-        "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": 858.6666412353516,
-        "y": 1393.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "b6e3c033.d365e"
-            ]
-        ]
-    },
-    {
-        "id": "b6e3c033.d365e",
-        "type": "block",
-        "name": "block atomic",
-        "xml": "<block atomic=\"true\">",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 1109.6666412353516,
-        "y": 1393.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "1eb3f359.e179fd",
-                "c8871600.cda7b8",
-                "31cafe60.c858c2",
-                "d883e8b5.c87cd8"
-            ]
-        ]
-    },
-    {
-        "id": "c8871600.cda7b8",
-        "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": 1378.6666412353516,
-        "y": 1429.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "e8698b70.c431d8",
-        "type": "failure",
-        "name": "not-found",
-        "xml": "<outcome value='not-found'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 722.3333129882812,
-        "y": 870,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "cb6982c3.5d096"
-            ]
-        ]
-    },
-    {
-        "id": "31cafe60.c858c2",
-        "type": "switchNode",
-        "name": "switch payload_length",
-        "xml": "<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1414.6666412353516,
-        "y": 1362.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "35a0c321.c01b8c",
-                "4c60a062.02cd4"
-            ]
-        ]
-    },
-    {
-        "id": "35a0c321.c01b8c",
-        "type": "outcome",
-        "name": "true",
-        "xml": "<outcome value='true'>",
-        "comments": "",
-        "outputs": 1,
-        "x": 1635.6666412353516,
-        "y": 1293.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "4c60a062.02cd4",
-        "type": "other",
-        "name": "false",
-        "xml": "<outcome value='false'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1642.6666412353516,
-        "y": 1411.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "32788be4.48e304"
-            ]
-        ]
-    },
-    {
-        "id": "7c972f3e.f0f83",
-        "type": "success",
-        "name": "success",
-        "xml": "<outcome value='success'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1185.9523658752441,
-        "y": 608.9046821594238,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "a6be3be4.1bdc08"
-            ]
-        ]
-    },
-    {
-        "id": "b887f515.962a38",
-        "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": 2155.6666412353516,
-        "y": 1411.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "30950fde.196f6",
-        "type": "set",
-        "name": "increment length",
-        "xml": "<set>\n\t<parameter name='num' value='`$num + 1`' />\n",
-        "comments": "",
-        "x": 2173.6666412353516,
-        "y": 1485.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "d883e8b5.c87cd8",
-        "type": "set",
-        "name": "increment length",
-        "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n\n",
-        "comments": "",
-        "x": 1399.6666412353516,
-        "y": 1496.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "f72b62.fb42f4a",
-        "type": "block",
-        "name": "block : atomic",
-        "xml": "<block atomic='true'>",
-        "atomic": "true",
-        "comments": "",
-        "outputs": 1,
-        "x": 1433.6666412353516,
-        "y": 1102.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "edaf4d66.0e603",
-                "aba36cfb.938af"
-            ]
-        ]
-    },
-    {
-        "id": "aba36cfb.938af",
-        "type": "set",
-        "name": "increment length",
-        "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n",
-        "comments": "",
-        "x": 1648.6666412353516,
-        "y": 1162.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "52ca6e98.bf065",
-        "type": "block",
-        "name": "block atomic",
-        "xml": "<block atomic=\"true\">",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 1973.6666412353516,
-        "y": 1412.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            [
-                "778c089.bfab7f8",
-                "b887f515.962a38",
-                "30950fde.196f6"
-            ]
-        ]
-    },
-    {
-        "id": "72e48172.d53ce",
-        "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 BlueprintProcessingClient\"/>\n\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 399.9999809265137,
-        "y": 755.333324432373,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "4471abbd.a27dc4",
-        "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 BlueprintProcessingClient\"/>\n\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 396.6666488647461,
-        "y": 910.3333320617676,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "fa837cb4.36bad",
-        "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": 405.00000762939453,
-        "y": 1714.5000267028809,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "40bf0919.577208",
-        "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": 411.25000762939453,
-        "y": 1662.0000247955322,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    },
-    {
-        "id": "c9addd0a.302f8",
-        "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": 388.75000381469727,
-        "y": 1615.7500247955322,
-        "z": "3ef876bf.78b1fa",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "d351ac36.10e8b",
-        "type": "set",
-        "name": "set updateJsonPayload",
-        "xml": "<set>\n<parameter name=\"tmp.json-payload\" value=\"`'{' + $tmp.config-name-value-payload7 + '}'`\" />\n<parameter name=\"`$cds + 'actionIdentifiers.blueprintName'`\" value='`$tmp.sdnc-model-name`' />\n<parameter name=\"`$cds + 'actionIdentifiers.blueprintVersion'`\" value='`$tmp.sdnc-model-version`' />\n<parameter name=\"`$cds + 'payload.resource-assignment-request.template-prefix[0]'`\" value='`$tmp.sdnc-artifact-name`' />\n<parameter name=\"`$cds + 'payload.resource-assignment-request.resource-assignment-properties'`\" value='`$tmp.json-payload`' />",
-        "comments": "",
-        "x": 441,
-        "y": 680,
-        "z": "3ef876bf.78b1fa",
-        "wires": []
-    }
-]
\ No newline at end of file
+[{"id":"3501e5a2.675aea","type":"dgstart","name":"DGSTART","outputs":1,"x":91,"y":33.5,"z":"8334cfbf.1dbfc","wires":[["b5f22dfe.6e31"]]},{"id":"b5f22dfe.6e31","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":367,"y":34.5,"z":"8334cfbf.1dbfc","wires":[["547f0019.d0fa3"]]},{"id":"547f0019.d0fa3","type":"method","name":"self-serve-vnf-ra-assignment","xml":"<method rpc='self-serve-vnf-ra-assignment' mode='sync'>\n","comments":"","outputs":1,"x":210.07144165039062,"y":91.46428775787354,"z":"8334cfbf.1dbfc","wires":[["2e63ff2b.561f1"]]},{"id":"2e63ff2b.561f1","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":204.4523468017578,"y":158.04761695861816,"z":"8334cfbf.1dbfc","wires":[["96155f36.4dee","ecd8ee9b.c02a9","1f066148.408b8f","694896b0.6ae8c8","bc33905f.8bba6","9226252e.e39d18","16b37854.35c298","1c416f3d.add001","8bd3a596.34f178","be4e75b8.3ec5d8","7ff74048.c7318","6a301448.38917c","5d4647a7.c772e8","363fca1c.bf8736","e7b4ac15.b3f62"]]},{"id":"ecd8ee9b.c02a9","type":"set","name":"set","xml":"<set>\n   <parameter name=\"cds\" value=\"execution-service_process.\"/>\n   <parameter name=\"`$cds + 'commonHeader.requestId'`\" 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=\"`$cds + 'commonHeader.subRequestId'`\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />   \n   <parameter name=\"`$cds + 'actionIdentifiers.actionName'`\" value=\"resource-assignment\"/> \n   <parameter name=\"responsePrefix\" value=\"raAssign\" />\n   <parameter name=\"`$cds + 'isNonAppend'`\" value=\"true\"/>\n   <parameter name=\"`$cds + 'commonHeader.originatorId'`\" value=\"SDNC_DG\"/>\n   <parameter name=\"`$cds + 'actionIdentifiers.mode'`\" value=\"sync\"/>\n","comments":"","x":385.2023696899414,"y":226.5476131439209,"z":"8334cfbf.1dbfc","wires":[]},{"id":"eba7814c.4e099","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":943.8173675537109,"y":689.611005783081,"z":"8334cfbf.1dbfc","wires":[["c763b60b.7a9018","40f3797c.5f4068","93c98739.415188"]]},{"id":"c763b60b.7a9018","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1188.8174667358398,"y":638.8967294692993,"z":"8334cfbf.1dbfc","wires":[["c002a60.b907d58"]]},{"id":"c002a60.b907d58","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":1361.8174667358398,"y":638.8967294692993,"z":"8334cfbf.1dbfc","wires":[]},{"id":"cc998536.46b198","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":1587.2459678649902,"y":739.0395336151123,"z":"8334cfbf.1dbfc","wires":[]},{"id":"357da513.c5218a","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":1371.8174667358398,"y":687.8967294692993,"z":"8334cfbf.1dbfc","wires":[]},{"id":"bc33905f.8bba6","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":461.81736755371094,"y":690.611005783081,"z":"8334cfbf.1dbfc","wires":[["ffaf5b0c.1fedc8"]]},{"id":"40f3797c.5f4068","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1194.8174667358398,"y":687.8967294692993,"z":"8334cfbf.1dbfc","wires":[["357da513.c5218a"]]},{"id":"ffaf5b0c.1fedc8","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":713.8173675537109,"y":690.611005783081,"z":"8334cfbf.1dbfc","wires":[["eba7814c.4e099"]]},{"id":"694896b0.6ae8c8","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":473.4523468017578,"y":476.29761695861816,"z":"8334cfbf.1dbfc","wires":[["f14b9f13.ca1ba"]]},{"id":"f14b9f13.ca1ba","type":"block","name":"block atomic","xml":"<block atomic=\"true\">","atomic":"false","comments":"","outputs":1,"x":734.4523468017578,"y":476.29761695861816,"z":"8334cfbf.1dbfc","wires":[["38dc7b1c.057fc4"]]},{"id":"a24519d6.9da8a8","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":1383.4523468017578,"y":398.29761695861816,"z":"8334cfbf.1dbfc","wires":[]},{"id":"8c31b1c4.f2bee","type":"outcome","name":"sdnc_model_name","xml":"<outcome value='sdnc_model_name'>\n","comments":"","outputs":1,"x":1129.4523468017578,"y":398.29761695861816,"z":"8334cfbf.1dbfc","wires":[["a24519d6.9da8a8"]]},{"id":"38dc7b1c.057fc4","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":908.4523468017578,"y":476.29761695861816,"z":"8334cfbf.1dbfc","wires":[["8c31b1c4.f2bee","6ab00d80.fca704","a9ef8550.572b88","8245db44.d86468"]]},{"id":"6ab00d80.fca704","type":"outcome","name":"sdnc_model_version","xml":"<outcome value='sdnc_model_version'>\n","comments":"","outputs":1,"x":1132.4523468017578,"y":444.29761695861816,"z":"8334cfbf.1dbfc","wires":[["8358a2cb.5dc06"]]},{"id":"a9ef8550.572b88","type":"outcome","name":"sdnc_artifact_name","xml":"<outcome value='sdnc_artifact_name'>\n","comments":"","outputs":1,"x":1131.4523468017578,"y":493.29761695861816,"z":"8334cfbf.1dbfc","wires":[["a9c04e60.ef2f8"]]},{"id":"8358a2cb.5dc06","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":1387.4523468017578,"y":444.29761695861816,"z":"8334cfbf.1dbfc","wires":[]},{"id":"a9c04e60.ef2f8","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":1383.4523468017578,"y":493.29761695861816,"z":"8334cfbf.1dbfc","wires":[]},{"id":"86fadb38.c81f38","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 + '&quot;' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name + '&quot;:&quot;' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].value + '&quot;,'`\"/>\n\n","comments":"","x":1399.4523468017578,"y":542.2976169586182,"z":"8334cfbf.1dbfc","wires":[]},{"id":"8245db44.d86468","type":"outcome","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1091.4523544311523,"y":542.8690376281738,"z":"8334cfbf.1dbfc","wires":[["86fadb38.c81f38"]]},{"id":"9226252e.e39d18","type":"set","name":"set configAssignment JsonString","xml":"<set>\n<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '&quot;service-instance-id&quot;:&quot;' + $vnf-topology-operation-input.service-information.service-instance-id   + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '&quot;vnf-model-customization-uuid&quot;:&quot;' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '&quot;vnf-id&quot;:&quot;' + $vnf-topology-operation-input.vnf-information.vnf-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '&quot;aic-cloud-region&quot;:&quot;' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + '&quot;'`\"/>\n","comments":"","x":475.0079040527344,"y":749.9920196533203,"z":"8334cfbf.1dbfc","wires":[]},{"id":"16b37854.35c298","type":"execute","name":"execute BlueprintProcessingClient","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value=\"`$prop.cds.url + '/api/v1/execution-service/process'`\" />\n    <parameter name='restapiUser' value='`$prop.cds.user`' />\n    <parameter name='restapiPassword' value='`$prop.cds.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n    <parameter name=\"responsePrefix\" value=\"`$responsePrefix`\" />","comments":"","outputs":1,"x":477.8968048095703,"y":968.4364633560181,"z":"8334cfbf.1dbfc","wires":[["dd7f5eae.cd01d","f7ecbf9b.1b1ca"]]},{"id":"dd7f5eae.cd01d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":717.8968048095703,"y":942.4364633560181,"z":"8334cfbf.1dbfc","wires":[["11e08758.03b3a9"]]},{"id":"11e08758.03b3a9","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":899.8968048095703,"y":963.4364633560181,"z":"8334cfbf.1dbfc","wires":[]},{"id":"96155f36.4dee","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":441.9523468017578,"y":158.04761695861816,"z":"8334cfbf.1dbfc","wires":[["42941485.41dd1c"]]},{"id":"42941485.41dd1c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":653.9523468017578,"y":157.04761695861816,"z":"8334cfbf.1dbfc","wires":[["44726b34.9c6614"]]},{"id":"44726b34.9c6614","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":829.9523468017578,"y":157.04761695861816,"z":"8334cfbf.1dbfc","wires":[]},{"id":"1f066148.408b8f","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":510.2023468017578,"y":304.79764461517334,"z":"8334cfbf.1dbfc","wires":[["7aad0ce7.e8e6c4","35092a50.a68416"]]},{"id":"7aad0ce7.e8e6c4","type":"outcome","name":"null","xml":"<outcome value=''>","comments":"","outputs":1,"x":777.2023468017578,"y":272.79764461517334,"z":"8334cfbf.1dbfc","wires":[["5d9fd2c5.25f81c"]]},{"id":"35092a50.a68416","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":776.2023468017578,"y":336.79764461517334,"z":"8334cfbf.1dbfc","wires":[["848e04b8.ce3208"]]},{"id":"5d9fd2c5.25f81c","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":990.2023468017578,"y":272.79764461517334,"z":"8334cfbf.1dbfc","wires":[]},{"id":"848e04b8.ce3208","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":975.2023468017578,"y":336.79764461517334,"z":"8334cfbf.1dbfc","wires":[]},{"id":"f7ecbf9b.1b1ca","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":722.8968048095703,"y":1004.4364633560181,"z":"8334cfbf.1dbfc","wires":[["11e08758.03b3a9"]]},{"id":"93c98739.415188","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1190.9602699279785,"y":738.8967018127441,"z":"8334cfbf.1dbfc","wires":[["cc998536.46b198"]]},{"id":"1c416f3d.add001","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 BlueprintProcessingClient\"/>\n\n","comments":"","outputs":1,"x":381.67456436157227,"y":894.2143058776855,"z":"8334cfbf.1dbfc","wires":[[]]},{"id":"8bd3a596.34f178","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 BlueprintProcessingClient\"/>\n\n","comments":"","outputs":1,"x":383.8968200683594,"y":1078.1031112670898,"z":"8334cfbf.1dbfc","wires":[[]]},{"id":"be4e75b8.3ec5d8","type":"set","name":"set updateJsonPayload","xml":"<set>\n<parameter name=\"tmp.json-payload\" value=\"`'{' + $tmp.config-name-value-payload7 + '}'`\" />\n<parameter name=\"`$cds + 'actionIdentifiers.blueprintName'`\" value='`$tmp.sdnc-model-name`' />\n<parameter name=\"`$cds + 'actionIdentifiers.blueprintVersion'`\" value='`$tmp.sdnc-model-version`' />\n<parameter name=\"`$cds + 'payload.resource-assignment-request.template-prefix[0]'`\" value='`$tmp.sdnc-artifact-name`' />\n<parameter name=\"`$cds + 'payload.resource-assignment-request.resource-assignment-properties'`\" value='`$tmp.json-payload`' />","comments":"","x":440.4523468017578,"y":822.2143030166626,"z":"8334cfbf.1dbfc","wires":[]},{"id":"7ff74048.c7318","type":"execute","name":"execute jsonStringToCtx","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'raAssign.payload.resource-assignment-response.meshed-template.' + $tmp.sdnc-artifact-name`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n","comments":"","outputs":1,"x":443.8888702392578,"y":1143.3332748413086,"z":"8334cfbf.1dbfc","wires":[[]]},{"id":"6a301448.38917c","type":"switchNode","name":"switch: jsonContextPrefix.resource-accumulator-resolved-data_length","xml":"<switch test=\"`$jsonContextPrefix.resource-accumulator-resolved-data_length`\">\n","comments":"","outputs":1,"x":601.8888854980469,"y":1233.3332777023315,"z":"8334cfbf.1dbfc","wires":[["cd8908db.761938","251a76.7423158a"]]},{"id":"cd8908db.761938","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":969.6666259765625,"y":1208.8887939453125,"z":"8334cfbf.1dbfc","wires":[["2fd0fd65.b23da2"]]},{"id":"f8ea61ad.0fe5b","type":"call","name":"Call self-serve-process-vnf-template-ra-response","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-process-vnf-template-ra-response' mode='sync' >\n","comments":"","outputs":1,"x":1262.6666412353516,"y":1262.7776165008545,"z":"8334cfbf.1dbfc","wires":[[]]},{"id":"2fd0fd65.b23da2","type":"call","name":"Call self-serve-process-vnf-mapping-ra-response","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-process-vnf-mapping-ra-response' mode='sync' >\n","comments":"","outputs":1,"x":1263.000015258789,"y":1208.8888187408447,"z":"8334cfbf.1dbfc","wires":[[]]},{"id":"251a76.7423158a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":968.6666107177734,"y":1262.2221927642822,"z":"8334cfbf.1dbfc","wires":[["f8ea61ad.0fe5b"]]},{"id":"e7b4ac15.b3f62","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":397.5,"y":1432.5,"z":"8334cfbf.1dbfc","wires":[[]]},{"id":"363fca1c.bf8736","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":402.75,"y":1379.9999980926514,"z":"8334cfbf.1dbfc","wires":[]},{"id":"5d4647a7.c772e8","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: self-serve-vnf-ra-assignment\"/>\n\n","comments":"","outputs":1,"x":378.24999618530273,"y":1329.7499980926514,"z":"8334cfbf.1dbfc","wires":[[]]}]
\ No newline at end of file
index 94207ca..1ddbca1 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "33be195b.75d4fe",\r
+        "id": "153cea09.c75a8e",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 180,\r
-        "y": 166.70132446289062,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 101.66668701171875,\r
+        "y": 63.33332824707031,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "887749a.214a238"\r
+                "fe3324a.ad54558"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "887749a.214a238",\r
+        "id": "fe3324a.ad54558",\r
         "type": "service-logic",\r
         "name": "GENERIC-RESOURCE-API ${project.version}",\r
         "module": "GENERIC-RESOURCE-API",\r
         "comments": "",\r
         "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}'>",\r
         "outputs": 1,\r
-        "x": 293.28570556640625,\r
-        "y": 206.9394359588623,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 214.952392578125,\r
+        "y": 103.57143974304199,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "29dcb1df.dc1b8e"\r
+                "1618b716.647759"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "29dcb1df.dc1b8e",\r
+        "id": "1618b716.647759",\r
         "type": "method",\r
         "name": "method vf-module-topology-operation",\r
         "xml": "<method rpc='vf-module-topology-operation' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 267.42862701416016,\r
-        "y": 246.70131874084473,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 189.0953140258789,\r
+        "y": 143.3333225250244,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "5c539e88.795b58"\r
+                "647ccf73.e9d16"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "96b1a3b6.caafe8",\r
+        "id": "f21f2bc9.a7ee3",\r
         "type": "comment",\r
         "name": "vf-module-topology-operation",\r
         "info": "",\r
         "comments": "",\r
-        "x": 497.34483337402344,\r
-        "y": 149.28766632080078,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 419.0115203857422,\r
+        "y": 45.91967010498047,\r
+        "z": "c4b0d07d.92515",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5c539e88.795b58",\r
+        "id": "647ccf73.e9d16",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 241.5000457763672,\r
-        "y": 580.061484336853,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 163.16673278808594,\r
+        "y": 476.6934881210327,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "40f6b5c9.a683ec",\r
-                "28b20b0b.fec1e4",\r
-                "5bcfdc4b.d00a54"\r
+                "5a3085f5.d5ce44",\r
+                "3e48de1f.c44b7a",\r
+                "3ef5ce22.88127a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "40f6b5c9.a683ec",\r
+        "id": "5a3085f5.d5ce44",\r
         "type": "returnSuccess",\r
         "name": "return success",\r
         "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",\r
         "comments": "",\r
-        "x": 527.0000381469727,\r
-        "y": 753.5588731765747,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 448.6667251586914,\r
+        "y": 650.1908769607544,\r
+        "z": "c4b0d07d.92515",\r
         "wires": []\r
     },\r
     {\r
-        "id": "28b20b0b.fec1e4",\r
+        "id": "3e48de1f.c44b7a",\r
         "type": "switchNode",\r
         "name": "switch svc-action",\r
         "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 537.9046478271484,\r
-        "y": 578.2727088928223,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 459.5713348388672,\r
+        "y": 474.90471267700195,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "caeb3334.585a08",\r
-                "24b9aded.f55092",\r
-                "ff253716.ed1",\r
-                "ecd15846.92d2a",\r
-                "b53dc71f.db6408",\r
-                "dd8d2752.a0ec3",\r
-                "18068d49.c7b22b",\r
-                "f038d95a.4f467",\r
-                "47a5544f.c67324"\r
+                "e696c7e9.b47468",\r
+                "b98403f7.cef768",\r
+                "cee42607.61438",\r
+                "82718d35.9a5ac",\r
+                "c48c6e.2684d39",\r
+                "ddd5b918.cd6bc",\r
+                "b60cf1f8.580f9",\r
+                "56a5d05d.f27d2",\r
+                "d6e391fa.c98b78"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "caeb3334.585a08",\r
+        "id": "e696c7e9.b47468",\r
         "type": "outcome",\r
         "name": "assign",\r
         "xml": "<outcome value='assign'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 749.3809280395508,\r
-        "y": 426.5586109161377,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 671.0476150512695,\r
+        "y": 323.1906147003174,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "fcc6559a.f79908"\r
+                "69a629d9.7b14c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "24b9aded.f55092",\r
+        "id": "b98403f7.cef768",\r
         "type": "outcome",\r
         "name": "unassign",\r
         "xml": "<outcome value='unassign'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 755.7619132995605,\r
-        "y": 614.7492380142212,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 677.4286003112793,\r
+        "y": 511.3812417984009,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "4899f7bf.dcc26"\r
+                "66800c86.c97024"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ff253716.ed1",\r
+        "id": "cee42607.61438",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 659.4762649536133,\r
-        "y": 2030.2728834152222,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 586.1429672241211,\r
+        "y": 2046.904836654663,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "e5f62cf2.166b38"\r
+                "11e297b8.71dcb"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e5f62cf2.166b38",\r
+        "id": "11e297b8.71dcb",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
         "xml": "<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-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",\r
         "comments": "",\r
-        "x": 853.666690826416,\r
-        "y": 2030.272952079773,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 787.0000190734863,\r
+        "y": 2136.9048748016357,\r
+        "z": "c4b0d07d.92515",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5bcfdc4b.d00a54",\r
+        "id": "3ef5ce22.88127a",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:validate-vf-module-input",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-vf-module-input' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 665.0832824707031,\r
-        "y": 324.0823812484741,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 586.7499694824219,\r
+        "y": 220.7143850326538,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "eef0ba00.12b89",\r
+        "id": "d40c65e8.5ae13",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vf-module-topology-operation-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1131.5237197875977,\r
-        "y": 564.7966537475586,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1053.1904067993164,\r
+        "y": 461.4286575317383,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "4899f7bf.dcc26",\r
+        "id": "66800c86.c97024",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vf-module-topology-operation-unassign",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-unassign' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1125.856990814209,\r
-        "y": 614.4633731842041,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1047.5236778259277,\r
+        "y": 511.0953769683838,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "58ba8f60.b4c0a",\r
+        "id": "a46899f8.43c288",\r
         "type": "outcome",\r
         "name": "deactivate",\r
         "xml": "<outcome value='deactivate'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 759.857006072998,\r
-        "y": 565.4633274078369,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 681.5236930847168,\r
+        "y": 462.0953311920166,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "eef0ba00.12b89"\r
+                "d40c65e8.5ae13"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ecd15846.92d2a",\r
+        "id": "82718d35.9a5ac",\r
         "type": "outcome",\r
         "name": "changeassign",\r
         "xml": "<outcome value='changeassign'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 770.3333282470703,\r
-        "y": 662.3679676055908,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 692.0000152587891,\r
+        "y": 558.9999713897705,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "c288c362.34d07"\r
+                "e923b3d2.aa64b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c288c362.34d07",\r
+        "id": "e923b3d2.aa64b",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vf-module-topology-operation-changeassign",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-changeassign' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1139.4283981323242,\r
-        "y": 662.082103729248,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1061.095085144043,\r
+        "y": 558.7141075134277,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "b53dc71f.db6408",\r
+        "id": "c48c6e.2684d39",\r
         "type": "outcome",\r
         "name": "create",\r
         "xml": "<outcome value='create'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 756.0000076293945,\r
-        "y": 860.7013120651245,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 677.6666946411133,\r
+        "y": 757.3333158493042,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "18e7ef46.d6b7b1"\r
+                "1e5afca3.bad373"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "607a2fa9.0f2298",\r
+        "id": "32944a32.f5fae6",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 994.333610534668,\r
-        "y": 868.2876752316952,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 916.0002975463867,\r
+        "y": 764.9196790158749,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "7311d758.3c29a8",\r
-                "1c43fcbc.b491cb",\r
-                "1f820a59.6cfe26",\r
-                "263d1347.d54d4c",\r
-                "70589bb7.c48cd4",\r
-                "17d2ee47.67d4f2"\r
+                "dbc501f4.15c418",\r
+                "d866165c.1a50c",\r
+                "daf35240.82eef",\r
+                "11f10ff7.8f31",\r
+                "f7d471cc.6d2f08",\r
+                "daacc1e1.3a252",\r
+                "f1d4d27b.a55f18",\r
+                "cd308409.06664"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1c43fcbc.b491cb",\r
+        "id": "d866165c.1a50c",\r
         "type": "outcome",\r
         "name": "CreateSDWANSiteInstance",\r
         "xml": "<outcome value='CreateSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1284.809928894043,\r
-        "y": 776.7670440673828,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1206.4766159057617,\r
+        "y": 673.3990478515625,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "d033bd2f.c327f8"\r
+                "8c575c9d.eb50e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7311d758.3c29a8",\r
+        "id": "dbc501f4.15c418",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1194.7143936157227,\r
-        "y": 952.1449384689331,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1126.3809814453125,\r
+        "y": 922.1103363037109,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "985190ee.26958"\r
+                "3de35ea1.4611ca"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "18e7ef46.d6b7b1",\r
+        "id": "1e5afca3.bad373",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 942.3335266113281,\r
-        "y": 788.2876768112183,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 864.0002136230469,\r
+        "y": 684.919680595398,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "607a2fa9.0f2298",\r
-                "8882f132.8ac148"\r
+                "32944a32.f5fae6",\r
+                "6b98be15.5c31b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d033bd2f.c327f8",\r
+        "id": "8c575c9d.eb50e8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-site-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-site-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1708.3338012695312,\r
-        "y": 775.2878203392029,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1630.00048828125,\r
+        "y": 671.9198241233826,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "985190ee.26958",\r
+        "id": "3de35ea1.4611ca",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1348.0000457763672,\r
-        "y": 952.2013349533081,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1276.333251953125,\r
+        "y": 920.5000152587891,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "1f820a59.6cfe26",\r
+        "id": "daf35240.82eef",\r
         "type": "outcome",\r
         "name": "CreateSDWANPortInstance",\r
         "xml": "<outcome value='CreateSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1258.6667861938477,\r
-        "y": 910.5348291397095,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1180.3334732055664,\r
+        "y": 807.1668329238892,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "10e74aca.5e9dcd"\r
+                "4c73beae.c4f208"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "10e74aca.5e9dcd",\r
+        "id": "4c73beae.c4f208",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-wanport-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-wanport-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1731.1904830932617,\r
-        "y": 910.0555810928345,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1652.8571701049805,\r
+        "y": 806.6875848770142,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "263d1347.d54d4c",\r
+        "id": "11f10ff7.8f31",\r
         "type": "outcome",\r
         "name": "CreateSDWANDeviceInstance",\r
         "xml": "<outcome value='CreateSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1267.0311088562012,\r
-        "y": 830.732789516449,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1188.69779586792,\r
+        "y": 727.3647933006287,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "f8c54fdf.a0282"\r
+                "16bfb20e.6eff86"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f8c54fdf.a0282",\r
+        "id": "16bfb20e.6eff86",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-device-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-device-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1722.5548973083496,\r
-        "y": 830.2536587715149,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1644.2215843200684,\r
+        "y": 726.8856625556946,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "70589bb7.c48cd4",\r
+        "id": "f7d471cc.6d2f08",\r
         "type": "outcome",\r
         "name": "CreateSDWANVpnInstance",\r
         "xml": "<outcome value='CreateSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1297.0000267028809,\r
-        "y": 729.7013640403748,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1218.6667137145996,\r
+        "y": 626.3333678245544,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "69cbe655.d4531"\r
+                "e9749f09.7aac68"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "69cbe655.d4531",\r
+        "id": "e9749f09.7aac68",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-vpn-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-vpn-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1705.5237998962402,\r
-        "y": 727.2221312522888,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1627.190486907959,\r
+        "y": 623.8541350364685,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "dd8d2752.a0ec3",\r
+        "id": "ddd5b918.cd6bc",\r
         "type": "outcome",\r
         "name": "activate",\r
         "xml": "<outcome value='activate'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 746.0000076293945,\r
-        "y": 1056.0346250534058,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 676,\r
+        "y": 1039.3333129882812,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "bcb67265.e288a"\r
+                "30af29ca.390ed6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c0fe026d.5bbbb",\r
+        "id": "7ab05668.71ae18",\r
         "type": "outcome",\r
         "name": "ActivateSDWANSiteInstance",\r
         "xml": "<outcome value='ActivateSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1276.1430587768555,\r
-        "y": 1058.933578491211,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1206.143051147461,\r
+        "y": 1042.2322664260864,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "5109a3a6.561364"\r
+                "1fcb5a9.ae883a5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bcb67265.e288a",\r
+        "id": "30af29ca.390ed6",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 926.6667785644531,\r
-        "y": 1051.4543018341064,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 856.6667709350586,\r
+        "y": 1034.752989768982,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "47246527.1e56ec"\r
+                "de6a9866.aa5828"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5109a3a6.561364",\r
+        "id": "1fcb5a9.ae883a5",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-site-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-site-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1688.6669464111328,\r
-        "y": 1052.454360961914,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1618.6669387817383,\r
+        "y": 1035.7530488967896,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "c60830d0.17f5a",\r
+        "id": "e66705a2.bbcc4",\r
         "type": "outcome",\r
         "name": "ActivateSDWANDeviceInstance",\r
         "xml": "<outcome value='ActivateSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1265.33349609375,\r
-        "y": 1104.9543671607971,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1195.3334884643555,\r
+        "y": 1088.2530550956726,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "25d9361e.9c65ba"\r
+                "c1805771.0819f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "25d9361e.9c65ba",\r
+        "id": "c1805771.0819f8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-device-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-device-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1700.857192993164,\r
-        "y": 1104.47513961792,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1630.8571853637695,\r
+        "y": 1087.7738275527954,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "b6aa92f9.cdc2a8",\r
+        "id": "64b056c.8877b28",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-wanport-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-wanport-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1699.3333206176758,\r
-        "y": 1189.95432138443,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1629.3333129882812,\r
+        "y": 1173.2530093193054,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "a18c69ab.01a818",\r
+        "id": "8e3e13b7.4d7fd8",\r
         "type": "outcome",\r
         "name": "ActivateSDWANPortInstance",\r
         "xml": "<outcome value='ActivateSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1263.8096237182617,\r
-        "y": 1190.4335489273071,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1193.8096160888672,\r
+        "y": 1173.7322368621826,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "b6aa92f9.cdc2a8"\r
+                "64b056c.8877b28"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "47246527.1e56ec",\r
+        "id": "de6a9866.aa5828",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1003.0000076293945,\r
-        "y": 1118.0346250534058,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 933,\r
+        "y": 1101.3333129882812,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "c0fe026d.5bbbb",\r
-                "c60830d0.17f5a",\r
-                "a18c69ab.01a818",\r
-                "4eb9f891.327f5",\r
-                "90d715c6.9c265",\r
-                "f02a5298.2eefc"\r
+                "7ab05668.71ae18",\r
+                "e66705a2.bbcc4",\r
+                "8e3e13b7.4d7fd8",\r
+                "ae7ebf9a.9d5728",\r
+                "e786a9cd.c7b768",\r
+                "c6ae21b.9d991e",\r
+                "470b9ad1.39ed14",\r
+                "7418d7ec.38a8f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4eb9f891.327f5",\r
+        "id": "ae7ebf9a.9d5728",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1195.5714874267578,\r
-        "y": 1239.2461342811584,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1123.9047241210938,\r
+        "y": 1277.5447998046875,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "5d183311.69fac4"\r
+                "3422a44a.60f054"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "90d715c6.9c265",\r
+        "id": "e786a9cd.c7b768",\r
         "type": "outcome",\r
         "name": "ActivateSDWANVpnInstance",\r
         "xml": "<outcome value='ActivateSDWANVpnInstance'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1279.0000076293945,\r
-        "y": 1014.0346250534058,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1209,\r
+        "y": 997.3333129882812,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "88c09726.eefab8"\r
+                "76d36ae2.9c9924"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "88c09726.eefab8",\r
+        "id": "76d36ae2.9c9924",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-vpn-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-vpn-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1694.523811340332,\r
-        "y": 1007.555401802063,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1624.5238037109375,\r
+        "y": 990.8540897369385,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "18068d49.c7b22b",\r
+        "id": "b60cf1f8.580f9",\r
         "type": "outcome",\r
         "name": "deactivate",\r
         "xml": "<outcome value='deactivate'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 730,\r
-        "y": 1342.0347180366516,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 668.333251953125,\r
+        "y": 1378.6666259765625,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "681e9593.4046f4"\r
+                "d902e7.6b323d18"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1c91b5af.7e24a2",\r
+        "id": "b02c158c.dcddd",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANSiteInstance",\r
         "xml": "<outcome value='DeactivateSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1268.1431198120117,\r
-        "y": 1341.9336881637573,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1189.8097457885742,\r
+        "y": 1380.232195854187,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "45ef4065.1ebd28"\r
+                "8c270238.c3c8c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "681e9593.4046f4",\r
+        "id": "d902e7.6b323d18",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 910.6667709350586,\r
-        "y": 1337.4543948173523,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 832.3333969116211,\r
+        "y": 1375.752902507782,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "33bfb465.398c74"\r
+                "2518a88.ea22ad8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "45ef4065.1ebd28",\r
+        "id": "8c270238.c3c8c8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-site-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-site-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1685.6668853759766,\r
-        "y": 1343.4544248580933,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1607.333511352539,\r
+        "y": 1381.752932548523,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "a2c160f0.81abc8",\r
+        "id": "fa38900c.4b0c9",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANDeviceInstance",\r
         "xml": "<outcome value='DeactivateSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1249.3334884643555,\r
-        "y": 1390.954460144043,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1171.000114440918,\r
+        "y": 1429.2529678344727,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "6d633c2a.19ba84"\r
+                "49cf5463.b68144"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6d633c2a.19ba84",\r
+        "id": "49cf5463.b68144",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-device-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-device-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1684.8571853637695,\r
-        "y": 1390.4752326011658,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1606.523811340332,\r
+        "y": 1428.7737402915955,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "534faaf3.c3270c",\r
+        "id": "55d87d86.c7c894",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-wanport-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-wanport-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1682.333396911621,\r
-        "y": 1468.9544343948364,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1604.0000228881836,\r
+        "y": 1507.252942085266,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "a881781.4a03f08",\r
+        "id": "9b4c7c3a.81ad58",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANPortInstance",\r
         "xml": "<outcome value='DeactivateSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1246.809700012207,\r
-        "y": 1469.4336619377136,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1168.4763259887695,\r
+        "y": 1507.7321696281433,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "534faaf3.c3270c"\r
+                "55d87d86.c7c894"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "33bfb465.398c74",\r
+        "id": "2518a88.ea22ad8",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 987,\r
-        "y": 1404.0347180366516,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 908.6666259765625,\r
+        "y": 1442.3332257270813,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "1c91b5af.7e24a2",\r
-                "a2c160f0.81abc8",\r
-                "a881781.4a03f08",\r
-                "e96ddfb5.feaf6",\r
-                "627fe7de.350708",\r
-                "824d42e5.fe91b"\r
+                "b02c158c.dcddd",\r
+                "fa38900c.4b0c9",\r
+                "9b4c7c3a.81ad58",\r
+                "432728ba.c11a38",\r
+                "84d60925.31d678",\r
+                "a8e829e3.8183",\r
+                "ccae6641.31434",\r
+                "a6a8695d.564e28"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e96ddfb5.feaf6",\r
+        "id": "432728ba.c11a38",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1182.571434020996,\r
-        "y": 1519.2462244033813,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1102.5712280273438,\r
+        "y": 1642.5446166992188,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "fc7b9ae9.e004f8"\r
+                "c7edf50f.976288"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "627fe7de.350708",\r
+        "id": "84d60925.31d678",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANVpnInstance",\r
         "xml": "<outcome value='DeactivateSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1263,\r
-        "y": 1300.0347180366516,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1184.6666259765625,\r
+        "y": 1338.3332257270813,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "51976a8e.a60084"\r
+                "db35e090.10dfe8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "51976a8e.a60084",\r
+        "id": "db35e090.10dfe8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-vpn-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-vpn-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1678.5238037109375,\r
-        "y": 1293.5554947853088,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1600.1904296875,\r
+        "y": 1331.8540024757385,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "fc7b9ae9.e004f8",\r
+        "id": "c7edf50f.976288",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vf-module-topology-operation-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1521.000114440918,\r
-        "y": 1519.7014350891113,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1457.6663208007812,\r
+        "y": 1642.9998168945312,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "5d183311.69fac4",\r
+        "id": "3422a44a.60f054",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vf-module-topology-operation-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1526,\r
-        "y": 1236.701344013214,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1632.666748046875,\r
+        "y": 1276.666748046875,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "a5ddeebb.393828",\r
+        "id": "e231092d.d187b8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vf-module-topology-operation-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1123.9999656677246,\r
-        "y": 515.7012996673584,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1045.6666526794434,\r
+        "y": 412.3333034515381,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "d10ab8db.cf3c38",\r
+        "id": "d176524b.1e092",\r
         "type": "outcome",\r
         "name": "activate",\r
         "xml": "<outcome value='activate'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 751.9999504089355,\r
-        "y": 516.367977142334,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 673.6666374206543,\r
+        "y": 412.9999809265137,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "a5ddeebb.393828"\r
+                "e231092d.d187b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f038d95a.4f467",\r
+        "id": "56a5d05d.f27d2",\r
         "type": "outcome",\r
         "name": "delete",\r
         "xml": "<outcome value='delete'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 693.0000457763672,\r
-        "y": 1687.368046760559,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 619.666748046875,\r
+        "y": 1704,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "10193305.fa5d35"\r
+                "dd00380.83700c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b3ed8338.35bbd8",\r
+        "id": "6af9eda8.4f30b4",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 932.3335647583008,\r
-        "y": 1687.9544134140015,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 865.6668930053711,\r
+        "y": 1794.5863361358643,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "f639dd.e0c2962",\r
-                "2f28b183.0a3116",\r
-                "2dac1bff.bca26c",\r
-                "c2c7f7f5.8148e8",\r
-                "8661a779.b1bbc8",\r
-                "c19404b2.ac4d9"\r
+                "acdba1bb.271aa8",\r
+                "41e45c65.4f48b4",\r
+                "365b77d0.aa0eb8",\r
+                "ac104092.6353d8",\r
+                "bd543300.11b69",\r
+                "63b5bf9.29c61c",\r
+                "24867b99.975184",\r
+                "86ad5770.f9ee38"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2f28b183.0a3116",\r
+        "id": "41e45c65.4f48b4",\r
         "type": "outcome",\r
         "name": "DeleteSDWANSiteInstance",\r
         "xml": "<outcome value='DeleteSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1217.8101119995117,\r
-        "y": 1621.4338130950928,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1151.143440246582,\r
+        "y": 1728.0657358169556,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "272fa7f.e3f75d8"\r
+                "80fe0e03.e986c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f639dd.e0c2962",\r
+        "id": "acdba1bb.271aa8",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1131.7144317626953,\r
-        "y": 1778.8116731643677,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1075.047622680664,\r
+        "y": 1948.7767133712769,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "721cca52.351b1c"\r
+                "b65e68d0.d5eb2"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "10193305.fa5d35",\r
+        "id": "dd00380.83700c8",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 879.3335647583008,\r
-        "y": 1614.9544115066528,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 812.6668930053711,\r
+        "y": 1721.5863342285156,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "b3ed8338.35bbd8"\r
+                "6af9eda8.4f30b4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "272fa7f.e3f75d8",\r
+        "id": "80fe0e03.e986c",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-site-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-site-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1621.333724975586,\r
-        "y": 1616.9546580314636,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1554.6670532226562,\r
+        "y": 1723.5865807533264,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "721cca52.351b1c",\r
+        "id": "b65e68d0.d5eb2",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1285.0000839233398,\r
-        "y": 1778.8680696487427,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1226.6664581298828,\r
+        "y": 1953.8332319259644,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "2dac1bff.bca26c",\r
+        "id": "365b77d0.aa0eb8",\r
         "type": "outcome",\r
         "name": "DeleteSDWANPortInstance",\r
         "xml": "<outcome value='DeleteSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1195.6668243408203,\r
-        "y": 1737.201563835144,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1140.666763305664,\r
+        "y": 1843.8334760665894,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "d36bdd40.7f4cb"\r
+                "fa46a4df.465f48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d36bdd40.7f4cb",\r
+        "id": "fa46a4df.465f48",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-wanport-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-wanport-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1668.1905212402344,\r
-        "y": 1736.722315788269,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1601.5238494873047,\r
+        "y": 1843.3542385101318,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "c2c7f7f5.8148e8",\r
+        "id": "ac104092.6353d8",\r
         "type": "outcome",\r
         "name": "DeleteSDWANDeviceInstance",\r
         "xml": "<outcome value='DeleteSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1220.0312194824219,\r
-        "y": 1660.3994517326355,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1153.3645477294922,\r
+        "y": 1767.0313744544983,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "4e0eb9d5.aa847"\r
+                "20de69e5.be86ce"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4e0eb9d5.aa847",\r
+        "id": "20de69e5.be86ce",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-device-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-device-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1634.5550384521484,\r
-        "y": 1655.9203562736511,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1567.8883666992188,\r
+        "y": 1762.552278995514,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "8661a779.b1bbc8",\r
+        "id": "bd543300.11b69",\r
         "type": "outcome",\r
         "name": "DeleteSDWANVpnInstance",\r
         "xml": "<outcome value='DeleteSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1224.0000762939453,\r
-        "y": 1580.3680639266968,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1157.3334045410156,\r
+        "y": 1686.9999866485596,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "4efe6039.8a2b38"\r
+                "a935d1ef.f74388"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4efe6039.8a2b38",\r
+        "id": "a935d1ef.f74388",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-vpn-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-vpn-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1617.5238800048828,\r
-        "y": 1580.888831615448,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1550.8572082519531,\r
+        "y": 1687.5207543373108,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "8882f132.8ac148",\r
+        "id": "6b98be15.5c31b8",\r
         "type": "record",\r
         "name": "record",\r
         "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=\"request-action\"/>\n<parameter name=\"field3\" value='`$vf-module-topology-operation-input.request-information.request-action`'/>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1083.7500076293945,\r
-        "y": 737.2915614545345,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1005.4166946411133,\r
+        "y": 633.9235652387142,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "17d2ee47.67d4f2",\r
+        "id": "daacc1e1.3a252",\r
         "type": "outcome",\r
         "name": "CreateSDWANLanPortInstance",\r
         "xml": "<outcome value='CreateSDWANLanPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1260.743507385254,\r
-        "y": 871.5415625572205,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1182.4101943969727,\r
+        "y": 768.1735663414001,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "b44bb5fa.e9aaf8"\r
+                "7725c009.749b4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b44bb5fa.e9aaf8",\r
+        "id": "7725c009.749b4",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-lanport-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-lanport-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1733.267204284668,\r
-        "y": 871.0623145103455,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1654.9338912963867,\r
+        "y": 767.6943182945251,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "f02a5298.2eefc",\r
+        "id": "c6ae21b.9d991e",\r
         "type": "outcome",\r
         "name": "ActivateSDWANLanPortInstance",\r
         "xml": "<outcome value='ActivateSDWANLanPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1272.743507385254,\r
-        "y": 1148.7915625572205,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1202.7434997558594,\r
+        "y": 1132.090250492096,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "3fa74ce7.5a3b6c"\r
+                "a9085f43.fb5d98"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3fa74ce7.5a3b6c",\r
+        "id": "a9085f43.fb5d98",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-lanport-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-lanport-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1690.2671585083008,\r
-        "y": 1148.3123240470886,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1620.2671508789062,\r
+        "y": 1131.611011981964,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "824d42e5.fe91b",\r
+        "id": "a8e829e3.8183",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANLanPortInstance",\r
         "xml": "<outcome value='DeactivateSDWANLanPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1258.743507385254,\r
-        "y": 1435.0415625572205,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1180.4101333618164,\r
+        "y": 1473.3400702476501,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "c7eaff30.b937a"\r
+                "a0352b06.1ab6a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c7eaff30.b937a",\r
+        "id": "a0352b06.1ab6a",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-lanport-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-lanport-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1676.2671585083008,\r
-        "y": 1434.5623240470886,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1597.9337844848633,\r
+        "y": 1472.8608317375183,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "c19404b2.ac4d9",\r
+        "id": "63b5bf9.29c61c",\r
         "type": "outcome",\r
         "name": "DeleteSDWANLanPortInstance",\r
         "xml": "<outcome value='DeleteSDWANLanPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1222.743507385254,\r
-        "y": 1698.0415625572205,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1156.0768356323242,\r
+        "y": 1804.6734852790833,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "611bfd14.6cb0c4"\r
+                "d935e9d8.5a3f98"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "611bfd14.6cb0c4",\r
+        "id": "d935e9d8.5a3f98",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vf-operation-lanport-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-lanport-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1640.2671585083008,\r
-        "y": 1697.5623240470886,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1573.600486755371,\r
+        "y": 1804.1942467689514,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "47a5544f.c67324",\r
+        "id": "d6e391fa.c98b78",\r
         "type": "outcome",\r
         "name": "update",\r
         "xml": "<outcome value='update'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 664.0000076293945,\r
-        "y": 1826.2876539230347,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 590.6667098999023,\r
+        "y": 1842.9196071624756,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "7a09cd0b.a3ae6c"\r
+                "11620b80.062a65"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7a09cd0b.a3ae6c",\r
+        "id": "11620b80.062a65",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 838.3335037231445,\r
-        "y": 1830.874140739441,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 771.6668319702148,\r
+        "y": 1937.5060634613037,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "f9c37f80.58b198"\r
+                "3c40302c.ff9b98"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f9c37f80.58b198",\r
+        "id": "3c40302c.ff9b98",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 994.3335037231445,\r
-        "y": 1900.874140739441,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 924.3335113525391,\r
+        "y": 2042.5059614181519,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "4313d5d.b934a2c",\r
-                "96008004.f3fb08"\r
+                "69288b61.625154",\r
+                "ce72f259.349b28"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4313d5d.b934a2c",\r
+        "id": "69288b61.625154",\r
         "type": "outcome",\r
         "name": "SdwanBandwidthChange",\r
         "xml": "<outcome value='SdwanBandwidthChange'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1232.999984741211,\r
-        "y": 1856.2877740859985,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1167.9998931884766,\r
+        "y": 2001.2531538009644,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "4a9a8312.107f34"\r
+                "66378131.684b6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4a9a8312.107f34",\r
+        "id": "66378131.684b6",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-bandwidth-policy-change",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-bandwidth-policy-change' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1626.5237884521484,\r
-        "y": 1856.8085417747498,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1561.5237579345703,\r
+        "y": 2020.1070356369019,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "96008004.f3fb08",\r
+        "id": "ce72f259.349b28",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1158.714340209961,\r
-        "y": 1929.7313776016235,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1088.7141876220703,\r
+        "y": 2089.696635246277,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "da42a936.4d80e8"\r
+                "51152d6d.2147ec"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "da42a936.4d80e8",\r
+        "id": "51152d6d.2147ec",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1311.9999923706055,\r
-        "y": 1929.7877740859985,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1252.000015258789,\r
+        "y": 2094.7529706954956,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "409c63f3.0be97c",\r
+        "id": "f4f08860.8e36f",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2006.8573913574219,\r
-        "y": 366.987060546875,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1928.5240783691406,\r
+        "y": 263.6190643310547,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "cb5df7e4.b1ee5",\r
-                "977a2626.95574"\r
+                "4bf22256.7fc7ac",\r
+                "c762aa36.1446a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cb5df7e4.b1ee5",\r
+        "id": "4bf22256.7fc7ac",\r
         "type": "set",\r
         "name": "set skip-mdsal-update to Y",\r
         "xml": "<set>\n<parameter name='skip-mdsal-update' value='Y' />\n",\r
         "comments": "",\r
-        "x": 2253.6429443359375,\r
-        "y": 343.3411045074463,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 2175.3096313476562,\r
+        "y": 239.97310829162598,\r
+        "z": "c4b0d07d.92515",\r
         "wires": []\r
     },\r
     {\r
-        "id": "977a2626.95574",\r
+        "id": "c762aa36.1446a8",\r
         "type": "set",\r
         "name": "set ack-final to 'N' (default)",\r
         "xml": "<set>\n<parameter name='ack-final' value='N' />\n",\r
         "comments": "",\r
-        "x": 2254.071517944336,\r
-        "y": 383.34118843078613,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 2175.7382049560547,\r
+        "y": 279.9731922149658,\r
+        "z": "c4b0d07d.92515",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f8118221.e92548",\r
+        "id": "e1bfb2c0.c48e28",\r
         "type": "switchNode",\r
         "name": "so-response-url empty?",\r
         "xml": "<switch test='`length($vf-module-topology-operation-input.sdnc-request-header.svc-notification-url) == 0`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1141.4285583496094,\r
-        "y": 220.98703002929688,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1063.0952453613281,\r
+        "y": 117.61903381347656,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "6aa69e65.ea868",\r
-                "8240759e.2b7448"\r
+                "33bd04c7.af5b24",\r
+                "f2d7cddb.b68ca"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6aa69e65.ea868",\r
+        "id": "33bd04c7.af5b24",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1366.4285583496094,\r
-        "y": 176.98703002929688,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1288.0952453613281,\r
+        "y": 73.61903381347656,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "327527d3.7b4b18"\r
+                "782ea3fd.5ac0f4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8240759e.2b7448",\r
+        "id": "f2d7cddb.b68ca",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1356.4285583496094,\r
-        "y": 268.9870300292969,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1278.0952453613281,\r
+        "y": 165.61903381347656,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "7a731e6.34210e"\r
+                "571c94fa.79ac6c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7a731e6.34210e",\r
+        "id": "571c94fa.79ac6c",\r
         "type": "switchNode",\r
         "name": "so-response-url = ignored URL?",\r
         "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-notification-url == $prop.so.ignore-url`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1578.4285583496094,\r
-        "y": 269.9870300292969,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1500.0952453613281,\r
+        "y": 166.61903381347656,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "d46d074d.48dc58",\r
-                "6fce7505.b4aa9c"\r
+                "4b5b497a.23ca3",\r
+                "82a707d0.94da68"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d46d074d.48dc58",\r
+        "id": "4b5b497a.23ca3",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1818.4285583496094,\r
-        "y": 268.9870300292969,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1740.0952453613281,\r
+        "y": 165.61903381347656,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "327527d3.7b4b18"\r
+                "782ea3fd.5ac0f4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6fce7505.b4aa9c",\r
+        "id": "82a707d0.94da68",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1826.4285583496094,\r
-        "y": 369.9870300292969,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1748.0952453613281,\r
+        "y": 266.61903381347656,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "409c63f3.0be97c"\r
+                "f4f08860.8e36f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "327527d3.7b4b18",\r
+        "id": "782ea3fd.5ac0f4",\r
         "type": "call",\r
         "name": "call vf-module-topology-operation-assign-sync",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-assign-sync' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2325.285858154297,\r
-        "y": 175.1298828125,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 2246.9525451660156,\r
+        "y": 71.76188659667969,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "486c23d4.36def4",\r
+        "id": "df9ced4b.6be258",\r
         "type": "execute",\r
         "name": "execute getProperties",\r
         "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",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1132.3376159667969,\r
-        "y": 129.81817626953125,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 1054.0043029785156,\r
+        "y": 26.450180053710938,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "fcc6559a.f79908",\r
+        "id": "69a629d9.7b14c",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 941.4286804199219,\r
-        "y": 128,\r
-        "z": "8b0e50c0.d902",\r
+        "x": 863.0953674316406,\r
+        "y": 24.632003784179688,\r
+        "z": "c4b0d07d.92515",\r
         "wires": [\r
             [\r
-                "486c23d4.36def4",\r
-                "f8118221.e92548"\r
+                "df9ced4b.6be258",\r
+                "e1bfb2c0.c48e28"\r
             ]\r
         ]\r
+    },\r
+    {\r
+        "id": "f1d4d27b.a55f18",\r
+        "type": "outcome",\r
+        "name": "CreateSOTNUniInstance",\r
+        "xml": "<outcome value='CreateSOTNUniInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1180,\r
+        "y": 841.6666870117188,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            [\r
+                "7c693995.3f2d28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c693995.3f2d28",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vf-operation-uni-create",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-uni-create' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1652.523696899414,\r
+        "y": 841.1874389648438,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "470b9ad1.39ed14",\r
+        "type": "outcome",\r
+        "name": "ActivateSOTNUniInstance",\r
+        "xml": "<outcome value='ActivateSOTNUniInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1194.9999923706055,\r
+        "y": 1208.3333101272583,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            [\r
+                "7e2db8fc.02b99"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e2db8fc.02b99",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vf-operation-uni-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-uni-activate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1605.8568649291992,\r
+        "y": 1206.187252998352,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ccae6641.31434",\r
+        "type": "outcome",\r
+        "name": "DeactivateSOTNUniInstance",\r
+        "xml": "<outcome value='DeactivateSOTNUniInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1155.2777099609375,\r
+        "y": 1543.6109008789062,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            [\r
+                "d1293598.e627c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1293598.e627c8",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vf-operation-uni-deactivate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-uni-deactivate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1581.1347045898438,\r
+        "y": 1541.4649047851562,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "24867b99.975184",\r
+        "type": "outcome",\r
+        "name": "DeleteSOTNUniInstance",\r
+        "xml": "<outcome value='DeleteSOTNUniInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1131.9444122314453,\r
+        "y": 1880.2776288986206,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            [\r
+                "7e42b134.72d018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e42b134.72d018",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vf-operation-uni-delete",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-uni-delete' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1554.4679718017578,\r
+        "y": 1881.4649152755737,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "86ad5770.f9ee38",\r
+        "type": "outcome",\r
+        "name": "DeleteSOTNL2VpnInstance",\r
+        "xml": "<outcome value='DeleteSOTNL2VpnInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1130.2777252197266,\r
+        "y": 1915.2776594161987,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            [\r
+                "a36b8be3.d2254"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a36b8be3.d2254",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vf-operation-l2vpn-delete",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-l2vpn-delete' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1552.801284790039,\r
+        "y": 1916.4649457931519,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6a8695d.564e28",\r
+        "type": "outcome",\r
+        "name": "DeactivateSOTNL2VpnInstance",\r
+        "xml": "<outcome value='DeactivateSOTNL2VpnInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1183.61083984375,\r
+        "y": 1590.2775268554688,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            [\r
+                "ca6eae0f.1d2c38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca6eae0f.1d2c38",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vf-operation-l2vpn-deactivate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-l2vpn-deactivate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1597.8012084960938,\r
+        "y": 1589.7981262207031,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5441c097.300118",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vf-operation-l2vpn-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-l2vpn-activate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1633.6109619140625,\r
+        "y": 1240.2778930664062,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7418d7ec.38a8f",\r
+        "type": "outcome",\r
+        "name": "ActivateSOTNL2VpnInstance",\r
+        "xml": "<outcome value='ActivateSOTNL2VpnInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1209.4207458496094,\r
+        "y": 1242.4239501953125,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            [\r
+                "5441c097.300118"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd308409.06664",\r
+        "type": "outcome",\r
+        "name": "CreateSOTNL2VpnInstance",\r
+        "xml": "<outcome value='CreateSOTNL2VpnInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1198.6110229492188,\r
+        "y": 881.9444274902344,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            [\r
+                "3fcd184d.9e71a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3fcd184d.9e71a",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vf-operation-l2vpn-create",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-l2vpn-create' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1672.8011474609375,\r
+        "y": 879.7983093261719,\r
+        "z": "c4b0d07d.92515",\r
+        "wires": [\r
+            []\r
+        ]\r
     }\r
 ]
\ No newline at end of file
index 1336db5..862af35 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "7f4aec0b.5502f4",\r
+        "id": "8fdeb7a9.28b73",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 330,\r
-        "y": 210.98507690429688,\r
-        "z": "f5eee496.37583",\r
+        "x": 133.33334350585938,\r
+        "y": 198.65174865722656,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "3c7ef46a.98dca4"\r
+                "ac89694.ba92398"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3c7ef46a.98dca4",\r
+        "id": "ac89694.ba92398",\r
         "type": "service-logic",\r
         "name": "GENERIC-RESOURCE-API ${project.version}",\r
         "module": "GENERIC-RESOURCE-API",\r
         "comments": "",\r
         "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}'>",\r
         "outputs": 1,\r
-        "x": 413.28570556640625,\r
-        "y": 272.2231750488281,\r
-        "z": "f5eee496.37583",\r
+        "x": 216.61904907226562,\r
+        "y": 259.8898468017578,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "b47a6501.64ba38"\r
+                "4ed3dee7.bee43"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b47a6501.64ba38",\r
+        "id": "4ed3dee7.bee43",\r
         "type": "method",\r
         "name": "method vnf-topology-operation",\r
         "xml": "<method rpc='vnf-topology-operation' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 405.42862701416016,\r
-        "y": 334.985071182251,\r
-        "z": "f5eee496.37583",\r
+        "x": 208.76197052001953,\r
+        "y": 322.65174293518066,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "76bed0c3.5ba96"\r
+                "323edb9d.64f90c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "af2b7b93.b6f818",\r
+        "id": "f6611062.32edc8",\r
         "type": "comment",\r
         "name": "vnf-topology-operation",\r
         "info": "",\r
         "comments": "",\r
-        "x": 729.9162979125977,\r
-        "y": 54,\r
-        "z": "f5eee496.37583",\r
+        "x": 533.249641418457,\r
+        "y": 41.66667175292969,\r
+        "z": "4222f00.ce0af9",\r
         "wires": []\r
     },\r
     {\r
-        "id": "76bed0c3.5ba96",\r
+        "id": "323edb9d.64f90c",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 429.16676330566406,\r
-        "y": 664.6785974502563,\r
-        "z": "f5eee496.37583",\r
+        "x": 232.50010681152344,\r
+        "y": 652.345269203186,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "c01d08e.c985a78",\r
-                "f3cdf661.920ac",\r
-                "33260e4d.c20b2a"\r
+                "bb8e5eb.0d904a",\r
+                "a9e4287a.aac75",\r
+                "f6d8c8e4.810ef8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c01d08e.c985a78",\r
+        "id": "bb8e5eb.0d904a",\r
         "type": "returnSuccess",\r
         "name": "return success",\r
         "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",\r
         "comments": "",\r
-        "x": 721.6667175292969,\r
-        "y": 819.8426303863525,\r
-        "z": "f5eee496.37583",\r
+        "x": 525.0000610351562,\r
+        "y": 807.5093021392822,\r
+        "z": "4222f00.ce0af9",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f3cdf661.920ac",\r
+        "id": "a9e4287a.aac75",\r
         "type": "switchNode",\r
         "name": "switch svc-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 724.5714340209961,\r
-        "y": 662.8898410797119,\r
-        "z": "f5eee496.37583",\r
+        "x": 527.9047775268555,\r
+        "y": 650.5565128326416,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "6a62e528.843adc",\r
-                "27ec3c87.0a16a4",\r
-                "141ab523.6149e3",\r
-                "8445a42.64341d8",\r
-                "baec8114.d828c8",\r
-                "90f19b33.a1e3a",\r
-                "26901c7e.371ebc"\r
+                "94449c01.485b08",\r
+                "ab1de4a6.ec9de8",\r
+                "22cb5ee7.7cac7a",\r
+                "1bb1a526.b8fb8b",\r
+                "d38893a3.06ce68",\r
+                "7c2e0e4c.dbf17",\r
+                "80230dcd.458b9"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6a62e528.843adc",\r
+        "id": "94449c01.485b08",\r
         "type": "outcome",\r
         "name": "assign",\r
         "xml": "<outcome value='assign'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1059.3809814453125,\r
-        "y": 490.5089511871338,\r
-        "z": "f5eee496.37583",\r
+        "x": 862.7143249511719,\r
+        "y": 478.1756229400635,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "1151efa6.7d7988"\r
+                "30e9386b.1bf9e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "27ec3c87.0a16a4",\r
+        "id": "ab1de4a6.ec9de8",\r
         "type": "outcome",\r
         "name": "unassign",\r
         "xml": "<outcome value='unassign'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1135.4287996292114,\r
-        "y": 1259.6997060775757,\r
-        "z": "f5eee496.37583",\r
+        "x": 938.7621431350708,\r
+        "y": 1247.3663778305054,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "b7aab17f.d8737"\r
+                "e1715245.60eaa"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8445a42.64341d8",\r
+        "id": "1bb1a526.b8fb8b",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1119.1430358886719,\r
-        "y": 1947.8899335861206,\r
-        "z": "f5eee496.37583",\r
+        "x": 922.4763793945312,\r
+        "y": 1935.5566053390503,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "1a454130.e9b437"\r
+                "6484b763.09f248"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1a454130.e9b437",\r
+        "id": "6484b763.09f248",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
         "xml": "<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-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",\r
         "comments": "",\r
-        "x": 1352.3334655761719,\r
-        "y": 1947.8899946212769,\r
-        "z": "f5eee496.37583",\r
+        "x": 1155.6668090820312,\r
+        "y": 1935.5566663742065,\r
+        "z": "4222f00.ce0af9",\r
         "wires": []\r
     },\r
     {\r
-        "id": "33260e4d.c20b2a",\r
+        "id": "f6d8c8e4.810ef8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:validate-vnf-input",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-vnf-input' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 830.4166870117188,\r
-        "y": 415.3661289215088,\r
-        "z": "f5eee496.37583",\r
+        "x": 633.7500305175781,\r
+        "y": 403.0328006744385,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "b1c75a1f.b736a",\r
+        "id": "429c50f6.4998d",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1941.857307434082,\r
-        "y": 1213.4137859344482,\r
-        "z": "f5eee496.37583",\r
+        "x": 1758.52392578125,\r
+        "y": 1224.4137573242188,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "b7aab17f.d8737",\r
+        "id": "e1715245.60eaa",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-unassign",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-unassign' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1499.5239305496216,\r
-        "y": 1264.4137868881226,\r
-        "z": "f5eee496.37583",\r
+        "x": 1304.52392578125,\r
+        "y": 1268.7471923828125,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "141ab523.6149e3",\r
+        "id": "22cb5ee7.7cac7a",\r
         "type": "outcome",\r
         "name": "deactivate",\r
         "xml": "<outcome value='deactivate'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1104.5238800048828,\r
-        "y": 999.080415725708,\r
-        "z": "f5eee496.37583",\r
+        "x": 907.8572235107422,\r
+        "y": 986.7470874786377,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "174a6915.f20dff"\r
+                "cdaea7ef.202f1"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9c2d6c28.9eabb8",\r
+        "id": "5f7fbdef.90e2d4",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1898.666877746582,\r
-        "y": 872.9850749969482,\r
-        "z": "f5eee496.37583",\r
+        "x": 1710.33349609375,\r
+        "y": 885.6517333984375,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "baec8114.d828c8",\r
+        "id": "d38893a3.06ce68",\r
         "type": "outcome",\r
         "name": "activate",\r
         "xml": "<outcome value='activate'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1067.3333129882812,\r
-        "y": 660.6517143249512,\r
-        "z": "f5eee496.37583",\r
+        "x": 870.6666564941406,\r
+        "y": 648.3183860778809,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "272242b5.b176e6"\r
+                "b35b44fe.c5e848"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "90f19b33.a1e3a",\r
+        "id": "7c2e0e4c.dbf17",\r
         "type": "outcome",\r
         "name": "create",\r
         "xml": "<outcome value='create'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1137.0002298355103,\r
-        "y": 1392.0713729858398,\r
-        "z": "f5eee496.37583",\r
+        "x": 940.3335733413696,\r
+        "y": 1379.7380447387695,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "e8ab363a.a04b1"\r
+                "fe327fc4.4bce4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "26901c7e.371ebc",\r
+        "id": "80230dcd.458b9",\r
         "type": "outcome",\r
         "name": "delete",\r
         "xml": "<outcome value='delete'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1130.000228881836,\r
-        "y": 1703.0713829994202,\r
-        "z": "f5eee496.37583",\r
+        "x": 933.3335723876953,\r
+        "y": 1690.7380547523499,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "948c6273.9d905"\r
+                "b29c169a.b9c29"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a9e35ff1.79f4e8",\r
+        "id": "dcb80299.88d2d8",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1309.0000839233398,\r
-        "y": 716.0713911056519,\r
-        "z": "f5eee496.37583",\r
+        "x": 1112.3334274291992,\r
+        "y": 703.7380628585815,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "f87379c.1e07488",\r
-                "c36c43cc.aeeda8",\r
-                "13164371.5de335",\r
-                "a2611719.24c7b",\r
-                "176f424b.dada06",\r
-                "39f3b84c.87449"\r
+                "e5663cdc.f3bed8",\r
+                "7304998c.6c78d8",\r
+                "8d2f7cd0.1216b",\r
+                "e5c3291c.26157",\r
+                "6ed7f901.e4837",\r
+                "f1eb2324.c790d",\r
+                "793759a8.9ea39"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c36c43cc.aeeda8",\r
+        "id": "7304998c.6c78d8",\r
         "type": "outcome",\r
         "name": "ActivateSiteInstance",\r
         "xml": "<outcome value='ActivateSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1569.4763259887695,\r
-        "y": 638.5506420135498,\r
-        "z": "f5eee496.37583",\r
+        "x": 1372.809669494629,\r
+        "y": 626.2173137664795,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "bb367534.ef4ec8"\r
+                "fe22d944.1fc73"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f87379c.1e07488",\r
+        "id": "e5663cdc.f3bed8",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1542.3811111450195,\r
-        "y": 873.9286479949951,\r
-        "z": "f5eee496.37583",\r
+        "x": 1342.3810424804688,\r
+        "y": 888.2620239257812,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "9c2d6c28.9eabb8"\r
+                "5f7fbdef.90e2d4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "272242b5.b176e6",\r
+        "id": "b35b44fe.c5e848",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1248.0000839233398,\r
-        "y": 661.0713911056519,\r
-        "z": "f5eee496.37583",\r
+        "x": 1051.3334274291992,\r
+        "y": 648.7380628585815,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "a9e35ff1.79f4e8"\r
+                "dcb80299.88d2d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bb367534.ef4ec8",\r
+        "id": "fe22d944.1fc73",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1936.000129699707,\r
-        "y": 641.0714244842529,\r
-        "z": "f5eee496.37583",\r
+        "x": 1739.3334732055664,\r
+        "y": 628.7380962371826,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "bf370495.757518",\r
+        "id": "ca1873d2.9915c8",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1367.0001983642578,\r
-        "y": 1032.071382522583,\r
-        "z": "f5eee496.37583",\r
+        "x": 1170.3335418701172,\r
+        "y": 1019.7380542755127,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "49eaa74e.8c768",\r
-                "673e8d63.ef464c",\r
-                "6f7de94e.d598f",\r
-                "3bbdbf03.70f7",\r
-                "9e5f5985.9a8c28",\r
-                "12389cbe.8a7ceb"\r
+                "c7150aee.048ae",\r
+                "a855fae3.c07",\r
+                "149bd874.b6e848",\r
+                "f2c6835b.e4dce8",\r
+                "23e0c188.77d676",\r
+                "7fbdfe6d.74e92"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "673e8d63.ef464c",\r
+        "id": "a855fae3.c07",\r
         "type": "outcome",\r
         "name": "DeactivateSiteInstance",\r
         "xml": "<outcome value='DeactivateSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1610.4763946533203,\r
-        "y": 983.5506310462952,\r
-        "z": "f5eee496.37583",\r
+        "x": 1413.8097381591797,\r
+        "y": 971.2173027992249,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "76abc0e2.85bc5"\r
+                "b98150d7.417838"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "49eaa74e.8c768",\r
+        "id": "c7150aee.048ae",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1585.3811111450195,\r
-        "y": 1213.9286785125732,\r
-        "z": "f5eee496.37583",\r
+        "x": 1395.3810424804688,\r
+        "y": 1223.2620239257812,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "b1c75a1f.b736a"\r
+                "429c50f6.4998d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "174a6915.f20dff",\r
+        "id": "cdaea7ef.202f1",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1306.0001983642578,\r
-        "y": 977.071382522583,\r
-        "z": "f5eee496.37583",\r
+        "x": 1109.3335418701172,\r
+        "y": 964.7380542755127,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "bf370495.757518"\r
+                "ca1873d2.9915c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "76abc0e2.85bc5",\r
+        "id": "b98150d7.417838",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1980.0001983642578,\r
-        "y": 981.0714135169983,\r
-        "z": "f5eee496.37583",\r
+        "x": 1783.3335418701172,\r
+        "y": 968.738085269928,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "6945b0fa.57898",\r
+        "id": "e3b42cf5.a45af",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1335.333625793457,\r
-        "y": 1478.6576824188232,\r
-        "z": "f5eee496.37583",\r
+        "x": 1138.6669692993164,\r
+        "y": 1466.324354171753,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "878cf713.a74bf",\r
-                "6f7cdd9b.38d304",\r
-                "6f40b7fc.70cde",\r
-                "40ffdf8b.d98258",\r
-                "6fc6cf80.2742",\r
-                "96eee0bd.7d8858"\r
+                "6adc7d8f.7076d4",\r
+                "b51aa3b1.e2b098",\r
+                "b80b7710.1796",\r
+                "7ffb66a7.7d6c7",\r
+                "68aa167c.112dc",\r
+                "3353033f.efa8dc",\r
+                "a5d6fe4e.3bf49"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6f7cdd9b.38d304",\r
+        "id": "b51aa3b1.e2b098",\r
         "type": "outcome",\r
         "name": "CreateSiteInstance",\r
         "xml": "<outcome value='CreateSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1590.8101167678833,\r
-        "y": 1331.1370167732239,\r
-        "z": "f5eee496.37583",\r
+        "x": 1394.1434602737427,\r
+        "y": 1318.8036885261536,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "b46cf4df.32707"\r
+                "ca881a35.a5529"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "878cf713.a74bf",\r
+        "id": "6adc7d8f.7076d4",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1557.714599609375,\r
-        "y": 1552.5149021148682,\r
-        "z": "f5eee496.37583",\r
+        "x": 1367.714485168457,\r
+        "y": 1586.8482398986816,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "2c3d033f.ef6ef4"\r
+                "a995e733.6624d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e8ab363a.a04b1",\r
+        "id": "fe327fc4.4bce4",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1319.3337144851685,\r
-        "y": 1389.6577405929565,\r
-        "z": "f5eee496.37583",\r
+        "x": 1122.6670579910278,\r
+        "y": 1377.3244123458862,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "6945b0fa.57898"\r
+                "e3b42cf5.a45af"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b46cf4df.32707",\r
+        "id": "ca881a35.a5529",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1967.333821296692,\r
-        "y": 1329.657775402069,\r
-        "z": "f5eee496.37583",\r
+        "x": 1770.6671648025513,\r
+        "y": 1317.3244471549988,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "2c3d033f.ef6ef4",\r
+        "id": "a995e733.6624d",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1698.0001754760742,\r
-        "y": 1553.571325302124,\r
-        "z": "f5eee496.37583",\r
+        "x": 1508.0000610351562,\r
+        "y": 1587.9046630859375,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "c7a1cbe3.987808",\r
+        "id": "3304e593.ae05a2",\r
         "type": "switchNode",\r
         "name": "switch request-action",\r
         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1376.000228881836,\r
-        "y": 1755.5713829994202,\r
-        "z": "f5eee496.37583",\r
+        "x": 1179.3335723876953,\r
+        "y": 1743.2380547523499,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "c62eb926.85d33",\r
-                "7a7ae529.cd458c",\r
-                "5d404aca.28015c",\r
-                "24ef76eb.fe68ca",\r
-                "d11af3be.8899c",\r
-                "e8482541.be4a68"\r
+                "f68499ae.c551c",\r
+                "61c977c4.a99308",\r
+                "3a60ff9d.338988",\r
+                "6cb20a0.dcd7c78",\r
+                "c9636adc.daf0f8",\r
+                "c849034b.de7bb",\r
+                "36a6c0b5.0c1d9"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7a7ae529.cd458c",\r
+        "id": "61c977c4.a99308",\r
         "type": "outcome",\r
         "name": "DeleteSiteInstance",\r
         "xml": "<outcome value='DeleteSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1616.476448059082,\r
-        "y": 1701.0506267547607,\r
-        "z": "f5eee496.37583",\r
+        "x": 1419.8097915649414,\r
+        "y": 1688.7172985076904,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "7f9a71f7.e7a108"\r
+                "7e6766e4.d1d63"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c62eb926.85d33",\r
+        "id": "f68499ae.c551c",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1581.381233215332,\r
-        "y": 1951.428861618042,\r
-        "z": "f5eee496.37583",\r
+        "x": 1389.7146606445312,\r
+        "y": 1965.7623291015625,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "b15da572.e87ef"\r
+                "7e606597.d9e3f4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "948c6273.9d905",\r
+        "id": "b29c169a.b9c29",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1315.000228881836,\r
-        "y": 1700.5713829994202,\r
-        "z": "f5eee496.37583",\r
+        "x": 1118.3335723876953,\r
+        "y": 1688.2380547523499,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "c7a1cbe3.987808"\r
+                "3304e593.ae05a2"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7f9a71f7.e7a108",\r
+        "id": "7e6766e4.d1d63",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1989.0002517700195,\r
-        "y": 1698.5713787078857,\r
-        "z": "f5eee496.37583",\r
+        "x": 1792.333595275879,\r
+        "y": 1686.2380504608154,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "b15da572.e87ef",\r
+        "id": "7e606597.d9e3f4",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1721.6668090820312,\r
-        "y": 1952.4852848052979,\r
-        "z": "f5eee496.37583",\r
+        "x": 1525.0001831054688,\r
+        "y": 1958.4853515625,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "13164371.5de335",\r
+        "id": "8d2f7cd0.1216b",\r
         "type": "outcome",\r
         "name": "ActivateSDWANDeviceInstance",\r
         "xml": "<outcome value='ActivateSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1600.6667556762695,\r
-        "y": 689.571455001831,\r
-        "z": "f5eee496.37583",\r
+        "x": 1404.000099182129,\r
+        "y": 677.2381267547607,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "bb7369d2.79a9b"\r
+                "38a8e37a.8a0dfc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bb7369d2.79a9b",\r
+        "id": "38a8e37a.8a0dfc",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2040.1904373168945,\r
-        "y": 688.092206954956,\r
-        "z": "f5eee496.37583",\r
+        "x": 1843.523780822754,\r
+        "y": 675.7588787078857,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "6f7de94e.d598f",\r
+        "id": "149bd874.b6e848",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANDeviceInstance",\r
         "xml": "<outcome value='DeactivateSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1651.666633605957,\r
-        "y": 1031.571409702301,\r
-        "z": "f5eee496.37583",\r
+        "x": 1454.9999771118164,\r
+        "y": 1019.2380814552307,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "5c24aa9.f8036d4"\r
+                "5a563206.aad004"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5c24aa9.f8036d4",\r
+        "id": "5a563206.aad004",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2108.190330505371,\r
-        "y": 1031.0922451019287,\r
-        "z": "f5eee496.37583",\r
+        "x": 1911.5236740112305,\r
+        "y": 1018.7589168548584,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "fd3d0953.02e43",\r
+        "id": "3a9b518c.93c52e",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2037.666633605957,\r
-        "y": 728.5713939666748,\r
-        "z": "f5eee496.37583",\r
+        "x": 1840.9999771118164,\r
+        "y": 716.2380657196045,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "a2611719.24c7b",\r
+        "id": "e5c3291c.26157",\r
         "type": "outcome",\r
         "name": "ActivateSDWANPortInstance",\r
         "xml": "<outcome value='ActivateSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1594.142951965332,\r
-        "y": 736.0506114959717,\r
-        "z": "f5eee496.37583",\r
+        "x": 1397.4762954711914,\r
+        "y": 723.7172832489014,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "fd3d0953.02e43"\r
+                "3a9b518c.93c52e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3bbdbf03.70f7",\r
+        "id": "f2c6835b.e4dce8",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANPortInstance",\r
         "xml": "<outcome value='DeactivateSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1643.6666793823242,\r
-        "y": 1069.904725074768,\r
-        "z": "f5eee496.37583",\r
+        "x": 1447.0000228881836,\r
+        "y": 1057.5713968276978,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "25fa8901.ea4226"\r
+                "9cd1da68.7c00b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "25fa8901.ea4226",\r
+        "id": "9cd1da68.7c00b8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2118.190330505371,\r
-        "y": 1086.4255270957947,\r
-        "z": "f5eee496.37583",\r
+        "x": 1921.5236740112305,\r
+        "y": 1074.0921988487244,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "6f40b7fc.70cde",\r
+        "id": "b80b7710.1796",\r
         "type": "outcome",\r
         "name": "CreateSDWANPortInstance",\r
         "xml": "<outcome value='CreateSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1640.6670122146606,\r
-        "y": 1419.9048511981964,\r
-        "z": "f5eee496.37583",\r
+        "x": 1444.00035572052,\r
+        "y": 1407.571522951126,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "cbbee8f6.313cb8"\r
+                "683a64bd.1411b4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cbbee8f6.313cb8",\r
+        "id": "683a64bd.1411b4",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2097.1906328201294,\r
-        "y": 1424.425630569458,\r
-        "z": "f5eee496.37583",\r
+        "x": 1900.5239763259888,\r
+        "y": 1412.0923023223877,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "5d404aca.28015c",\r
+        "id": "3a60ff9d.338988",\r
         "type": "outcome",\r
         "name": "DeleteSDWANPortInstance",\r
         "xml": "<outcome value='DeleteSDWANPortInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1652.3334655761719,\r
-        "y": 1811.9047713279724,\r
-        "z": "f5eee496.37583",\r
+        "x": 1455.6668090820312,\r
+        "y": 1799.571443080902,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "15dc39bf.cd04de"\r
+                "f08cabbe.1566c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "15dc39bf.cd04de",\r
+        "id": "f08cabbe.1566c",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-wanport-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-wanport-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2078.8571853637695,\r
-        "y": 1811.4256267547607,\r
-        "z": "f5eee496.37583",\r
+        "x": 1882.190528869629,\r
+        "y": 1799.0922985076904,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "24ef76eb.fe68ca",\r
+        "id": "6cb20a0.dcd7c78",\r
         "type": "outcome",\r
         "name": "DeleteSDWANDeviceInstance",\r
         "xml": "<outcome value='DeleteSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1661.0316162109375,\r
-        "y": 1752.102677822113,\r
-        "z": "f5eee496.37583",\r
+        "x": 1464.3649597167969,\r
+        "y": 1739.7693495750427,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "ebf4bbea.e5ce9"\r
+                "353aaf17.4c28b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ebf4bbea.e5ce9",\r
+        "id": "353aaf17.4c28b8",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2093.555221557617,\r
-        "y": 1751.6233911514282,\r
-        "z": "f5eee496.37583",\r
+        "x": 1896.8885650634766,\r
+        "y": 1739.290062904358,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "40ffdf8b.d98258",\r
+        "id": "7ffb66a7.7d6c7",\r
         "type": "outcome",\r
         "name": "CreateSDWANDeviceInstance",\r
         "xml": "<outcome value='CreateSDWANDeviceInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1656.031361579895,\r
-        "y": 1376.1028146743774,\r
-        "z": "f5eee496.37583",\r
+        "x": 1459.3647050857544,\r
+        "y": 1363.7694864273071,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "618700fa.fa57e"\r
+                "be3e977e.2c5d4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "618700fa.fa57e",\r
+        "id": "be3e977e.2c5d4",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:sdwan-vnf-topology-operation-device-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-vnf-topology-operation-device-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2112.555027961731,\r
-        "y": 1374.623628616333,\r
-        "z": "f5eee496.37583",\r
+        "x": 1915.8883714675903,\r
+        "y": 1362.2903003692627,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "176f424b.dada06",\r
+        "id": "6ed7f901.e4837",\r
         "type": "outcome",\r
         "name": "ActivateSDWANVpnInstance",\r
         "xml": "<outcome value='ActivateSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1598.2961502075195,\r
-        "y": 785.1484661102295,\r
-        "z": "f5eee496.37583",\r
+        "x": 1406.6295166015625,\r
+        "y": 764.4818115234375,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "4be7a0af.f34808"\r
+                "3bf7e2c.06ec69e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "39f3b84c.87449",\r
+        "id": "f1eb2324.c790d",\r
         "type": "outcome",\r
         "name": "ActivateSDWANSiteInstance",\r
         "xml": "<outcome value='ActivateSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1602.2961502075195,\r
-        "y": 827.8149089813232,\r
-        "z": "f5eee496.37583",\r
+        "x": 1410.6295166015625,\r
+        "y": 807.1482543945312,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "4be7a0af.f34808"\r
+                "3bf7e2c.06ec69e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4be7a0af.f34808",\r
+        "id": "3bf7e2c.06ec69e",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1873.296142578125,\r
-        "y": 805.8149607181549,\r
-        "z": "f5eee496.37583",\r
+        "x": 1681.629508972168,\r
+        "y": 785.1483061313629,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "f5fc6a61.fbff"\r
+                "8153499b.6e1098"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f5fc6a61.fbff",\r
+        "id": "8153499b.6e1098",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-activate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2251.2959899902344,\r
-        "y": 803.148619890213,\r
-        "z": "f5eee496.37583",\r
+        "x": 2059.6293563842773,\r
+        "y": 782.481965303421,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "8713d091.3458c8",\r
+        "id": "68ae2f99.4d69e",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-deactivate",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2304.3332138061523,\r
-        "y": 1141.9380941390991,\r
-        "z": "f5eee496.37583",\r
+        "x": 2107.6665573120117,\r
+        "y": 1129.6047658920288,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "61c74aac.7351c4",\r
+        "id": "2a02ee62.b6456a",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1907.3333053588867,\r
-        "y": 1143.6044387817383,\r
-        "z": "f5eee496.37583",\r
+        "x": 1710.666648864746,\r
+        "y": 1131.271110534668,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "8713d091.3458c8"\r
+                "68ae2f99.4d69e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "12389cbe.8a7ceb",\r
+        "id": "7fbdfe6d.74e92",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANSiteInstance",\r
         "xml": "<outcome value='DeactivateSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1649.3332901000977,\r
-        "y": 1165.6044034957886,\r
-        "z": "f5eee496.37583",\r
+        "x": 1452.666633605957,\r
+        "y": 1153.2710752487183,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "61c74aac.7351c4"\r
+                "2a02ee62.b6456a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9e5f5985.9a8c28",\r
+        "id": "23e0c188.77d676",\r
         "type": "outcome",\r
         "name": "DeactivateSDWANVpnInstance",\r
         "xml": "<outcome value='DeactivateSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1643.3332595825195,\r
-        "y": 1122.9379558563232,\r
-        "z": "f5eee496.37583",\r
+        "x": 1446.666603088379,\r
+        "y": 1110.604627609253,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "61c74aac.7351c4"\r
+                "2a02ee62.b6456a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6fc6cf80.2742",\r
+        "id": "68aa167c.112dc",\r
         "type": "outcome",\r
         "name": "CreateSDWANVpnInstance",\r
         "xml": "<outcome value='CreateSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1636.851692199707,\r
-        "y": 1474.592924118042,\r
-        "z": "f5eee496.37583",\r
+        "x": 1440.1850357055664,\r
+        "y": 1462.2595958709717,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "6a26d308.85095c"\r
+                "8a987eaf.1c41f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "96eee0bd.7d8858",\r
+        "id": "3353033f.efa8dc",\r
         "type": "outcome",\r
         "name": "CreateSDWANSiteInstance",\r
         "xml": "<outcome value='CreateSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1628.8516693115234,\r
-        "y": 1516.2593126296997,\r
-        "z": "f5eee496.37583",\r
+        "x": 1432.1850128173828,\r
+        "y": 1503.9259843826294,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "6a26d308.85095c"\r
+                "8a987eaf.1c41f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6a26d308.85095c",\r
+        "id": "8a987eaf.1c41f8",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1886.8516845703125,\r
-        "y": 1494.2593479156494,\r
-        "z": "f5eee496.37583",\r
+        "x": 1690.1850280761719,\r
+        "y": 1481.926019668579,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "b45845a5.efe788"\r
+                "ba617d6f.b174d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b45845a5.efe788",\r
+        "id": "ba617d6f.b174d",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-create",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2264.851531982422,\r
-        "y": 1491.5930070877075,\r
-        "z": "f5eee496.37583",\r
+        "x": 2068.1848754882812,\r
+        "y": 1479.2596788406372,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "d11af3be.8899c",\r
+        "id": "c9636adc.daf0f8",\r
         "type": "outcome",\r
         "name": "DeleteSDWANVpnInstance",\r
         "xml": "<outcome value='DeleteSDWANVpnInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1643.333381652832,\r
-        "y": 1858.9380779266357,\r
-        "z": "f5eee496.37583",\r
+        "x": 1446.6667251586914,\r
+        "y": 1846.6047496795654,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "f4a10691.8e0f9"\r
+                "74eb4885.217568"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e8482541.be4a68",\r
+        "id": "c849034b.de7bb",\r
         "type": "outcome",\r
         "name": "DeleteSDWANSiteInstance",\r
         "xml": "<outcome value='DeleteSDWANSiteInstance'>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1643.333381652832,\r
-        "y": 1899.604642868042,\r
-        "z": "f5eee496.37583",\r
+        "x": 1446.6667251586914,\r
+        "y": 1887.2713146209717,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "f4a10691.8e0f9"\r
+                "74eb4885.217568"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f4a10691.8e0f9",\r
+        "id": "74eb4885.217568",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 1893.3333740234375,\r
-        "y": 1878.6045017242432,\r
-        "z": "f5eee496.37583",\r
+        "x": 1696.6667175292969,\r
+        "y": 1866.2711734771729,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "ae8b0dcf.01d3b"\r
+                "1d78c22.9c0523e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ae8b0dcf.01d3b",\r
+        "id": "1d78c22.9c0523e",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-vpn-site-resource-delete",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2271.333221435547,\r
-        "y": 1875.9381608963013,\r
-        "z": "f5eee496.37583",\r
+        "x": 2074.6665649414062,\r
+        "y": 1863.604832649231,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "90dfa10c.d03aa",\r
+        "id": "4b721b98.8de544",\r
         "type": "set",\r
         "name": "set skip-mdsal-update to Y",\r
         "xml": "<set>\n<parameter name='skip-mdsal-update' value='Y' />\n",\r
         "comments": "",\r
-        "x": 2420.0318908691406,\r
-        "y": 381.4920959472656,\r
-        "z": "f5eee496.37583",\r
+        "x": 2223.365234375,\r
+        "y": 369.1587677001953,\r
+        "z": "4222f00.ce0af9",\r
         "wires": []\r
     },\r
     {\r
-        "id": "18cf87e0.6196e8",\r
+        "id": "19c05886.3013f7",\r
         "type": "set",\r
         "name": "set ack-final to 'N'",\r
         "xml": "<set>\n<parameter name='ack-final' value='N' />\n",\r
         "comments": "",\r
-        "x": 2391.841583251953,\r
-        "y": 445.8401184082031,\r
-        "z": "f5eee496.37583",\r
+        "x": 2195.1749267578125,\r
+        "y": 433.5067901611328,\r
+        "z": "4222f00.ce0af9",\r
         "wires": []\r
     },\r
     {\r
-        "id": "11b35a07.5a2e3e",\r
+        "id": "babbb832.10e11",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2183.381134033203,\r
-        "y": 384.4126281738281,\r
-        "z": "f5eee496.37583",\r
+        "x": 1986.7144775390625,\r
+        "y": 372.0792999267578,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "90dfa10c.d03aa",\r
-                "18cf87e0.6196e8"\r
+                "4b721b98.8de544",\r
+                "19c05886.3013f7"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2b315e75.81704a",\r
+        "id": "df28f745.38b6c8",\r
         "type": "comment",\r
         "name": "ack-final=N triggers Provider to call vnf-topology-operation-aysnc DG",\r
         "info": "",\r
         "comments": "",\r
-        "x": 2604.158966064453,\r
-        "y": 486.8094787597656,\r
-        "z": "f5eee496.37583",\r
+        "x": 2407.4923095703125,\r
+        "y": 474.4761505126953,\r
+        "z": "4222f00.ce0af9",\r
         "wires": []\r
     },\r
     {\r
-        "id": "14ca87f8.41176",\r
+        "id": "b74ae95.15c3798",\r
         "type": "switchNode",\r
         "name": "so-response-url empty?",\r
         "xml": "<switch test='`length($vnf-topology-operation-input.sdnc-request-header.svc-notification-url) == 0`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1289.2857971191406,\r
-        "y": 231.28570556640625,\r
-        "z": "f5eee496.37583",\r
+        "x": 1092.619140625,\r
+        "y": 218.95237731933594,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "26f3c83e.94f3d",\r
-                "8cb49b5.ced0668"\r
+                "d060b162.861068",\r
+                "174d2265.acef4e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "26f3c83e.94f3d",\r
+        "id": "d060b162.861068",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1514.2857971191406,\r
-        "y": 187.28570556640625,\r
-        "z": "f5eee496.37583",\r
+        "x": 1317.619140625,\r
+        "y": 174.95237731933594,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "98eada69.09cbf8"\r
+                "2d99ad86.7ea77a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8cb49b5.ced0668",\r
+        "id": "174d2265.acef4e",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1504.2857971191406,\r
-        "y": 279.28570556640625,\r
-        "z": "f5eee496.37583",\r
+        "x": 1307.619140625,\r
+        "y": 266.95237731933594,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "7f12b283.43e464"\r
+                "81914c1b.0b07d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7f12b283.43e464",\r
+        "id": "81914c1b.0b07d8",\r
         "type": "switchNode",\r
         "name": "so-response-url = ignored URL?",\r
         "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url == $prop.so.ignore-url`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1726.2857971191406,\r
-        "y": 280.28570556640625,\r
-        "z": "f5eee496.37583",\r
+        "x": 1529.619140625,\r
+        "y": 267.95237731933594,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "d9307a61.e9cdb8",\r
-                "3106a2ed.a08146"\r
+                "bf23c330.4d5838",\r
+                "51e5200d.187d08"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "98eada69.09cbf8",\r
+        "id": "2d99ad86.7ea77a",\r
         "type": "call",\r
         "name": "call vnf-topology-operation-assign-sync",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign-sync' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2190.2857971191406,\r
-        "y": 188.28570556640625,\r
-        "z": "f5eee496.37583",\r
+        "x": 1993.619140625,\r
+        "y": 175.95237731933594,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "d9307a61.e9cdb8",\r
+        "id": "bf23c330.4d5838",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1966.2857971191406,\r
-        "y": 279.28570556640625,\r
-        "z": "f5eee496.37583",\r
+        "x": 1769.619140625,\r
+        "y": 266.95237731933594,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "98eada69.09cbf8"\r
+                "2d99ad86.7ea77a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3106a2ed.a08146",\r
+        "id": "51e5200d.187d08",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1974.2857971191406,\r
-        "y": 380.28570556640625,\r
-        "z": "f5eee496.37583",\r
+        "x": 1777.619140625,\r
+        "y": 367.95237731933594,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "11b35a07.5a2e3e"\r
+                "babbb832.10e11"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "87242f67.49446",\r
+        "id": "3a76d55f.574fea",\r
         "type": "execute",\r
         "name": "execute getProperties",\r
         "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",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1302.6622619628906,\r
-        "y": 121.54547119140625,\r
-        "z": "f5eee496.37583",\r
+        "x": 1105.99560546875,\r
+        "y": 109.21214294433594,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "1151efa6.7d7988",\r
+        "id": "30e9386b.1bf9e",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1111.7533264160156,\r
-        "y": 119.727294921875,\r
-        "z": "f5eee496.37583",\r
+        "x": 915.086669921875,\r
+        "y": 107.39396667480469,\r
+        "z": "4222f00.ce0af9",\r
         "wires": [\r
             [\r
-                "14ca87f8.41176",\r
-                "87242f67.49446"\r
+                "b74ae95.15c3798",\r
+                "3a76d55f.574fea"\r
             ]\r
         ]\r
+    },\r
+    {\r
+        "id": "a5d6fe4e.3bf49",\r
+        "type": "outcome",\r
+        "name": "CreateSOTNUnderlayInstance",\r
+        "xml": "<outcome value='CreateSOTNUnderlayInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1440,\r
+        "y": 1541.6666259765625,\r
+        "z": "4222f00.ce0af9",\r
+        "wires": [\r
+            [\r
+                "b0a72405.4724e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0a72405.4724e8",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-create",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-create' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1896.5236206054688,\r
+        "y": 1546.187405347824,\r
+        "z": "4222f00.ce0af9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "793759a8.9ea39",\r
+        "type": "outcome",\r
+        "name": "ActivateSOTNUnderlayInstance",\r
+        "xml": "<outcome value='ActivateSOTNUnderlayInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1423.3333129882812,\r
+        "y": 845.9999420642853,\r
+        "z": "4222f00.ce0af9",\r
+        "wires": [\r
+            [\r
+                "a4e643a3.be23f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4e643a3.be23f",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1883.1903076171875,\r
+        "y": 840.520751953125,\r
+        "z": "4222f00.ce0af9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f77f4e2.24c688",\r
+        "type": "outcome",\r
+        "name": "DeactivateSOTNUnderlayInstance",\r
+        "xml": "<outcome value='DeactivateSOTNUnderlayInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1455,\r
+        "y": 1189.333251953125,\r
+        "z": "4222f00.ce0af9",\r
+        "wires": [\r
+            [\r
+                "5859b61d.7a069"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5859b61d.7a069",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-deactivate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-deactivate' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1923.1903076171875,\r
+        "y": 1192.1871948242188,\r
+        "z": "4222f00.ce0af9",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "36a6c0b5.0c1d9",\r
+        "type": "outcome",\r
+        "name": "DeleteSOTNUnderlayInstance",\r
+        "xml": "<outcome value='DeleteSOTNUnderlayInstance'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1455,\r
+        "y": 1921,\r
+        "z": "4222f00.ce0af9",\r
+        "wires": [\r
+            [\r
+                "93805448.bb27d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93805448.bb27d8",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-underlay-delete",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1893.1904296875,\r
+        "y": 1917.1873779296875,\r
+        "z": "4222f00.ce0af9",\r
+        "wires": [\r
+            []\r
+        ]\r
     }\r
 ]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.json
new file mode 100644 (file)
index 0000000..a7b5394
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "6ddd4074.f6564",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 234.80560302734375,\r
+        "y": 111.47219848632812,\r
+        "z": "d2e10b7b.600a68",\r
+        "wires": [\r
+            [\r
+                "ddeb5b5a.bb49b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddeb5b5a.bb49b",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 366.09129333496094,\r
+        "y": 160.71030712127686,\r
+        "z": "d2e10b7b.600a68",\r
+        "wires": [\r
+            [\r
+                "b1bc4dd3.fa521"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1bc4dd3.fa521",\r
+        "type": "method",\r
+        "name": "method sotn-vf-operation-l2vpn-activate",\r
+        "xml": "<method rpc='sotn-vf-operation-l2vpn-activate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 369.2342224121094,\r
+        "y": 245.47223091125488,\r
+        "z": "d2e10b7b.600a68",\r
+        "wires": [\r
+            [\r
+                "23b0f2c.b4c290e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23b0f2c.b4c290e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 510.3329429626465,\r
+        "y": 462.54641246795654,\r
+        "z": "d2e10b7b.600a68",\r
+        "wires": [\r
+            [\r
+                "6c6251b8.988708"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c6251b8.988708",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 778.2500610351562,\r
+        "y": 545.0833129882812,\r
+        "z": "d2e10b7b.600a68",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.json
new file mode 100644 (file)
index 0000000..99d429e
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "db0f78a5.c01a3",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 160.27777099609375,\r
+        "y": 91.94441223144531,\r
+        "z": "7ef93f2c.40fb2",\r
+        "wires": [\r
+            [\r
+                "d8303e2.7d965c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8303e2.7d965c",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 291.56346130371094,\r
+        "y": 141.18252086639404,\r
+        "z": "7ef93f2c.40fb2",\r
+        "wires": [\r
+            [\r
+                "c458b05f.c1372"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c458b05f.c1372",\r
+        "type": "method",\r
+        "name": "method sotn-vf-operation-l2vpn-create",\r
+        "xml": "<method rpc='sotn-vf-operation-l2vpn-create' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 294.7063903808594,\r
+        "y": 225.94444465637207,\r
+        "z": "7ef93f2c.40fb2",\r
+        "wires": [\r
+            [\r
+                "c5107308.c6aab"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5107308.c6aab",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 435.8051109313965,\r
+        "y": 443.01862621307373,\r
+        "z": "7ef93f2c.40fb2",\r
+        "wires": [\r
+            [\r
+                "4e54cc73.474b5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e54cc73.474b5c",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 703.7222290039062,\r
+        "y": 525.5555267333984,\r
+        "z": "7ef93f2c.40fb2",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.json
new file mode 100644 (file)
index 0000000..19781d0
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "90b43524.1bba",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 178.13888549804688,\r
+        "y": 111.47219848632812,\r
+        "z": "c6830f2a.6a9d68",\r
+        "wires": [\r
+            [\r
+                "389b8a0e.3a0a5e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "389b8a0e.3a0a5e",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 309.42457580566406,\r
+        "y": 160.71030712127686,\r
+        "z": "c6830f2a.6a9d68",\r
+        "wires": [\r
+            [\r
+                "39e685a3.66f172"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39e685a3.66f172",\r
+        "type": "method",\r
+        "name": "method sotn-vf-operation-l2vpn-deactivate",\r
+        "xml": "<method rpc='sotn-vf-operation-l2vpn-deactivate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 312.5675048828125,\r
+        "y": 245.47223091125488,\r
+        "z": "c6830f2a.6a9d68",\r
+        "wires": [\r
+            [\r
+                "a281b71.8f33f48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a281b71.8f33f48",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 453.6662254333496,\r
+        "y": 462.54641246795654,\r
+        "z": "c6830f2a.6a9d68",\r
+        "wires": [\r
+            [\r
+                "dab0995.6fb4068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dab0995.6fb4068",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 721.5833435058594,\r
+        "y": 545.0833129882812,\r
+        "z": "c6830f2a.6a9d68",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.json
new file mode 100644 (file)
index 0000000..223bb83
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "8398072c.bb",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 164.8055419921875,\r
+        "y": 111.47222900390625,\r
+        "z": "227abea9.82942a",\r
+        "wires": [\r
+            [\r
+                "f7478e4.3f877f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f7478e4.3f877f",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 296.0912322998047,\r
+        "y": 160.71033763885498,\r
+        "z": "227abea9.82942a",\r
+        "wires": [\r
+            [\r
+                "2116c7dc.76a62"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2116c7dc.76a62",\r
+        "type": "method",\r
+        "name": "method sotn-vf-operation-l2vpn-delete",\r
+        "xml": "<method rpc='sotn-vf-operation-l2vpn-delete' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 299.2341613769531,\r
+        "y": 245.472261428833,\r
+        "z": "227abea9.82942a",\r
+        "wires": [\r
+            [\r
+                "6477dca3.236454"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6477dca3.236454",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 440.33288192749023,\r
+        "y": 462.54644298553467,\r
+        "z": "227abea9.82942a",\r
+        "wires": [\r
+            [\r
+                "ef907cc.c0768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef907cc.c0768",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 708.25,\r
+        "y": 545.0833435058594,\r
+        "z": "227abea9.82942a",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
new file mode 100644 (file)
index 0000000..4d9aad4
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "b87fb992.37671",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 179.8055419921875,\r
+        "y": 128.13888549804688,\r
+        "z": "28baf2a.ead510e",\r
+        "wires": [\r
+            [\r
+                "527522f9.ff69e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "527522f9.ff69e4",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 311.0912322998047,\r
+        "y": 177.3769941329956,\r
+        "z": "28baf2a.ead510e",\r
+        "wires": [\r
+            [\r
+                "74e85c6a.58678c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74e85c6a.58678c",\r
+        "type": "method",\r
+        "name": "method sotn-vf-operation-uni-activate",\r
+        "xml": "<method rpc='sotn-vf-operation-uni-activate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 314.2341613769531,\r
+        "y": 262.13891792297363,\r
+        "z": "28baf2a.ead510e",\r
+        "wires": [\r
+            [\r
+                "ae007ab1.699328"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ae007ab1.699328",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 455.33288192749023,\r
+        "y": 479.2130994796753,\r
+        "z": "28baf2a.ead510e",\r
+        "wires": [\r
+            [\r
+                "da013af.4338448"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da013af.4338448",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 723.25,\r
+        "y": 561.75,\r
+        "z": "28baf2a.ead510e",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.json
new file mode 100644 (file)
index 0000000..e137522
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "5567fb41.3853ac",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 442.02733993530273,\r
+        "y": 433.74087047576904,\r
+        "z": "6cf3d2be.22379c",\r
+        "wires": [\r
+            [\r
+                "a47debf4.9031c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "67dcf0d.95d1c1",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 166.5,\r
+        "y": 82.66665649414062,\r
+        "z": "6cf3d2be.22379c",\r
+        "wires": [\r
+            [\r
+                "13cbcd0e.cde623"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13cbcd0e.cde623",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 297.7856903076172,\r
+        "y": 131.90476512908936,\r
+        "z": "6cf3d2be.22379c",\r
+        "wires": [\r
+            [\r
+                "90d8ef48.9bbbb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "90d8ef48.9bbbb8",\r
+        "type": "method",\r
+        "name": "method sotn-vf-operation-uni-create",\r
+        "xml": "<method rpc='sotn-vf-operation-uni-create' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 300.9286193847656,\r
+        "y": 216.66668891906738,\r
+        "z": "6cf3d2be.22379c",\r
+        "wires": [\r
+            [\r
+                "5567fb41.3853ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a47debf4.9031c",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 709.9444580078125,\r
+        "y": 516.2777709960938,\r
+        "z": "6cf3d2be.22379c",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-deactivate.json
new file mode 100644 (file)
index 0000000..cc93cce
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "2415414f.50ca06",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 146.47222900390625,\r
+        "y": 99.80555725097656,\r
+        "z": "1b0c4510.2bf803",\r
+        "wires": [\r
+            [\r
+                "93a63e26.730fa8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93a63e26.730fa8",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 277.75791931152344,\r
+        "y": 149.0436658859253,\r
+        "z": "1b0c4510.2bf803",\r
+        "wires": [\r
+            [\r
+                "1803fa4d.6adf06"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1803fa4d.6adf06",\r
+        "type": "method",\r
+        "name": "method sotn-vf-operation-uni-deactivate",\r
+        "xml": "<method rpc='sotn-vf-operation-uni-deactivate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 280.9008483886719,\r
+        "y": 233.80558967590332,\r
+        "z": "1b0c4510.2bf803",\r
+        "wires": [\r
+            [\r
+                "90b1cbb4.020398"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "90b1cbb4.020398",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 421.999568939209,\r
+        "y": 450.879771232605,\r
+        "z": "1b0c4510.2bf803",\r
+        "wires": [\r
+            [\r
+                "32ad8bf6.04ca74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "32ad8bf6.04ca74",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 689.9166870117188,\r
+        "y": 533.4166717529297,\r
+        "z": "1b0c4510.2bf803",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-delete.json
new file mode 100644 (file)
index 0000000..3f57000
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "16adb85b.30eaa8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 256.47216796875,\r
+        "y": 136.47222900390625,\r
+        "z": "5becc04d.b82dc8",\r
+        "wires": [\r
+            [\r
+                "a4bc46f6.cba6e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4bc46f6.cba6e",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 387.7578582763672,\r
+        "y": 185.71033763885498,\r
+        "z": "5becc04d.b82dc8",\r
+        "wires": [\r
+            [\r
+                "e2a7c6a2.0f6808"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2a7c6a2.0f6808",\r
+        "type": "method",\r
+        "name": "method sotn-vf-operation-uni-delete",\r
+        "xml": "<method rpc='sotn-vf-operation-uni-delete' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 390.9007873535156,\r
+        "y": 270.472261428833,\r
+        "z": "5becc04d.b82dc8",\r
+        "wires": [\r
+            [\r
+                "b67ab4ac.e7faa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b67ab4ac.e7faa",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 531.9995079040527,\r
+        "y": 487.54644298553467,\r
+        "z": "5becc04d.b82dc8",\r
+        "wires": [\r
+            [\r
+                "2e21339.0553f4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e21339.0553f4c",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 799.9166259765625,\r
+        "y": 570.0833435058594,\r
+        "z": "5becc04d.b82dc8",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.json
new file mode 100644 (file)
index 0000000..6b71cf5
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "8e70cbab.9e762",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 192.56666564941406,\r
+        "y": 127.56666564941406,\r
+        "z": "cee6034b.da01e8",\r
+        "wires": [\r
+            [\r
+                "a562bec1.5c6bb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a562bec1.5c6bb",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 323.85235595703125,\r
+        "y": 176.8047742843628,\r
+        "z": "cee6034b.da01e8",\r
+        "wires": [\r
+            [\r
+                "bd2e1e6.b1131e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd2e1e6.b1131e",\r
+        "type": "method",\r
+        "name": "method sotn-vnf-topology-operation-underlay-activate",\r
+        "xml": "<method rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 326.9952850341797,\r
+        "y": 261.5666980743408,\r
+        "z": "cee6034b.da01e8",\r
+        "wires": [\r
+            [\r
+                "948a9c7.119abe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "948a9c7.119abe",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 468.0940055847168,\r
+        "y": 478.6408796310425,\r
+        "z": "cee6034b.da01e8",\r
+        "wires": [\r
+            [\r
+                "1b5215d4.38c512"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b5215d4.38c512",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 721.566650390625,\r
+        "y": 589.566650390625,\r
+        "z": "cee6034b.da01e8",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.json
new file mode 100644 (file)
index 0000000..2a955c1
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "6e8e8f80.d43c1",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 198.56666564941406,\r
+        "y": 102.56666564941406,\r
+        "z": "fcd8d790.9bb058",\r
+        "wires": [\r
+            [\r
+                "bbddfda2.fd8ca8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bbddfda2.fd8ca8",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 482.85235595703125,\r
+        "y": 163.8047742843628,\r
+        "z": "fcd8d790.9bb058",\r
+        "wires": [\r
+            [\r
+                "b5eed43.f629328"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5eed43.f629328",\r
+        "type": "method",\r
+        "name": "method sotn-vnf-topology-operation-underlay-create",\r
+        "xml": "<method rpc='sotn-vnf-topology-operation-underlay-create' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 488.9952697753906,\r
+        "y": 248.5666961669922,\r
+        "z": "fcd8d790.9bb058",\r
+        "wires": [\r
+            [\r
+                "5debc633.a3523"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5debc633.a3523",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 627.0940055847168,\r
+        "y": 465.6408796310425,\r
+        "z": "fcd8d790.9bb058",\r
+        "wires": [\r
+            [\r
+                "f1ef9959.63e988"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1ef9959.63e988",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 880.566650390625,\r
+        "y": 576.566650390625,\r
+        "z": "fcd8d790.9bb058",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.json
new file mode 100644 (file)
index 0000000..22f2146
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "cbc1a13.7b8456",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 154.56666564941406,\r
+        "y": 94.56666564941406,\r
+        "z": "81a75cb3.dfe96",\r
+        "wires": [\r
+            [\r
+                "58be845c.53f8dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58be845c.53f8dc",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 438.85235595703125,\r
+        "y": 155.8047742843628,\r
+        "z": "81a75cb3.dfe96",\r
+        "wires": [\r
+            [\r
+                "1e9f5313.eb2125"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e9f5313.eb2125",\r
+        "type": "method",\r
+        "name": "method sotn-vnf-topology-operation-underlay-deactivate",\r
+        "xml": "<method rpc='sotn-vnf-topology-operation-underlay-deactivate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 444.9952697753906,\r
+        "y": 240.5666961669922,\r
+        "z": "81a75cb3.dfe96",\r
+        "wires": [\r
+            [\r
+                "1920f1ef.4bc3e6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1920f1ef.4bc3e6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 583.0940055847168,\r
+        "y": 457.6408796310425,\r
+        "z": "81a75cb3.dfe96",\r
+        "wires": [\r
+            [\r
+                "7d3f17a8.8dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d3f17a8.8dc",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 836.566650390625,\r
+        "y": 568.566650390625,\r
+        "z": "81a75cb3.dfe96",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.json
new file mode 100644 (file)
index 0000000..6610951
--- /dev/null
@@ -0,0 +1,78 @@
+[\r
+    {\r
+        "id": "3747de4a.ccc95a",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 192.56666564941406,\r
+        "y": 124.56666564941406,\r
+        "z": "6d4d0934.24831",\r
+        "wires": [\r
+            [\r
+                "a6a68d99.1f09a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6a68d99.1f09a8",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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}'>",\r
+        "outputs": 1,\r
+        "x": 476.85235595703125,\r
+        "y": 185.8047742843628,\r
+        "z": "6d4d0934.24831",\r
+        "wires": [\r
+            [\r
+                "19971b48.295af5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19971b48.295af5",\r
+        "type": "method",\r
+        "name": "method sotn-vnf-topology-operation-underlay-delete",\r
+        "xml": "<method rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 482.9952697753906,\r
+        "y": 270.5666961669922,\r
+        "z": "6d4d0934.24831",\r
+        "wires": [\r
+            [\r
+                "d89b2a32.f1b858"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d89b2a32.f1b858",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 621.0940055847168,\r
+        "y": 487.6408796310425,\r
+        "z": "6d4d0934.24831",\r
+        "wires": [\r
+            [\r
+                "5e754ce4.b92d84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e754ce4.b92d84",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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",\r
+        "comments": "",\r
+        "x": 874.566650390625,\r
+        "y": 598.566650390625,\r
+        "z": "6d4d0934.24831",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
index cd5b820..c90222c 100755 (executable)
@@ -128,12 +128,16 @@ GENERIC-RESOURCE-API self-serve-vfmodule-changeassign ${project.version} sync
 GENERIC-RESOURCE-API self-serve-vfmodule-ra-assignment ${project.version} sync
 GENERIC-RESOURCE-API self-serve-vf-module-forking-logic ${project.version} sync
 GENERIC-RESOURCE-API self-serve-vf-module-mdsal-put ${project.version} sync
+GENERIC-RESOURCE-API self-serve-process-vfmodule-mapping-ra-response ${project.version} sync
+GENERIC-RESOURCE-API self-serve-process-vfmodule-template-ra-response ${project.version} sync
 GENERIC-RESOURCE-API self-serve-vnf-mdsal-put ${project.version} sync 
 GENERIC-RESOURCE-API self-serve-vnf-assign ${project.version} sync
 GENERIC-RESOURCE-API self-serve-vnf-changeassign ${project.version} sync 
 GENERIC-RESOURCE-API self-serve-vnf-ra-assignment ${project.version} sync
 GENERIC-RESOURCE-API self-serve-vnf-unassign ${project.version} sync
 GENERIC-RESOURCE-API self-serve-vnf-forking-logic ${project.version} sync
+GENERIC-RESOURCE-API self-serve-process-vnf-mapping-ra-response ${project.version} sync
+GENERIC-RESOURCE-API self-serve-process-vnf-template-ra-response ${project.version} sync
 GENERIC-RESOURCE-API self-serve-pnf-assign ${project.version} sync
 GENERIC-RESOURCE-API self-serve-pnf-ra-assignment ${project.version} sync
 GENERIC-RESOURCE-API self-serve-pnf-unassign ${project.version} sync
@@ -264,3 +268,15 @@ GENERIC-RESOURCE-API sdwan-vf-operation-lanport-delete ${project.version} sync
 GENERIC-RESOURCE-API sdwan-get-vf-module-lanport-param ${project.version} sync
 GENERIC-RESOURCE-API sdwan-bandwidth-policy-change ${project.version} sync
 GENERIC-RESOURCE-API send-so-response ${project.version} sync
+GENERIC-RESOURCE-API sotn-vf-operation-uni-create ${project.version} sync
+GENERIC-RESOURCE-API sotn-vf-operation-uni-activate ${project.version} sync
+GENERIC-RESOURCE-API sotn-vf-operation-uni-deactivate ${project.version} sync
+GENERIC-RESOURCE-API sotn-vf-operation-uni-delete ${project.version} sync
+GENERIC-RESOURCE-API sotn-vf-operation-l2vpn-create ${project.version} sync
+GENERIC-RESOURCE-API sotn-vf-operation-l2vpn-activate ${project.version} sync
+GENERIC-RESOURCE-API sotn-vf-operation-l2vpn-deactivate ${project.version} sync
+GENERIC-RESOURCE-API sotn-vf-operation-l2vpn-delete ${project.version} sync
+GENERIC-RESOURCE-API sotn-vnf-topology-operation-underlay-create ${project.version} sync
+GENERIC-RESOURCE-API sotn-vnf-topology-operation-underlay-activate ${project.version} sync
+GENERIC-RESOURCE-API sotn-vnf-topology-operation-underlay-deactivate ${project.version} sync
+GENERIC-RESOURCE-API sotn-vnf-topology-operation-underlay-delete ${project.version} sync
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vfmodule-mapping-ra-response.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vfmodule-mapping-ra-response.xml
new file mode 100644 (file)
index 0000000..cc9d60b
--- /dev/null
@@ -0,0 +1,92 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='self-serve-process-vfmodule-mapping-ra-response' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$jsonContextPrefix.resolution-summary_length`'>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="resolution-summary_length is null" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <for silentFailure='true'  index='vdns-index' start='0' end='`$jsonContextPrefix.resolution-summary_length`' >\r
+                <block atomic="true">\r
+                    <set>\r
+                        <parameter name='tmp.mso.param.found' value='false' />\r
+                    </set>\r
+                    <switch test='`$prehighnum &gt; 0`'>\r
+                        <outcome value='true'>\r
+                            <for silentFailure='true' index='param-index' 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`' >\r
+                                <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[$param-index].name == $jsonContextPrefix.resolution-summary[$vdns-index].name`'>\r
+                                    <outcome value='true'>\r
+                                        <block>\r
+                                            <set>\r
+                                                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$param-index].value' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].value`'/>\r
+                                            </set>\r
+                                            <set>\r
+                                                <parameter name='tmp.mso.param.found' value='true' />\r
+                                            </set>\r
+                                        </block>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </for>\r
+                        </outcome>\r
+                    </switch>\r
+                    <switch test='`$tmp.mso.param.found`'>\r
+                        <outcome value='false'>\r
+                            <block atomic='true'>\r
+                                <set>\r
+                                    <parameter name='service-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' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].name`'/>\r
+                                    <parameter name='service-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' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].value`'/>\r
+                                </set>\r
+                                <switch test='`$jsonContextPrefix.resolution-summary[$vdns-index].dictionary-source`'>\r
+                                    <outcome value='sdnc'>\r
+                                        <for silentFailure='true'  index='kid-index' start='0' end='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers_length`' >\r
+                                            <set>\r
+                                                <parameter name='service-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[$kid-index].name' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers[$kid-index].name`'/>\r
+                                                <parameter name='service-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[$kid-index].value' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers[$kid-index].value`'/>\r
+                                            </set>\r
+                                        </for>\r
+                                    </outcome>\r
+                                </switch>\r
+                                <set>\r
+                                    <parameter name='service-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' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers_length`' />\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='service-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.payload' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].request-payload`'/>\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='service-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' \r
+       value='RA Resolved'/>\r
+                                    <parameter name='service-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' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].status`'/>\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='highnum' value='`$highnum + 1`' />\r
+                                </set>\r
+                            </block>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <set>\r
+                <parameter name='service-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' \r
+       value='`$highnum`'/>\r
+            </set>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">\r
+                <parameter name="logger" value="message-log"/>\r
+                <parameter name="field1" value="DONE: self-serve-process-vfmodule-mapping-ra-response"/>\r
+            </record>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vfmodule-template-ra-response.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vfmodule-template-ra-response.xml
new file mode 100644 (file)
index 0000000..b2746cf
--- /dev/null
@@ -0,0 +1,99 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='self-serve-process-vfmodule-template-ra-response' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$jsonContextPrefix.resource-accumulator-resolved-data_length`'>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="resource-accumulator-resolved-data_length is null" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\r
+                <block atomic="true">\r
+                    <set>\r
+                        <parameter name='tmp.mso.param.found' value='false' />\r
+                    </set>\r
+                    <switch test='`$prehighnum &gt; 0`'>\r
+                        <outcome value='true'>\r
+                            <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`' >\r
+                                <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`'>\r
+                                    <outcome value='true'>\r
+                                        <set>\r
+                                            <parameter name='`service-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`' \r
+       value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\r
+                                            <parameter name='tmp.mso.param.found' value='true' />\r
+                                        </set>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </for>\r
+                        </outcome>\r
+                    </switch>\r
+                    <switch test='`$tmp.mso.param.found`'>\r
+                        <outcome value='false'>\r
+                            <block atomic='true'>\r
+                                <set>\r
+                                    <parameter name='`service-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`'/>\r
+                                    <parameter name='`service-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`'/>\r
+                                    <parameter name='`service-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'/>\r
+                                    <parameter name='`service-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'/>\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='highnum' value='`$highnum + 1`' />\r
+                                </set>\r
+                            </block>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\r
+                <for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >\r
+                    <for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >\r
+                        <block atomic="true">\r
+                            <set>\r
+                                <parameter name='`service-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`'/>\r
+                                <parameter name='`service-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`'/>\r
+                                <parameter name='`service-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`'/>\r
+                                <parameter name='`service-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'/>\r
+                                <parameter name='num' value='0' />\r
+                            </set>\r
+                            <switch test="`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`">\r
+                                <outcome value='true'></outcome>\r
+                                <outcome value='false'>\r
+                                    <for index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >\r
+                                        <block atomic='true'>\r
+                                            <set>\r
+                                                <parameter name='`service-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`'/>\r
+                                                <parameter name='`service-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`'/>\r
+                                            </set>\r
+                                            <set>\r
+                                                <parameter name='`service-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`'/>\r
+                                            </set>\r
+                                            <set>\r
+                                                <parameter name='num' value='`$num + 1`' />\r
+                                            </set>\r
+                                        </block>\r
+                                    </for>\r
+                                </outcome>\r
+                            </switch>\r
+                            <set>\r
+                                <parameter name='highnum' value='`$highnum + 1`' />\r
+                            </set>\r
+                        </block>\r
+                    </for>\r
+                </for>\r
+            </for>\r
+            <set>\r
+                <parameter name='service-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' \r
+       value='`$highnum`'/>\r
+            </set>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">\r
+                <parameter name="logger" value="message-log"/>\r
+                <parameter name="field1" value="DONE: self-serve-process-vfmodule-template-ra-response"/>\r
+            </record>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vnf-mapping-ra-response.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vnf-mapping-ra-response.xml
new file mode 100644 (file)
index 0000000..67f16c8
--- /dev/null
@@ -0,0 +1,92 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='self-serve-process-vnf-mapping-ra-response' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$jsonContextPrefix.resolution-summary_length`'>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="resolution-summary is null" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <for silentFailure='true'  index='vdns-index' start='0' end='`$jsonContextPrefix.resolution-summary_length`' >\r
+                <block atomic="true">\r
+                    <set>\r
+                        <parameter name='tmp.mso.param.found' value='false' />\r
+                    </set>\r
+                    <switch test='`$prehighnum &gt; 0`'>\r
+                        <outcome value='true'>\r
+                            <for silentFailure='true' index='param-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\r
+                                <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$param-index].name == $jsonContextPrefix.resolution-summary[$vdns-index].name`'>\r
+                                    <outcome value='true'>\r
+                                        <block>\r
+                                            <set>\r
+                                                <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$param-index].value`' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].value`'/>\r
+                                            </set>\r
+                                            <set>\r
+                                                <parameter name='tmp.mso.param.found' value='true' />\r
+                                            </set>\r
+                                        </block>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </for>\r
+                        </outcome>\r
+                    </switch>\r
+                    <switch test='`$tmp.mso.param.found`'>\r
+                        <outcome value='false'>\r
+                            <block atomic='true'>\r
+                                <set>\r
+                                    <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].name`' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].name`'/>\r
+                                    <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].value`' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].value`'/>\r
+                                </set>\r
+                                <switch test='`$jsonContextPrefix.resolution-summary[$vdns-index].dictionary-source`'>\r
+                                    <outcome value='sdnc'>\r
+                                        <for silentFailure='true'  index='kid-index' start='0' end='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers_length`' >\r
+                                            <set>\r
+                                                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$kid-index].name' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers[$kid-index].name`'/>\r
+                                                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$kid-index].value' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers[$kid-index].value`'/>\r
+                                            </set>\r
+                                        </for>\r
+                                    </outcome>\r
+                                </switch>\r
+                                <set>\r
+                                    <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.resource-key_length' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].key-identifiers_length`' />\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.payload`' \r
+       value='`$jsonContextPrefix.resolution-summary[$vdns-index].request-payload`'/>\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' \r
+       value='RA Resolved'/>\r
+                                    <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' \r
+       value='`$jsonContextPrefix.payload.resolution-summary[$vdns-index].status`'/>\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='highnum' value='`$highnum + 1`' />\r
+                                </set>\r
+                            </block>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <set>\r
+                <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' \r
+       value='`$highnum`'/>\r
+            </set>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">\r
+                <parameter name="logger" value="message-log"/>\r
+                <parameter name="field1" value="DONE: self-serve-process-vnf-mapping-ra-response"/>\r
+            </record>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vnf-template-ra-response.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-process-vnf-template-ra-response.xml
new file mode 100644 (file)
index 0000000..2e62832
--- /dev/null
@@ -0,0 +1,104 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='self-serve-process-vnf-template-ra-response' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$jsonContextPrefix.resource-accumulator-resolved-data_length`'>\r
+                <outcome value=''>\r
+                    <return status='failure'>\r
+                        <parameter name='ack-final' value='Y'/>\r
+                        <parameter name="error-code" value="500" />\r
+                        <parameter name="error-message" value="resource-accumulator-resolved-data_length is null" />\r
+                    </return>\r
+                </outcome>\r
+            </switch>\r
+            <for silentFailure='true'  index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\r
+                <block atomic="true">\r
+                    <set>\r
+                        <parameter name='tmp.mso.param.found' value='false' />\r
+                    </set>\r
+                    <switch test='`$prehighnum &gt; 0`'>\r
+                        <outcome value='true'>\r
+                            <for silentFailure='true' index='cnt' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\r
+                                <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`'>\r
+                                    <outcome value='true'>\r
+                                        <block>\r
+                                            <set>\r
+                                                <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`'/>\r
+                                                <parameter name='tmp.mso.param.found' value='true' />\r
+                                            </set>\r
+                                            <set>\r
+                                                <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`'/>\r
+                                                <parameter name='tmp.mso.param.found' value='true' />\r
+                                            </set>\r
+                                        </block>\r
+                                    </outcome>\r
+                                </switch>\r
+                            </for>\r
+                        </outcome>\r
+                    </switch>\r
+                    <switch test='`$tmp.mso.param.found`'>\r
+                        <outcome value='false'>\r
+                            <block atomic='true'>\r
+                                <set>\r
+                                    <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`'/>\r
+                                    <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`'/>\r
+                                    <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'/>\r
+                                    <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='SUCCESS'/>\r
+                                </set>\r
+                                <set>\r
+                                    <parameter name='highnum' value='`$highnum + 1`' />\r
+                                </set>\r
+                            </block>\r
+                        </outcome>\r
+                    </switch>\r
+                </block>\r
+            </for>\r
+            <for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\r
+                <for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >\r
+                    <for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >\r
+                        <block atomic="true">\r
+                            <set>\r
+                                <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`'/>\r
+                                <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`'/>\r
+                                <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`'/>\r
+                                <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='PENDING'/>\r
+                                <parameter name='num' value='0' />\r
+                            </set>\r
+                            <switch test="`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`">\r
+                                <outcome value='true'></outcome>\r
+                                <outcome value='false'>\r
+                                    <for silentFailure='true' index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >\r
+                                        <block atomic="true">\r
+                                            <set>\r
+                                                <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`'/>\r
+                                                <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`'/>\r
+                                            </set>\r
+                                            <set>\r
+                                                <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`'/>\r
+                                            </set>\r
+                                            <set>\r
+                                                <parameter name='num' value='`$num + 1`' />\r
+                                            </set>\r
+                                        </block>\r
+                                    </for>\r
+                                </outcome>\r
+                            </switch>\r
+                            <set>\r
+                                <parameter name='highnum' value='`$highnum + 1`' />\r
+                            </set>\r
+                        </block>\r
+                    </for>\r
+                </for>\r
+            </for>\r
+            <set>\r
+                <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length' \r
+       value='`$highnum`'/>\r
+            </set>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">\r
+                <parameter name="logger" value="message-log"/>\r
+                <parameter name="field1" value="DONE: self-serve-process-vnf-template-ra-response"/>\r
+            </record>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
index 79e84d6..b1486e2 100644 (file)
                 <parameter name="outputPath" value="jsonContextPrefix" />\r
                 <parameter name="isEscaped" value="false" />\r
             </execute>\r
-            <for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\r
-                <block atomic="true">\r
-                    <set>\r
-                        <parameter name='tmp.mso.param.found' value='false' />\r
-                    </set>\r
-                    <switch test='`$prehighnum &gt; 0`'>\r
-                        <outcome value='true'>\r
-                            <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`' >\r
-                                <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`'>\r
-                                    <outcome value='true'>\r
-                                        <set>\r
-                                            <parameter name='`service-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`'/>\r
-                                            <parameter name='tmp.mso.param.found' value='true' />\r
-                                        </set>\r
-                                    </outcome>\r
-                                </switch>\r
-                            </for>\r
-                        </outcome>\r
-                    </switch>\r
-                    <switch test='`$tmp.mso.param.found`'>\r
-                        <outcome value='false'>\r
-                            <block atomic='true'>\r
-                                <set>\r
-                                    <parameter name='`service-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`'/>\r
-                                    <parameter name='`service-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`'/>\r
-                                    <parameter name='`service-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'/>\r
-                                    <parameter name='`service-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'/>\r
-                                </set>\r
-                                <set>\r
-                                    <parameter name='highnum' value='`$highnum + 1`' />\r
-                                </set>\r
-                            </block>\r
-                        </outcome>\r
-                    </switch>\r
-                </block>\r
-            </for>\r
-            <for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\r
-                <for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >\r
-                    <for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >\r
-                        <block atomic="true">\r
-                            <set>\r
-                                <parameter name='`service-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`'/>\r
-                                <parameter name='`service-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`'/>\r
-                                <parameter name='`service-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`'/>\r
-                                <parameter name='`service-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'/>\r
-                                <parameter name='num' value='0' />\r
-                            </set>\r
-                            <switch test="`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`">\r
-                                <outcome value='true'></outcome>\r
-                                <outcome value='false'>\r
-                                    <for index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >\r
-                                        <block atomic='true'>\r
-                                            <set>\r
-                                                <parameter name='`service-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`'/>\r
-                                                <parameter name='`service-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`'/>\r
-                                            </set>\r
-                                            <set>\r
-                                                <parameter name='`service-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`'/>\r
-                                            </set>\r
-                                            <set>\r
-                                                <parameter name='num' value='`$num + 1`' />\r
-                                            </set>\r
-                                        </block>\r
-                                    </for>\r
-                                </outcome>\r
-                            </switch>\r
-                            <set>\r
-                                <parameter name='`service-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`'/>\r
-                            </set>\r
-                            <set>\r
-                                <parameter name='highnum' value='`$highnum + 1`' />\r
-                            </set>\r
-                        </block>\r
-                    </for>\r
-                </for>\r
-            </for>\r
+            <switch test="`$jsonContextPrefix.resource-accumulator-resolved-data_length`">\r
+                <outcome value=''>\r
+                    <call module='GENERIC-RESOURCE-API' rpc='self-serve-process-vfmodule-mapping-ra-response' mode='sync' ></call>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <call module='GENERIC-RESOURCE-API' rpc='self-serve-process-vfmodule-template-ra-response' mode='sync' ></call>\r
+                </outcome>\r
+            </switch>\r
             <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">\r
                 <parameter name="logger" value="message-log"/>\r
                 <parameter name="field1" value="DONE: vfmodule-ra-assignment"/>\r
             </execute>\r
         </block>\r
     </method>\r
-</service-logic>\r
+</service-logic>
\ No newline at end of file
index 347dd71..494fe4a 100644 (file)
                 <parameter name="outputPath" value="jsonContextPrefix" />\r
                 <parameter name="isEscaped" value="false" />\r
             </execute>\r
-            <for silentFailure='true'  index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\r
-                <block atomic="true">\r
-                    <set>\r
-                        <parameter name='tmp.mso.param.found' value='false' />\r
-                    </set>\r
-                    <switch test='`$prehighnum &gt; 0`'>\r
-                        <outcome value='true'>\r
-                            <for silentFailure='true' index='cnt' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\r
-                                <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`'>\r
-                                    <outcome value='true'>\r
-                                        <set>\r
-                                            <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`'/>\r
-                                            <parameter name='tmp.mso.param.found' value='true' />\r
-                                        </set>\r
-                                    </outcome>\r
-                                </switch>\r
-                            </for>\r
-                        </outcome>\r
-                    </switch>\r
-                    <switch test='`$tmp.mso.param.found`'>\r
-                        <outcome value='false'>\r
-                            <block atomic='true'>\r
-                                <set>\r
-                                    <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`'/>\r
-                                    <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`'/>\r
-                                    <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'/>\r
-                                    <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='SUCCESS'/>\r
-                                </set>\r
-                                <set>\r
-                                    <parameter name='highnum' value='`$highnum + 1`' />\r
-                                </set>\r
-                            </block>\r
-                        </outcome>\r
-                    </switch>\r
-                </block>\r
-            </for>\r
-            <for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\r
-                <for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >\r
-                    <for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >\r
-                        <block atomic="true">\r
-                            <set>\r
-                                <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`'/>\r
-                                <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`'/>\r
-                                <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`'/>\r
-                                <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='PENDING'/>\r
-                                <parameter name='num' value='0' />\r
-                            </set>\r
-                            <switch test="`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`">\r
-                                <outcome value='true'></outcome>\r
-                                <outcome value='false'>\r
-                                    <for silentFailure='true' index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >\r
-                                        <block atomic="true">\r
-                                            <set>\r
-                                                <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`'/>\r
-                                                <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`'/>\r
-                                            </set>\r
-                                            <set>\r
-                                                <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`'/>\r
-                                            </set>\r
-                                            <set>\r
-                                                <parameter name='num' value='`$num + 1`' />\r
-                                            </set>\r
-                                        </block>\r
-                                    </for>\r
-                                </outcome>\r
-                            </switch>\r
-                            <set>\r
-                                <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' value='`$highnum + 1`'/>\r
-                            </set>\r
-                            <set>\r
-                                <parameter name='highnum' value='`$highnum + 1`' />\r
-                            </set>\r
-                        </block>\r
-                    </for>\r
-                </for>\r
-            </for>\r
+            <switch test="`$jsonContextPrefix.resource-accumulator-resolved-data_length`">\r
+                <outcome value=''>\r
+                    <call module='GENERIC-RESOURCE-API' rpc='self-serve-process-vnf-mapping-ra-response' mode='sync' ></call>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <call module='GENERIC-RESOURCE-API' rpc='self-serve-process-vnf-template-ra-response' mode='sync' ></call>\r
+                </outcome>\r
+            </switch>\r
             <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">\r
                 <parameter name="logger" value="message-log"/>\r
-                <parameter name="field1" value="DONE: vnf-ra-assignment"/>\r
+                <parameter name="field1" value="DONE: self-serve-vnf-ra-assignment"/>\r
             </record>\r
             <set>\r
                 <parameter name='pathname' \r
index 9258d3b..fa9cbd9 100644 (file)
                             <outcome value='CreateSDWANPortInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-wanport-create' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='CreateSOTNUniInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-uni-create' mode='sync' ></call>\r
+                            </outcome>\r
+                            <outcome value='CreateSOTNL2VpnInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-l2vpn-create' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <block></block>\r
                             </outcome>\r
                             <outcome value='ActivateSDWANPortInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-wanport-activate' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='ActivateSOTNUniInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-uni-activate' mode='sync' ></call>\r
+                            </outcome>\r
+                            <outcome value='ActivateSOTNL2VpnInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-l2vpn-activate' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-activate' mode='sync' ></call>\r
                             </outcome>\r
                             <outcome value='DeactivateSDWANPortInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-wanport-deactivate' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='DeactivateSOTNUniInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-uni-deactivate' mode='sync' ></call>\r
+                            </outcome>\r
+                            <outcome value='DeactivateSOTNL2VpnInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-l2vpn-deactivate' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-deactivate' mode='sync' ></call>\r
                             </outcome>\r
                             <outcome value='DeleteSDWANPortInstance'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='sdwan-vf-operation-wanport-delete' mode='sync' ></call>\r
                             </outcome>\r
+                            <outcome value='DeleteSOTNUniInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-uni-delete' mode='sync' ></call>\r
+                            </outcome>\r
+                            <outcome value='DeleteSOTNL2VpnInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vf-operation-l2vpn-delete' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <block></block>\r
                             </outcome>\r
index c796dd8..74ce797 100644 (file)
@@ -57,6 +57,9 @@
                                     <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync' ></call>\r
                                 </block>\r
                             </outcome>\r
+                            <outcome value='ActivateSOTNUnderlayInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' ></call>\r
                             </outcome>\r
                                     <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync' ></call>\r
                                 </block>\r
                             </outcome>\r
+                            <outcome value='CreateSOTNUnderlayInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-create' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <block></block>\r
                             </outcome>\r
                                     <call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-vpn-site-resource-delete' mode='sync' ></call>\r
                                 </block>\r
                             </outcome>\r
+                            <outcome value='DeleteSOTNUnderlayInstance'>\r
+                                <call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync' ></call>\r
+                            </outcome>\r
                             <outcome value='Other'>\r
                                 <block></block>\r
                             </outcome>\r
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.xml
new file mode 100644 (file)
index 0000000..ca13a5e
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vf-operation-l2vpn-activate' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.xml
new file mode 100644 (file)
index 0000000..3876fd2
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vf-operation-l2vpn-create' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.xml
new file mode 100644 (file)
index 0000000..c16d3b0
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vf-operation-l2vpn-deactivate' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.xml
new file mode 100644 (file)
index 0000000..89a18ed
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vf-operation-l2vpn-delete' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.xml
new file mode 100644 (file)
index 0000000..9ccbd07
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vf-operation-uni-activate' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.xml
new file mode 100644 (file)
index 0000000..f1c7ecd
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vf-operation-uni-create' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-deactivate.xml
new file mode 100644 (file)
index 0000000..75822d1
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vf-operation-uni-deactivate' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-delete.xml
new file mode 100644 (file)
index 0000000..3920209
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vf-operation-uni-delete' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.xml
new file mode 100644 (file)
index 0000000..28faefe
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.xml
new file mode 100644 (file)
index 0000000..1f7b013
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vnf-topology-operation-underlay-create' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.xml
new file mode 100644 (file)
index 0000000..28acdbf
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vnf-topology-operation-underlay-deactivate' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.xml
new file mode 100644 (file)
index 0000000..7c106ee
--- /dev/null
@@ -0,0 +1,13 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    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}'>\r
+    <method rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync'>\r
+        <block atomic="true">\r
+            <return status='success'>\r
+                <parameter name="ack-final-indicator" value="Y" />\r
+                <parameter name="error-code" value="200" />\r
+                <parameter name="error-message" value="`$error-message`" />\r
+            </return>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json b/platform-logic/optical-service/src/main/json/optical-service_aai-delete-service-handling.json
new file mode 100644 (file)
index 0000000..6cf5663
--- /dev/null
@@ -0,0 +1,258 @@
+[\r
+    {\r
+        "id": "168f1b9b.e0d8a4",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 290,\r
+        "y": 256.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "69efd249.69fbdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "69efd249.69fbdc",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 477,\r
+        "y": 205.66665649414062,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "7c805408.44c49c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c805408.44c49c",\r
+        "type": "method",\r
+        "name": "method",\r
+        "xml": "<method rpc='aai-delete-service-handling' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 331,\r
+        "y": 379.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "9d8283a.657188"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d8283a.657188",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 504,\r
+        "y": 378.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "f165a108.8a699",\r
+                "940496d9.dec278",\r
+                "32c002b0.0f4fce",\r
+                "2caf6515.aa94aa",\r
+                "a8c5a8ab.1bde18",\r
+                "a1d8c39f.8281b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f165a108.8a699",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 735,\r
+        "y": 265.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "940496d9.dec278",\r
+        "type": "get-resource",\r
+        "name": "Get service from AAI",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\n key='customer.global-customer-id = $output.global-customer-id AND\n     service-subscription.service-type = $output.service-type AND\n     service-instance.service-instance-id = $output.service-instance-id' \npfx='aai.service'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 754,\r
+        "y": 381.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "32c002b0.0f4fce",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n<parameter name=\"field2\" value=\"`$aai.service.orchestration-status`\"/>\n<parameter name=\"field3\" value=\"`$aai.service.relationship-list.relationship_length`\"/>\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 764,\r
+        "y": 447.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2caf6515.aa94aa",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='`$aai.service.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 737,\r
+        "y": 510.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "c68f711c.1667a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e030001.bace",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\n<parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\n\n",\r
+        "comments": "",\r
+        "x": 1147,\r
+        "y": 197.66665649414062,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e3a487a2.2e5338",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Revert PInterface details\"/>\n<parameter name=\"field2\" value=\"`$pnf-name`\"/>\n<parameter name=\"field3\" value=\"`$pinterface-name`\"/>\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1170,\r
+        "y": 266.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8c5a8ab.1bde18",\r
+        "type": "delete",\r
+        "name": "delete service instance AAI",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\nkey='customer.global-customer-id = $output.global-customer-id AND\nservice-subscription.service-type = $output.service-type AND\nservice-instance.service-instance-id = $output.service-instance-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 757,\r
+        "y": 586.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c68f711c.1667a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 921,\r
+        "y": 514.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            [\r
+                "1e030001.bace",\r
+                "e3a487a2.2e5338",\r
+                "2c623e61.ef3c52",\r
+                "46559965.50bc28",\r
+                "c493aa8c.c04b68",\r
+                "d87c55e6.d344b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1d8c39f.8281b",\r
+        "type": "delete",\r
+        "name": "delete from db",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n    resource=\"SQL\"\n    key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 694,\r
+        "y": 643.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c493aa8c.c04b68",\r
+        "type": "get-resource",\r
+        "name": "get p-interface total capacity",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name ' \npfx='p.in.details'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1266.8887939453125,\r
+        "y": 322.77777099609375,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d87c55e6.d344b8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$p.in.details.speed-value`' />\n",\r
+        "comments": "",\r
+        "x": 1207.111083984375,\r
+        "y": 413,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c623e61.ef3c52",\r
+        "type": "update",\r
+        "name": "update p-interface capacity AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='p-interface'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name '\n      local-only='false'>\n<parameter name='available-capacity' value='`$new-rate`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1174,\r
+        "y": 518.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "46559965.50bc28",\r
+        "type": "save",\r
+        "name": "update pinterface rate DB",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET rate = $new-rate WHERE interface_name = $pinterface-name '\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1165,\r
+        "y": 586.6666564941406,\r
+        "z": "5b091ac8.c4f784",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu1.json
new file mode 100644 (file)
index 0000000..7cfc441
--- /dev/null
@@ -0,0 +1,442 @@
+[\r
+    {\r
+        "id": "7fb6b53d.9b40ac",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 914,\r
+        "y": 180,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "d89ee2bf.9fb95",\r
+                "489955f7.b8044c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d89ee2bf.9fb95",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1047,\r
+        "y": 149,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "861165e4.072d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "408487d0.188348",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 919,\r
+        "y": 102,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a318d25.4d1703",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='mul' value='`$odu-number * 1.25`' />\n<parameter name='sub' value='`$mul - 1.25`' />\n<parameter name='new-odu-number' value='`$sub / 1.25`' />\n\n",\r
+        "comments": "",\r
+        "x": 1281,\r
+        "y": 77,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "42556171.da338",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 638,\r
+        "y": 126,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "b03c2fe2.e7ca6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3256d64.31dae2a",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 562,\r
+        "y": 244,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "42556171.da338",\r
+                "3f9ae2a7.46b9ee"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b03c2fe2.e7ca6",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 776,\r
+        "y": 133,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "7fb6b53d.9b40ac",\r
+                "408487d0.188348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "489955f7.b8044c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1046,\r
+        "y": 264,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "aa954ac8.c12048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5d7b43a.ff8d18",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1321,\r
+        "y": 232,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "16da9b23.f12fc5",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 928,\r
+        "y": 460,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "6a47243c.bf922c",\r
+                "d39786ac.f9ffc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a47243c.bf922c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1069,\r
+        "y": 452,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "945b4572.2a9d18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a491e8e.6ef662",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 933,\r
+        "y": 382,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "52b46c06.224904",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1271,\r
+        "y": 385,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3f9ae2a7.46b9ee",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 639,\r
+        "y": 406,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "ba6bed77.7ecf2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba6bed77.7ecf2",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 790,\r
+        "y": 413,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "16da9b23.f12fc5",\r
+                "3a491e8e.6ef662"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d39786ac.f9ffc8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1053,\r
+        "y": 583,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "1229605a.bcb7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bdb03da8.db153",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1298,\r
+        "y": 539,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "75dd10a.39260f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 405,\r
+        "y": 235,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "3256d64.31dae2a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e7327e.e63f7d8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 121.5,\r
+        "y": 184,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "e15dddc3.ed1ff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e15dddc3.ed1ff",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 244,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "eb187c1b.5aa9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb187c1b.5aa9",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu1",\r
+        "xml": "<method rpc='bandwidth-update-odu1' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 318.5,\r
+        "y": 137,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "75dd10a.39260f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2a66fb.f71b39",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1284,\r
+        "y": 144,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a32257d4.77af48",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1297,\r
+        "y": 287,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba783ab9.044e18",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1317,\r
+        "y": 441,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5b0a9685.46e438",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1248,\r
+        "y": 610,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "861165e4.072d78",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1154,\r
+        "y": 77,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "a318d25.4d1703",\r
+                "c2a66fb.f71b39"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aa954ac8.c12048",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1177,\r
+        "y": 228,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "e5d7b43a.ff8d18",\r
+                "a32257d4.77af48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "945b4572.2a9d18",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1151,\r
+        "y": 375,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "52b46c06.224904",\r
+                "ba783ab9.044e18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1229605a.bcb7e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1171,\r
+        "y": 542,\r
+        "z": "ea0daf8b.a0dea",\r
+        "wires": [\r
+            [\r
+                "bdb03da8.db153",\r
+                "5b0a9685.46e438"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu2.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu2.json
new file mode 100644 (file)
index 0000000..1088731
--- /dev/null
@@ -0,0 +1,860 @@
+[\r
+    {\r
+        "id": "d2167b55.82b018",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 405,\r
+        "y": 203,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "17fa8fe8.9bf91"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "811b077a.d09798",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1046,\r
+        "y": 248,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "d1adad05.70436",\r
+                "21b9545b.56d0dc",\r
+                "f3d86763.54a138"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1adad05.70436",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1122,\r
+        "y": 214,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "ac2b88c8.8664e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "62f5d265.23ab0c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 1028,\r
+        "y": 152,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e87013c.8fc8ce",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1410,\r
+        "y": 182,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c5d3d95.cc5f74",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 703,\r
+        "y": 202,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "2c622caf.eaa2a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17fa8fe8.9bf91",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 559,\r
+        "y": 202,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "7c5d3d95.cc5f74",\r
+                "2f408a05.a33d16",\r
+                "f3c2b240.a115b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b7f98e2.94bee7",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 886,\r
+        "y": 190,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "811b077a.d09798",\r
+                "62f5d265.23ab0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "21b9545b.56d0dc",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1135,\r
+        "y": 350,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "15e3e9b.8ba2616"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a06a5535.b89f68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1434,\r
+        "y": 303,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6a12dbc4.c2c474",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 927,\r
+        "y": 61,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f3d86763.54a138",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1099,\r
+        "y": 453,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "6365557.81351ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0a7f453.296058",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1403,\r
+        "y": 425,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "354fa1c1.f1f6ae",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 974,\r
+        "y": 638,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "2cba8af9.f08436",\r
+                "c67aa5c9.f4db98",\r
+                "613274fc.a6713c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cba8af9.f08436",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1096,\r
+        "y": 592,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "afd7c951.cf6a88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47a078bd.631e68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 965,\r
+        "y": 547,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "20e37e98.d28f12",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 - 2.5`' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1419,\r
+        "y": 564,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2f408a05.a33d16",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 677,\r
+        "y": 580,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "9cbe7dee.94883"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "682f2695.e292e8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 851,\r
+        "y": 611,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "354fa1c1.f1f6ae",\r
+                "47a078bd.631e68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c67aa5c9.f4db98",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1109,\r
+        "y": 728,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "849d925b.74177"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4523229.d6783",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1417,\r
+        "y": 680,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8aef3377.3c117",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 895,\r
+        "y": 473,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "613274fc.a6713c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1073,\r
+        "y": 831,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "6eb2648c.81a19c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "deaaf26b.10d53",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1334,\r
+        "y": 797,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "99b2b453.ad7458",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 942,\r
+        "y": 1049,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "4187876d.dc02e8",\r
+                "761e3130.940b3",\r
+                "b24927d8.4257b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4187876d.dc02e8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1162,\r
+        "y": 1000,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "a1a3c897.76f2c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd35744a.032178",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 932,\r
+        "y": 966,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "58773dca.32a9d4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1435,\r
+        "y": 964,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f3c2b240.a115b",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 450,\r
+        "y": 1017,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "1dd9e0cc.abefff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1dd9e0cc.abefff",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 734,\r
+        "y": 1039,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "99b2b453.ad7458",\r
+                "fd35744a.032178"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "761e3130.940b3",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1174,\r
+        "y": 1110,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "b3ea3cfa.44044"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee22130b.ddcc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1456,\r
+        "y": 1105,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b24927d8.4257b8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1139,\r
+        "y": 1239,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "b43c1f4d.37883"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6ed6d86.a3142",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1434,\r
+        "y": 1203,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d3ed497f.e63998",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 121.5,\r
+        "y": 152,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "5490e45b.ec8f7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5490e45b.ec8f7c",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 212,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "c1ead28d.6c8d3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c1ead28d.6c8d3",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu2",\r
+        "xml": "<method rpc='bandwidth-update-odu2' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 318.5,\r
+        "y": 105,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "d2167b55.82b018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96acfef0.2597f",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1474,\r
+        "y": 244,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "506c233c.43ef1c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1500,\r
+        "y": 377,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "45d21d06.df7524",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1477,\r
+        "y": 471,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7f985a4.c76918",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1489,\r
+        "y": 613,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4a35a6d.5c6478",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1492,\r
+        "y": 740,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "97a76dca.636f9",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1407,\r
+        "y": 844,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a9c10315.e0892",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1512,\r
+        "y": 1020,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cfce80.51afa18",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1518,\r
+        "y": 1148,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "13bea178.4cb18f",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1504,\r
+        "y": 1275,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac2b88c8.8664e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1258,\r
+        "y": 212,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "2e87013c.8fc8ce",\r
+                "96acfef0.2597f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15e3e9b.8ba2616",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1283,\r
+        "y": 348,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "a06a5535.b89f68",\r
+                "506c233c.43ef1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6365557.81351ac",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1249,\r
+        "y": 453,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "b0a7f453.296058",\r
+                "45d21d06.df7524"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "afd7c951.cf6a88",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1247,\r
+        "y": 591,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "20e37e98.d28f12",\r
+                "c7f985a4.c76918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "849d925b.74177",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1249,\r
+        "y": 724,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "a4523229.d6783",\r
+                "b4a35a6d.5c6478"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6eb2648c.81a19c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1212,\r
+        "y": 826,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "deaaf26b.10d53",\r
+                "97a76dca.636f9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1a3c897.76f2c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1296,\r
+        "y": 999,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "58773dca.32a9d4",\r
+                "a9c10315.e0892"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3ea3cfa.44044",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1310,\r
+        "y": 1110,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "ee22130b.ddcc",\r
+                "1cfce80.51afa18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b43c1f4d.37883",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1296,\r
+        "y": 1236,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "c6ed6d86.a3142",\r
+                "13bea178.4cb18f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c622caf.eaa2a4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 814,\r
+        "y": 110,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "6a12dbc4.c2c474",\r
+                "1b7f98e2.94bee7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cbe7dee.94883",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 750,\r
+        "y": 495,\r
+        "z": "d291f834.d4cbf8",\r
+        "wires": [\r
+            [\r
+                "8aef3377.3c117",\r
+                "682f2695.e292e8"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu3.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu3.json
new file mode 100644 (file)
index 0000000..cfc383b
--- /dev/null
@@ -0,0 +1,1369 @@
+[\r
+    {\r
+        "id": "59bd3927.592868",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 906.5,\r
+        "y": 146,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "686976fa.e39a38",\r
+                "5a90cb29.5918e4",\r
+                "9ff85014.553ad",\r
+                "7f3619a0.9e0de8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "686976fa.e39a38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1045.5,\r
+        "y": 105,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1d32ea36.ac6196"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7f141cc.723c8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 914.5,\r
+        "y": 60,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a32f2439.cb6ab8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1338.5,\r
+        "y": 76,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c8f08a5.d0cd38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 626.5,\r
+        "y": 93,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "7a765f28.8bea6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25cd1da9.b3f392",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 495.5,\r
+        "y": 149,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "4c8f08a5.d0cd38",\r
+                "f16923b.76bace",\r
+                "d50cccac.ae255",\r
+                "d6e62384.c44eb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb046504.a184d8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 770.5,\r
+        "y": 111,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "59bd3927.592868",\r
+                "d7f141cc.723c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a90cb29.5918e4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1075.5,\r
+        "y": 194,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "e76aea9c.e12bd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5aa343d7.14c6fc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1342.5,\r
+        "y": 179,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1b913f9a.27c49",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 858.5,\r
+        "y": 20,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9ff85014.553ad",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1044.5,\r
+        "y": 294,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "80d48ef5.9912"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cef4b295.6c496",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1330.5,\r
+        "y": 291,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7f3619a0.9e0de8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 972,\r
+        "y": 402,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "8c7e1bd7.f41a68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "59568bd7.60cba4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1259,\r
+        "y": 387,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b8915894.bda8e8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 847,\r
+        "y": 671,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "d416a38f.22749",\r
+                "50b4be98.ddf0c",\r
+                "d2192c61.4bdf7",\r
+                "728f7fb2.a1cac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d416a38f.22749",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 986,\r
+        "y": 630,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "606ba16.524bc6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "318f9aba.df2006",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 855,\r
+        "y": 585,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "17a117e5.591708",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1263,\r
+        "y": 590,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f16923b.76bace",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 567,\r
+        "y": 618,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "7d7cd2ec.065b2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13b57033.9951",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 754,\r
+        "y": 615,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "b8915894.bda8e8",\r
+                "318f9aba.df2006"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50b4be98.ddf0c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1021,\r
+        "y": 723,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "31b7a978.6ce366"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d2e684.a340898",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1294,\r
+        "y": 707,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f02b9dc0.9a744",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 787,\r
+        "y": 512,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d2192c61.4bdf7",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 979,\r
+        "y": 814,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "5aa134da.c5d79c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f96115b6.ae0958",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1284,\r
+        "y": 813,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "728f7fb2.a1cac",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 885.5,\r
+        "y": 984,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "c49e735f.4d186"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aad0db15.cc7c18",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1151.5,\r
+        "y": 952,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1c012ace.64f805",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 710,\r
+        "y": 1209,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "5289693d.e0a268",\r
+                "31d3f86f.e846f8",\r
+                "7d5fdc36.750854",\r
+                "99806796.f1f338"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5289693d.e0a268",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 897,\r
+        "y": 1149,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "de9cb28.9f9d45"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "30fb08fd.b5dda8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 736,\r
+        "y": 1103,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d67ef568.42cc38",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1197,\r
+        "y": 1112,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d50cccac.ae255",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 417,\r
+        "y": 1154,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "712de01.298dd2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3523aa7.075c48",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 589,\r
+        "y": 1148,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1c012ace.64f805",\r
+                "30fb08fd.b5dda8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31d3f86f.e846f8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 919,\r
+        "y": 1240,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "6fab0d4e.49f804"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17e177eb.a9a758",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1210,\r
+        "y": 1227,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d69e06e0.b960b8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 628,\r
+        "y": 950,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7d5fdc36.750854",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 913,\r
+        "y": 1340,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "ea510da.c129ff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cffb56f.5f74cb",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1216,\r
+        "y": 1325,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "99806796.f1f338",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 859.5,\r
+        "y": 1463,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "ffafbd3d.43709"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea23ac7b.49a0e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1171.5,\r
+        "y": 1433,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1fdbfea9.06f971",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 599,\r
+        "y": 1735,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "b234c218.56c75",\r
+                "d7567c2b.d744d",\r
+                "da086275.9fed4",\r
+                "9dc682c9.2b9f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b234c218.56c75",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 738,\r
+        "y": 1694,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "9e0dc2de.70214"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8370fc5d.bbbb6",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 607,\r
+        "y": 1649,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "76e5208f.cb277",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1065,\r
+        "y": 1662,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "624e9330.541bbc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1077,\r
+        "y": 1720,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6e62384.c44eb",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 169,\r
+        "y": 1712,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "14677342.8acb9d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14677342.8acb9d",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 415,\r
+        "y": 1711,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1fdbfea9.06f971",\r
+                "8370fc5d.bbbb6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7567c2b.d744d",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 751,\r
+        "y": 1830,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "ad4c759a.2f2898"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "986204b7.0e72d8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 1021,\r
+        "y": 1796,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5e457023.84189",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1092,\r
+        "y": 1850,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "da086275.9fed4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 715,\r
+        "y": 1933,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "287e67.d378d19a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2bbf429f.61555e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 1032,\r
+        "y": 1901,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d21d0e47.828fe",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1084,\r
+        "y": 1981,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9dc682c9.2b9f6",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 637.5,\r
+        "y": 2048,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "5ba96bee.3ec3d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "22448edc.1c06a2",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 930.5,\r
+        "y": 2014,\r
+        "z": "73143c7.55534c4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "43ae63f9.14b1dc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 986.5,\r
+        "y": 2088,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf7cf5bd.6cd3f8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 121.5,\r
+        "y": 106,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "f1e26e1a.6f29c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1e26e1a.6f29c",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 166,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "79406a70.446d04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79406a70.446d04",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu3",\r
+        "xml": "<method rpc='bandwidth-update-odu3' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 321.5,\r
+        "y": 59,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "37af137e.e2f76c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "37af137e.e2f76c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 369,\r
+        "y": 203,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "25cd1da9.b3f392"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42b178a2.3d8ba8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1384,\r
+        "y": 134,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "aef28b8.b6c4b78",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1397,\r
+        "y": 233,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "170418bf.9dd4e7",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1376,\r
+        "y": 337,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "767736d7.c19918",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1320,\r
+        "y": 437,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8cb02fdb.f9b1f",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1230,\r
+        "y": 1005,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "39614b88.12fe44",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1314,\r
+        "y": 859,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7fbf2795.5c7328",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1343,\r
+        "y": 757,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "97e385a2.e3b1f8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1329,\r
+        "y": 647,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd933a2b.a244e8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1257,\r
+        "y": 1165,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cd728ae.126d18",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1264,\r
+        "y": 1273,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f6653fd.04dd4c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1244,\r
+        "y": 1383,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "48b19296.b91e8c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1238,\r
+        "y": 1496,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d32ea36.ac6196",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1188,\r
+        "y": 105,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "a32f2439.cb6ab8",\r
+                "42b178a2.3d8ba8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e76aea9c.e12bd8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1205,\r
+        "y": 191,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "5aa343d7.14c6fc",\r
+                "aef28b8.b6c4b78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "80d48ef5.9912",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1195,\r
+        "y": 296,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "cef4b295.6c496",\r
+                "170418bf.9dd4e7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c7e1bd7.f41a68",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1107,\r
+        "y": 399,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "59568bd7.60cba4",\r
+                "767736d7.c19918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "606ba16.524bc6",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1129,\r
+        "y": 628,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "17a117e5.591708",\r
+                "97e385a2.e3b1f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31b7a978.6ce366",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1155,\r
+        "y": 724,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "2d2e684.a340898",\r
+                "7fbf2795.5c7328"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5aa134da.c5d79c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1125,\r
+        "y": 813,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "f96115b6.ae0958",\r
+                "39614b88.12fe44"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c49e735f.4d186",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1021,\r
+        "y": 982,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "aad0db15.cc7c18",\r
+                "8cb02fdb.f9b1f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de9cb28.9f9d45",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1039,\r
+        "y": 1146,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "d67ef568.42cc38",\r
+                "fd933a2b.a244e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6fab0d4e.49f804",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1064,\r
+        "y": 1240,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "17e177eb.a9a758",\r
+                "3cd728ae.126d18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea510da.c129ff",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1064,\r
+        "y": 1335,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1cffb56f.5f74cb",\r
+                "3f6653fd.04dd4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffafbd3d.43709",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1001,\r
+        "y": 1460,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "ea23ac7b.49a0e",\r
+                "48b19296.b91e8c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e0dc2de.70214",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 887,\r
+        "y": 1688,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "76e5208f.cb277",\r
+                "624e9330.541bbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad4c759a.2f2898",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 891,\r
+        "y": 1827,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "986204b7.0e72d8",\r
+                "5e457023.84189"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "287e67.d378d19a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 861,\r
+        "y": 1930,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "2bbf429f.61555e",\r
+                "d21d0e47.828fe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ba96bee.3ec3d4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 769,\r
+        "y": 2044,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "22448edc.1c06a2",\r
+                "43ae63f9.14b1dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a765f28.8bea6",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 712,\r
+        "y": 27,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "1b913f9a.27c49",\r
+                "eb046504.a184d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d7cd2ec.065b2c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 653,\r
+        "y": 524,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "f02b9dc0.9a744",\r
+                "13b57033.9951"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "712de01.298dd2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 528,\r
+        "y": 1012,\r
+        "z": "73143c7.55534c4",\r
+        "wires": [\r
+            [\r
+                "d69e06e0.b960b8",\r
+                "d3523aa7.075c48"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu4.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update-odu4.json
new file mode 100644 (file)
index 0000000..47d4391
--- /dev/null
@@ -0,0 +1,1998 @@
+[\r
+    {\r
+        "id": "e3feee36.dfc57",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 911,\r
+        "y": 188,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "8c8b0340.fea55",\r
+                "bbae384a.c600d8",\r
+                "81fb76a8.ffe2f8",\r
+                "ec837101.493ce",\r
+                "4f3806a1.3db668"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c8b0340.fea55",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1050,\r
+        "y": 147,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "349a0c0c.fe1ba4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2e27b7b.5c60a8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 919,\r
+        "y": 102,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d77d3b20.4deaf8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1353,\r
+        "y": 85,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b7144f81.df566",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 631,\r
+        "y": 135,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f63ce118.af64a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79a768dc.a905b8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 500,\r
+        "y": 191,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b7144f81.df566",\r
+                "c9bcd5cc.2d7a38",\r
+                "bb3aa450.7afcd8",\r
+                "3fe43b1f.6606f4",\r
+                "c20ced2c.54286"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e749c854.0dc6c8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 821,\r
+        "y": 139,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "e3feee36.dfc57",\r
+                "d2e27b7b.5c60a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bbae384a.c600d8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1063,\r
+        "y": 283,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "38c2eecb.ad0df2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95485793.c9cb48",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1320,\r
+        "y": 238,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1dc3bc82.c95123",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 788,\r
+        "y": 39,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "81fb76a8.ffe2f8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1027,\r
+        "y": 386,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "54d432b1.c4d86c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2edcadd.b7afc8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1324,\r
+        "y": 358,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ec837101.493ce",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 949.5,\r
+        "y": 501,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d3c54b7f.d37ce8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd9d755f.f70388",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 1251.5,\r
+        "y": 473,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cce12306.4f347",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 126,\r
+        "y": 148,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d14b0a8.027a7f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d14b0a8.027a7f8",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 139,\r
+        "y": 208,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "da99be36.fe011"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da99be36.fe011",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu4",\r
+        "xml": "<method rpc='bandwidth-update-odu4' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 323,\r
+        "y": 101,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "c5e7c025.0f62c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5e7c025.0f62c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 373.5,\r
+        "y": 245,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "79a768dc.a905b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f3806a1.3db668",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 859,\r
+        "y": 632,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f41938e6.1bebe8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2adc2f40.dc7d4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1194,\r
+        "y": 607,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4cf1c380.32bbdc",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 704,\r
+        "y": 829,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "265152f.0b59fae",\r
+                "9ce3dd24.3e3c7",\r
+                "a19a912a.fe52f",\r
+                "f470a7e3.298178",\r
+                "f79cb52.e73e448"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "265152f.0b59fae",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 843,\r
+        "y": 788,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "fd01f978.0f3698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d185c07.cc41d4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 712,\r
+        "y": 743,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1a2eb6ab.8d8199",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.5 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1123,\r
+        "y": 765,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c9bcd5cc.2d7a38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 424,\r
+        "y": 776,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "30b73784.022928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4b29e77.0b02a",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 612,\r
+        "y": 786,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "4cf1c380.32bbdc",\r
+                "4d185c07.cc41d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ce3dd24.3e3c7",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 856,\r
+        "y": 924,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "952f6f66.9b3a7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3389c8d8.7dc548",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1170,\r
+        "y": 898,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "57d6620f.6163cc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 715,\r
+        "y": 613,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a19a912a.fe52f",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 820,\r
+        "y": 1027,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "50fc2c72.542084"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e807b52.3b6674",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1118,\r
+        "y": 1015,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f470a7e3.298178",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 742.5,\r
+        "y": 1142,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "e42e2444.15dd28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0c44c3f.e472",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 995.5,\r
+        "y": 1143,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f79cb52.e73e448",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 652,\r
+        "y": 1273,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "74474581.b5e87c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9570111b.094dd",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 915,\r
+        "y": 1252,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bf7d6c6b.e0ece",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 555,\r
+        "y": 1476,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b561742b.cd28e8",\r
+                "fa15bcfc.6af83",\r
+                "61666fc.db1569",\r
+                "f1e48908.aaabd8",\r
+                "8f4f4b48.14a0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b561742b.cd28e8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 694,\r
+        "y": 1435,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "23fa6a55.3ea336"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "985f9b24.eeace8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 563,\r
+        "y": 1390,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3049243b.bf71ec",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 10 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 961,\r
+        "y": 1437,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bb3aa450.7afcd8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 275,\r
+        "y": 1423,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "61e4c74f.7d0068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f1ddc4f.602e34",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 419,\r
+        "y": 1441,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "bf7d6c6b.e0ece",\r
+                "985f9b24.eeace8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa15bcfc.6af83",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 707,\r
+        "y": 1571,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f9ec6aee.e4c848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79ac5779.cefe88",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 969,\r
+        "y": 1546,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "99a06c04.fc087",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 498,\r
+        "y": 1306,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "61666fc.db1569",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 671,\r
+        "y": 1674,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "94357a7.a130f88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15aa4115.225e1f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 953,\r
+        "y": 1646,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f1e48908.aaabd8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 593.5,\r
+        "y": 1789,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "8dce08fb.34cdb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d72c3e8d.b95f1",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 874.5,\r
+        "y": 1784,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8f4f4b48.14a0b8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 503,\r
+        "y": 1920,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "425a258e.6c173c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "29176cbc.abf4c4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 781,\r
+        "y": 1914,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c8cc7f5b.29157",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 485,\r
+        "y": 2130,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "95fe5423.8d72f8",\r
+                "c6923f1c.db161",\r
+                "c2f012bc.b8b8b",\r
+                "e958d54f.06a758",\r
+                "66b70ac8.ccefd4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95fe5423.8d72f8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 624,\r
+        "y": 2089,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "1bf49ff2.464d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77e3b83.e43a648",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 493,\r
+        "y": 2044,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d19285ad.4d90a8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 40 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 891,\r
+        "y": 2066,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3fe43b1f.6606f4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 205,\r
+        "y": 2077,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "c2791d26.93119"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7726f454.56bf9c",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 386,\r
+        "y": 2070,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "c8cc7f5b.29157",\r
+                "77e3b83.e43a648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6923f1c.db161",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 637,\r
+        "y": 2225,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "55d9ef5.6d3f01"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2271a07.74ec28",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 889,\r
+        "y": 2221,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "89ba325e.4bc83",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 436,\r
+        "y": 1984,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c2f012bc.b8b8b",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 601,\r
+        "y": 2328,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "924b471a.324748"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1edcf75.5da63",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 887,\r
+        "y": 2326,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e958d54f.06a758",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 523.5,\r
+        "y": 2443,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "4afed28.6e4ed2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d286e908.53cd68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 794.5,\r
+        "y": 2437,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "66b70ac8.ccefd4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 433,\r
+        "y": 2574,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "49cef9bf.0a62e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99bb505e.aea4d",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 741,\r
+        "y": 2566,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "763ed9fe.b41af8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 467,\r
+        "y": 2803,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "3c67a2b6.56ec0e",\r
+                "5db1fe3e.c50c4",\r
+                "3f5a2e5b.807e42",\r
+                "a57f36b0.498bb8",\r
+                "e74b0463.901ba8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c67a2b6.56ec0e",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 606,\r
+        "y": 2762,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "7b44fdae.dba374"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ccbab50d.fb1c08",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 475,\r
+        "y": 2717,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b6bdc28d.0a9d1",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 878,\r
+        "y": 2740,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c20ced2c.54286",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 187,\r
+        "y": 2750,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "80ac6d40.b471f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "80ac6d40.b471f",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 331,\r
+        "y": 2768,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "763ed9fe.b41af8",\r
+                "ccbab50d.fb1c08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5db1fe3e.c50c4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 619,\r
+        "y": 2898,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "a1a1153c.aaf6a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "37f02bd6.a3bc34",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 874,\r
+        "y": 2872,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3f5a2e5b.807e42",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 583,\r
+        "y": 3001,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "9682ea99.385bb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5fa94b20.fa80a4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 856,\r
+        "y": 3001,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a57f36b0.498bb8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 505.5,\r
+        "y": 3116,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d48499c7.7a7708"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "48180881.455f58",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 850.5,\r
+        "y": 3113,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e74b0463.901ba8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 415,\r
+        "y": 3247,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "984049b4.f3f768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "194a38c2.ba5f17",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />",\r
+        "comments": "",\r
+        "x": 732,\r
+        "y": 3226,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "692a2465.ed0e4c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1396,\r
+        "y": 156,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "349a0c0c.fe1ba4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1183,\r
+        "y": 143,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d77d3b20.4deaf8",\r
+                "692a2465.ed0e4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38c2eecb.ad0df2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1191,\r
+        "y": 282,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "95485793.c9cb48",\r
+                "1bb4b679.b5f7aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "54d432b1.c4d86c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1152,\r
+        "y": 384,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f2edcadd.b7afc8",\r
+                "a605a893.aa9e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3c54b7f.d37ce8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1089,\r
+        "y": 500,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "dd9d755f.f70388",\r
+                "9a31744f.663728"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f41938e6.1bebe8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1000,\r
+        "y": 629,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "2adc2f40.dc7d4",\r
+                "db36b1ce.29afa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1bb4b679.b5f7aa",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1391,\r
+        "y": 295,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a605a893.aa9e08",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1347,\r
+        "y": 418,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a31744f.663728",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1299,\r
+        "y": 535,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "db36b1ce.29afa",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1252,\r
+        "y": 664,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd01f978.0f3698",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 974,\r
+        "y": 791,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "1a2eb6ab.8d8199",\r
+                "7b8b1c71.d4b564"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "952f6f66.9b3a7",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 995,\r
+        "y": 917,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "3389c8d8.7dc548",\r
+                "89e6c787.5eaec8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50fc2c72.542084",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 959,\r
+        "y": 1022,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "5e807b52.3b6674",\r
+                "dd906860.1e0508"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e42e2444.15dd28",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 877,\r
+        "y": 1142,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b0c44c3f.e472",\r
+                "a4b23de1.e4be2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74474581.b5e87c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 792,\r
+        "y": 1266,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "9570111b.094dd",\r
+                "ad791da9.09703"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b8b1c71.d4b564",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1176,\r
+        "y": 820,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "89e6c787.5eaec8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1217,\r
+        "y": 952,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd906860.1e0508",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1186,\r
+        "y": 1063,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4b23de1.e4be2",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1103,\r
+        "y": 1194,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad791da9.09703",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 979,\r
+        "y": 1297,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "23fa6a55.3ea336",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 831,\r
+        "y": 1436,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "3049243b.bf71ec",\r
+                "d3f85039.043cd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9ec6aee.e4c848",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 840,\r
+        "y": 1569,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "79ac5779.cefe88",\r
+                "38258153.d7527e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "94357a7.a130f88",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 806,\r
+        "y": 1672,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "15aa4115.225e1f",\r
+                "91a910f5.57bfe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8dce08fb.34cdb8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 739,\r
+        "y": 1787,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d72c3e8d.b95f1",\r
+                "87d5be5d.2b207"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "425a258e.6c173c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 643,\r
+        "y": 1915,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "29176cbc.abf4c4",\r
+                "649070e6.751a3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3f85039.043cd",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1018,\r
+        "y": 1488,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "38258153.d7527e",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1041,\r
+        "y": 1599,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "91a910f5.57bfe",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 996,\r
+        "y": 1706,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "87d5be5d.2b207",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 950,\r
+        "y": 1844,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "649070e6.751a3",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 870,\r
+        "y": 1963,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1bf49ff2.464d4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 766,\r
+        "y": 2066,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d19285ad.4d90a8",\r
+                "79bcc46a.422fdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "55d9ef5.6d3f01",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 766,\r
+        "y": 2225,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b2271a07.74ec28",\r
+                "cc056ff9.228ea"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "924b471a.324748",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 726,\r
+        "y": 2329,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "f1edcf75.5da63",\r
+                "93cf8bc1.5dacb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4afed28.6e4ed2c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 670,\r
+        "y": 2445,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "d286e908.53cd68",\r
+                "6c9cc97c.0f7638"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49cef9bf.0a62e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 572,\r
+        "y": 2564,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "99bb505e.aea4d",\r
+                "1a3d11cb.c21c6e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79bcc46a.422fdc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 966,\r
+        "y": 2115,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc056ff9.228ea",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 973,\r
+        "y": 2273,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "93cf8bc1.5dacb8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 934,\r
+        "y": 2384,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c9cc97c.0f7638",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 869,\r
+        "y": 2491,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a3d11cb.c21c6e",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 746,\r
+        "y": 2627,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c0951d6c.a967f",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 946,\r
+        "y": 2788,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d11608f.d4f13",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 938,\r
+        "y": 2930,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fbbe414c.78665",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 915,\r
+        "y": 3046,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8ac631c.1e37",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 873,\r
+        "y": 3163,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "44c3bcb0.5e6ad4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 817,\r
+        "y": 3284,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b44fdae.dba374",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 751,\r
+        "y": 2753,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "b6bdc28d.0a9d1",\r
+                "c0951d6c.a967f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1a1153c.aaf6a8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 760,\r
+        "y": 2898,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "37f02bd6.a3bc34",\r
+                "9d11608f.d4f13"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9682ea99.385bb8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 714,\r
+        "y": 3000,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "5fa94b20.fa80a4",\r
+                "fbbe414c.78665"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d48499c7.7a7708",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 663,\r
+        "y": 3116,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "48180881.455f58",\r
+                "e8ac631c.1e37"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "984049b4.f3f768",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 563,\r
+        "y": 3243,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "194a38c2.ba5f17",\r
+                "44c3bcb0.5e6ad4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f63ce118.af64a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 680,\r
+        "y": 80,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "1dc3bc82.c95123",\r
+                "e749c854.0dc6c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "30b73784.022928",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 598,\r
+        "y": 667,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "57d6620f.6163cc",\r
+                "c4b29e77.0b02a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "61e4c74f.7d0068",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 372,\r
+        "y": 1313,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "99a06c04.fc087",\r
+                "3f1ddc4f.602e34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2791d26.93119",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 301,\r
+        "y": 1959,\r
+        "z": "cf306303.ef4a7",\r
+        "wires": [\r
+            [\r
+                "89ba325e.4bc83",\r
+                "7726f454.56bf9c"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update.json b/platform-logic/optical-service/src/main/json/optical-service_bandwidth-update.json
new file mode 100644 (file)
index 0000000..4a83b13
--- /dev/null
@@ -0,0 +1,535 @@
+[\r
+    {\r
+        "id": "18085ebe.2080b1",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 491,\r
+        "y": 263,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "18152330.c91add"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18152330.c91add",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 612,\r
+        "y": 162,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "c668a8ef.03ace8",\r
+                "d1cff404.96b3b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66893dd3.7d6d44",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 974,\r
+        "y": 344,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "81ac4ffe.df305"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "81ac4ffe.df305",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1097,\r
+        "y": 339,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "3c2d54e2.97184c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "915a7aed.6d9c68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 1029,\r
+        "y": 243,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3133f444.5a5e1c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`0`' />\n",\r
+        "comments": "",\r
+        "x": 1371,\r
+        "y": 313,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6b05b797.6dcc48",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1423,\r
+        "y": 372,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "da084d00.a23f5",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 897,\r
+        "y": 187,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "632c39.072c73c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c668a8ef.03ace8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 770,\r
+        "y": 187,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "da084d00.a23f5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "632c39.072c73c8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 781,\r
+        "y": 294,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "47c4c7c8.0b4c88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "97eda245.3bd94",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$pin.speed-value`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 258,\r
+        "y": 277,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "18085ebe.2080b1",\r
+                "6336ec43.215354",\r
+                "4af01397.f0721c",\r
+                "13671476.30978c",\r
+                "8fdcca3.ccd1438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6336ec43.215354",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 535,\r
+        "y": 377,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "2ac5f263.9388fe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4af01397.f0721c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 514,\r
+        "y": 479,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "4c19e4dc.f77c2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13671476.30978c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 457,\r
+        "y": 578,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "8fbd05d3.328318"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8fdcca3.ccd1438",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 321,\r
+        "y": 705,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "89103495.e05898"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ac5f263.9388fe",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 691,\r
+        "y": 378,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "5316c08.338af4",\r
+                "e98e80e5.101d1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c19e4dc.f77c2c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 684,\r
+        "y": 482,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "50c6b9ba.7e87b8",\r
+                "5d79d201.e7950c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8fbd05d3.328318",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 641,\r
+        "y": 576,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "c6c0c526.a7b418",\r
+                "ca06e916.be11d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89103495.e05898",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 478,\r
+        "y": 707,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "153b1907.652237",\r
+                "b455fb41.56e658"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5316c08.338af4",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu1 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 870,\r
+        "y": 384,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "50c6b9ba.7e87b8",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu2 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 861,\r
+        "y": 481,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6c0c526.a7b418",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu3 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 807,\r
+        "y": 576,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "153b1907.652237",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu4 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 650,\r
+        "y": 676,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1cff404.96b3b8",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu0 calculation\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 789,\r
+        "y": 125,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca06e916.be11d8",\r
+        "type": "call",\r
+        "name": "call bandwidth-update-odu3",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update-odu3' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 847,\r
+        "y": 629,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b455fb41.56e658",\r
+        "type": "call",\r
+        "name": "call bandwidth-update-odu4",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update-odu4' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 697,\r
+        "y": 739,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e98e80e5.101d1",\r
+        "type": "call",\r
+        "name": "call bandwidth-update-odu1",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update-odu1' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 921,\r
+        "y": 430,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5d79d201.e7950c",\r
+        "type": "call",\r
+        "name": "call bandwidth-update-odu2",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update-odu2' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 907,\r
+        "y": 533,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "24d31db6.2991f2",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 107.5,\r
+        "y": 96,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "e91758dd.a9f1e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e91758dd.a9f1e8",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 166,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "9d59d2a1.9e885"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d59d2a1.9e885",\r
+        "type": "method",\r
+        "name": "method bandwidth-update",\r
+        "xml": "<method rpc='bandwidth-update' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 321.5,\r
+        "y": 59,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "2cba60b2.bce73"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cba60b2.bce73",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 369,\r
+        "y": 203,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "97eda245.3bd94"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c2d54e2.97184c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1242,\r
+        "y": 329,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "3133f444.5a5e1c",\r
+                "6b05b797.6dcc48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47c4c7c8.0b4c88",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 903,\r
+        "y": 290,\r
+        "z": "ad8c454f.e636c8",\r
+        "wires": [\r
+            [\r
+                "915a7aed.6d9c68",\r
+                "66893dd3.7d6d44"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_call-bandwidth-update-pinterface.json b/platform-logic/optical-service/src/main/json/optical-service_call-bandwidth-update-pinterface.json
new file mode 100644 (file)
index 0000000..120045b
--- /dev/null
@@ -0,0 +1,263 @@
+[\r
+    {\r
+        "id": "eea3e631.4d9b68",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 186,\r
+        "y": 126,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "cb6680a1.3045c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb6680a1.3045c",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 199,\r
+        "y": 186,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "fe24bdb7.c56f2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe24bdb7.c56f2",\r
+        "type": "method",\r
+        "name": "method call-bandwidth-update-pinterface",\r
+        "xml": "<method rpc='call-bandwidth-update-pinterface' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 219,\r
+        "y": 266,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "f4138d82.af408"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4138d82.af408",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 465.5,\r
+        "y": 265,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "644acd06.205cc4",\r
+                "9946b93e.6bd4e8",\r
+                "35af83ac.5dff5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "644acd06.205cc4",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/test.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$div`\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 621,\r
+        "y": 105,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f55c6dd9.5cdaa",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`0`' />\n",\r
+        "comments": "",\r
+        "x": 1768,\r
+        "y": 299,\r
+        "z": "75b8fd05.797274",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "79209df4.edd3e4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1823,\r
+        "y": 353,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9946b93e.6bd4e8",\r
+        "type": "get-resource",\r
+        "name": "find if interface is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND depth = 'all'\"\npfx='pin'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 754,\r
+        "y": 179,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "35af83ac.5dff5c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$pin.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 644,\r
+        "y": 262,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "e2e8e64.ad89518",\r
+                "2d42a8a.f473958"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60b2bda3.41fbd4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 951,\r
+        "y": 250,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "301928f8.f38eb8",\r
+                "64426912.b5d438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "301928f8.f38eb8",\r
+        "type": "call",\r
+        "name": "call bandwidth update",\r
+        "xml": "<call module='optical-service' rpc='bandwidth-update' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1160,\r
+        "y": 249,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2e8e64.ad89518",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 756,\r
+        "y": 360,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "97cc233d.bc8a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "97cc233d.bc8a6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 926,\r
+        "y": 365,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "7a8337c7.492958",\r
+                "118d5528.b1e21b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a8337c7.492958",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name' \n      local-only='false'>\n<parameter name='available-capacity' value='0' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1161,\r
+        "y": 399,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "64426912.b5d438",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Port is NNI\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1092,\r
+        "y": 191,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "118d5528.b1e21b",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Port is UNI\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1110,\r
+        "y": 308,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d42a8a.f473958",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 790,\r
+        "y": 264,\r
+        "z": "75b8fd05.797274",\r
+        "wires": [\r
+            [\r
+                "60b2bda3.41fbd4"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json b/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json
new file mode 100644 (file)
index 0000000..6926f79
--- /dev/null
@@ -0,0 +1,325 @@
+[\r
+    {\r
+        "id": "ef271e98.1343d",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 225.5555419921875,\r
+        "y": 244.44442749023438,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "69929ea4.2407d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "69929ea4.2407d",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 412.5555419921875,\r
+        "y": 193.44442749023438,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "926e362a.257c68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "926e362a.257c68",\r
+        "type": "method",\r
+        "name": "method",\r
+        "xml": "<method rpc='create-service-async' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 266.5555419921875,\r
+        "y": 367.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "1e677fcc.18edb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e677fcc.18edb",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 439.5555419921875,\r
+        "y": 366.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "570787b6.c60918",\r
+                "8b32ac88.06a0b",\r
+                "d11ad8e1.0343c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "570787b6.c60918",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Create Service Async\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 612.5555419921875,\r
+        "y": 277.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "28c538c4.2302f8",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Finished updating service in AAI and DB to CREATED\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1140.5555419921875,\r
+        "y": 359.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e382c44.972184",\r
+        "type": "update",\r
+        "name": "update AAI service 'CREATED'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='service-instance'\n     key='customer.global-customer-id = $output.global-customer-id AND\n     service-subscription.service-type = $output.service-type AND\n     service-instance.service-instance-id = $output.service-instance-id' \n      local-only='false'>\n<parameter name='orchestration-status' value='CREATED' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1163.5555419921875,\r
+        "y": 227.44442749023438,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "11f258cf.0cfbe7",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='200'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 744.5555419921875,\r
+        "y": 328.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "6823decd.1c0f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f9398a1.9403f7",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 735.5555419921875,\r
+        "y": 440.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "a0d9ffaf.322a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6823decd.1c0f4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 914.5555419921875,\r
+        "y": 306.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "28c538c4.2302f8",\r
+                "5e382c44.972184",\r
+                "8124c756.1dde88",\r
+                "15476d01.4a1043"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a0d9ffaf.322a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 907.5555419921875,\r
+        "y": 443.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "20546055.63c8f",\r
+                "7353aa4c.564df4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b32ac88.06a0b",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$response-code`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 613.5555419921875,\r
+        "y": 366.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "11f258cf.0cfbe7",\r
+                "1f9398a1.9403f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8124c756.1dde88",\r
+        "type": "save",\r
+        "name": "update DB 'CREATED'",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE REQUEST_DETAILS SET status = \"CREATED\" WHERE request_id = $request-id'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1177.5555419921875,\r
+        "y": 299.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "20546055.63c8f",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='aai-delete-service-handling' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1058.5555419921875,\r
+        "y": 471.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d11ad8e1.0343c8",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.template.so.response.filename`\" />\n<parameter name=\"restapiUrl\" value=\"`$output.notification-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.so.username`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.so.password`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 600.5555419921875,\r
+        "y": 501.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "7c0eb31b.04d7bc",\r
+                "f4076cb2.329c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c0eb31b.04d7bc",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 762.5555419921875,\r
+        "y": 494.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "d698b0bd.4bbda"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4076cb2.329c4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 764.5555419921875,\r
+        "y": 564.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            [\r
+                "43f03cc3.9bf324"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d698b0bd.4bbda",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service create\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 904.5555419921875,\r
+        "y": 494.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "43f03cc3.9bf324",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO Success for service create\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 904.5555419921875,\r
+        "y": 564.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "15476d01.4a1043",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='response-message' value='SUCCESS' />\n",\r
+        "comments": "",\r
+        "x": 1073.5555419921875,\r
+        "y": 146.44442749023438,\r
+        "z": "d7735114.f6066",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7353aa4c.564df4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='response-message' value='FAILURE' />\n",\r
+        "comments": "",\r
+        "x": 1052.5555419921875,\r
+        "y": 401.4444274902344,\r
+        "z": "d7735114.f6066",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu1.json b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu1.json
new file mode 100644 (file)
index 0000000..d9ec517
--- /dev/null
@@ -0,0 +1,454 @@
+[\r
+    {\r
+        "id": "14cf1df4.f54662",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 993.5,\r
+        "y": 264,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "4b4c9586.60ad3c",\r
+                "50fa7b63.da3bc4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b4c9586.60ad3c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1126.5,\r
+        "y": 233,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "306779ca.c7fe56"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9426ab97.b5f1b8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 998.5,\r
+        "y": 186,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "932a9498.ee5f98",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='mul' value='`$odu-number * 1.25`' />\n<parameter name='add' value='`$new-rate + $mul + 1.25`' />\n<parameter name='new-odu-number' value='`$add / 1.25`' />\n\n",\r
+        "comments": "",\r
+        "x": 1360.5,\r
+        "y": 161,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c328c57.512f64",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 717.5,\r
+        "y": 210,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "f515e19a.c4eb9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "147a7157.aff1bf",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 641.5,\r
+        "y": 328,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "2c328c57.512f64",\r
+                "6b124827.5aa0d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f515e19a.c4eb9",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 855.5,\r
+        "y": 217,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "14cf1df4.f54662",\r
+                "9426ab97.b5f1b8",\r
+                "540fc918.04e698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50fa7b63.da3bc4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1125.5,\r
+        "y": 348,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "3aa7a5af.1f725a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98ca9a7a.b1da28",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1400.5,\r
+        "y": 316,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bcd896ea.134ef8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1007.5,\r
+        "y": 544,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "734120af.333b1",\r
+                "e334adc6.74e18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "734120af.333b1",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1148.5,\r
+        "y": 536,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "dcf100f.11c2f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dedfd85.da6a228",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
+        "comments": "",\r
+        "x": 1012.5,\r
+        "y": 466,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "759d5016.edc78",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1350.5,\r
+        "y": 469,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6b124827.5aa0d8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 718.5,\r
+        "y": 490,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "6b0aeeeb.a0e81"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b0aeeeb.a0e81",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 869.5,\r
+        "y": 497,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "bcd896ea.134ef8",\r
+                "dedfd85.da6a228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e334adc6.74e18",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1132.5,\r
+        "y": 667,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "d26ccdca.365ae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf4ea28f.11fc6",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='1' />\n",\r
+        "comments": "",\r
+        "x": 1377.5,\r
+        "y": 623,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "27d03218.2c866e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 484.5,\r
+        "y": 319,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "147a7157.aff1bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2abadb85.1dc3d4",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 201,\r
+        "y": 268,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "bec96b67.883f28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bec96b67.883f28",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 214,\r
+        "y": 328,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "78d1d1d9.cb848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78d1d1d9.cb848",\r
+        "type": "method",\r
+        "name": "method delete bandwidth-update-odu1",\r
+        "xml": "<method rpc='delete-bandwidth-update-odu1' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 398,\r
+        "y": 221,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "27d03218.2c866e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "351de7e6.d55ea8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1363.5,\r
+        "y": 228,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6aa1cc4f.711764",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1376.5,\r
+        "y": 371,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "97686f7.b4f569",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1396.5,\r
+        "y": 525,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddeda7ad.8f0998",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1327.5,\r
+        "y": 694,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "306779ca.c7fe56",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1233.5,\r
+        "y": 161,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "932a9498.ee5f98",\r
+                "351de7e6.d55ea8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3aa7a5af.1f725a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1256.5,\r
+        "y": 312,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "98ca9a7a.b1da28",\r
+                "6aa1cc4f.711764"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dcf100f.11c2f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1230.5,\r
+        "y": 459,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "759d5016.edc78",\r
+                "97686f7.b4f569"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d26ccdca.365ae",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1250.5,\r
+        "y": 626,\r
+        "z": "9d563055.a9c91",\r
+        "wires": [\r
+            [\r
+                "cf4ea28f.11fc6",\r
+                "ddeda7ad.8f0998"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "540fc918.04e698",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 946,\r
+        "y": 104,\r
+        "z": "9d563055.a9c91",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu2.json b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu2.json
new file mode 100644 (file)
index 0000000..656b365
--- /dev/null
@@ -0,0 +1,860 @@
+[\r
+    {\r
+        "id": "b084fa89.f01ea8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 438,\r
+        "y": 232,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "4a97ff4f.bfd68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96e5a34.59f306",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1079,\r
+        "y": 277,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "3237c518.883aea",\r
+                "17eeb3ce.47776c",\r
+                "f581aa2a.165e38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3237c518.883aea",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1155,\r
+        "y": 243,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "8941d396.ae578"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d4152ec.e45f7c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 1061,\r
+        "y": 181,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "90fbbfdf.89335",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1443,\r
+        "y": 211,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7de90141.291c1",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 736,\r
+        "y": 231,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "2095e985.399556"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a97ff4f.bfd68",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 592,\r
+        "y": 231,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "7de90141.291c1",\r
+                "ab83f93d.af31c8",\r
+                "8918a3a1.0f4c3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bbd68719.94eee8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 919,\r
+        "y": 219,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "96e5a34.59f306",\r
+                "4d4152ec.e45f7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17eeb3ce.47776c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1168,\r
+        "y": 379,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "cd9a6f0d.03ece"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "998f566b.d4d9e8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1467,\r
+        "y": 332,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "790b63ef.5c774c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 960,\r
+        "y": 90,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f581aa2a.165e38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1132,\r
+        "y": 482,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "dfcbed36.411bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39a8fb6b.0b40a4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1436,\r
+        "y": 454,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "12b025be.1f759a",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1007,\r
+        "y": 667,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "3061fe37.c208d2",\r
+                "2365bc21.8d3944",\r
+                "725b3549.24459c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3061fe37.c208d2",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1129,\r
+        "y": 621,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "c7c40fab.6345"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96e86968.dc5e98",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 998,\r
+        "y": 576,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a3c6d00a.fa619",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 + 2.5`' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1452,\r
+        "y": 593,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ab83f93d.af31c8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 710,\r
+        "y": 609,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "b066df18.02cae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98be1322.5dbe2",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 884,\r
+        "y": 640,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "12b025be.1f759a",\r
+                "96e86968.dc5e98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2365bc21.8d3944",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1142,\r
+        "y": 757,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "68cdb2e2.1beadc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a7b0de3.f782f4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1450,\r
+        "y": 709,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9c6b03eb.4ea26",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 928,\r
+        "y": 502,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "725b3549.24459c",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1106,\r
+        "y": 860,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "421b157.4c954ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddc39868.09efe8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />",\r
+        "comments": "",\r
+        "x": 1367,\r
+        "y": 826,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1bd73569.83c83b",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 975,\r
+        "y": 1078,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "d2d3fe29.bb8c5",\r
+                "7053f4c5.cb96fc",\r
+                "e891798c.221d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2d3fe29.bb8c5",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1195,\r
+        "y": 1029,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "65623413.b6a16c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5799259.1501c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 965,\r
+        "y": 995,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bc2d2f17.5283e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1468,\r
+        "y": 993,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8918a3a1.0f4c3",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 483,\r
+        "y": 1046,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "9bd6ab5e.2aa3f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9bd6ab5e.2aa3f8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 767,\r
+        "y": 1068,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "1bd73569.83c83b",\r
+                "e5799259.1501c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7053f4c5.cb96fc",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1207,\r
+        "y": 1139,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "4fbc165e.af8b28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ec7cd6b.270684",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1489,\r
+        "y": 1134,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e891798c.221d78",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1172,\r
+        "y": 1268,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "ad049b10.0853d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7954d64.7fafd28",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='1' />\n",\r
+        "comments": "",\r
+        "x": 1467,\r
+        "y": 1232,\r
+        "z": "a05b184c.d06448",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f31d8438.407118",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 154.5,\r
+        "y": 181,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "a3c96eae.dff1a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a3c96eae.dff1a",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 167.5,\r
+        "y": 241,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "38a440d1.a85fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38a440d1.a85fc",\r
+        "type": "method",\r
+        "name": "method bandwidth-update-odu2",\r
+        "xml": "<method rpc='delete-bandwidth-update-odu2' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 351.5,\r
+        "y": 134,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "b084fa89.f01ea8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ee205eb.afea4c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1507,\r
+        "y": 273,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "73d5ca4b.b372c4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1533,\r
+        "y": 406,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd46f3c0.e51ed",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1510,\r
+        "y": 500,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3eb9c961.16b566",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1522,\r
+        "y": 642,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5662332b.e46ebc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1525,\r
+        "y": 769,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d29d5b74.ba8d28",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1440,\r
+        "y": 873,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "37487968.375e66",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1545,\r
+        "y": 1049,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "80e964ca.f77f08",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1551,\r
+        "y": 1177,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2b35aea.618608",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1537,\r
+        "y": 1304,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8941d396.ae578",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1291,\r
+        "y": 241,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "90fbbfdf.89335",\r
+                "6ee205eb.afea4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd9a6f0d.03ece",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1316,\r
+        "y": 377,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "998f566b.d4d9e8",\r
+                "73d5ca4b.b372c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfcbed36.411bf",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1282,\r
+        "y": 482,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "39a8fb6b.0b40a4",\r
+                "fd46f3c0.e51ed"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7c40fab.6345",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1280,\r
+        "y": 620,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "a3c6d00a.fa619",\r
+                "3eb9c961.16b566"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "68cdb2e2.1beadc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1282,\r
+        "y": 753,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "4a7b0de3.f782f4",\r
+                "5662332b.e46ebc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "421b157.4c954ec",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1245,\r
+        "y": 855,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "ddc39868.09efe8",\r
+                "d29d5b74.ba8d28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65623413.b6a16c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1329,\r
+        "y": 1028,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "bc2d2f17.5283e",\r
+                "37487968.375e66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4fbc165e.af8b28",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1343,\r
+        "y": 1139,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "5ec7cd6b.270684",\r
+                "80e964ca.f77f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad049b10.0853d8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1329,\r
+        "y": 1265,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "7954d64.7fafd28",\r
+                "c2b35aea.618608"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2095e985.399556",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 847,\r
+        "y": 139,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "790b63ef.5c774c",\r
+                "bbd68719.94eee8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b066df18.02cae",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 783,\r
+        "y": 524,\r
+        "z": "a05b184c.d06448",\r
+        "wires": [\r
+            [\r
+                "9c6b03eb.4ea26",\r
+                "98be1322.5dbe2"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu3.json b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu3.json
new file mode 100644 (file)
index 0000000..7d7bf57
--- /dev/null
@@ -0,0 +1,1369 @@
+[\r
+    {\r
+        "id": "8d41b76e.8319d8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 988,\r
+        "y": 236,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d69353a4.24ec8",\r
+                "15df8587.d012ba",\r
+                "e34c472c.7e9bf8",\r
+                "245e3f1e.5d3a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d69353a4.24ec8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1127,\r
+        "y": 195,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "dad51fb1.76c5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df03b509.c3f478",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 996,\r
+        "y": 150,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3609827f.fcb6ce",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1420,\r
+        "y": 166,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eebdd00f.806a1",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 708,\r
+        "y": 183,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "1626d84d.ac5288"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c473b1.dfd6cc5",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 577,\r
+        "y": 239,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "eebdd00f.806a1",\r
+                "57db244d.168dec",\r
+                "e47d3f3c.c7eee",\r
+                "9d8b96fe.e35c18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6696470.4af878",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 852,\r
+        "y": 201,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "8d41b76e.8319d8",\r
+                "df03b509.c3f478"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15df8587.d012ba",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1157,\r
+        "y": 284,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "9aebc906.7ec828"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7af77373.08ef3c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1424,\r
+        "y": 269,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f8bfac2.36eb75",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 940,\r
+        "y": 110,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e34c472c.7e9bf8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1126,\r
+        "y": 384,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "320538e5.459798"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49d2e14a.e0831",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1412,\r
+        "y": 381,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "245e3f1e.5d3a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1053.5,\r
+        "y": 492,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "15c7f37b.3ce5cd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a44f2f93.e33ee",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 1340.5,\r
+        "y": 477,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4f82d59f.d7878c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 928.5,\r
+        "y": 761,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "63ef2910.e15ea8",\r
+                "13e7fbbe.8224c4",\r
+                "545acf83.d977a",\r
+                "e76578e3.fa2b68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "63ef2910.e15ea8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1067.5,\r
+        "y": 720,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "2eed2013.3103b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ce84401.de74fc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 936.5,\r
+        "y": 675,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5d046c24.a94904",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1344.5,\r
+        "y": 680,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "57db244d.168dec",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 648.5,\r
+        "y": 708,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "1d988fc7.aaa8d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9af7bf20.b6eca",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 835.5,\r
+        "y": 705,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "4f82d59f.d7878c",\r
+                "2ce84401.de74fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13e7fbbe.8224c4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1102.5,\r
+        "y": 813,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "de8e79cb.6adff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34140f7a.d40ac",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1375.5,\r
+        "y": 797,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a1d8630c.b5301",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 868.5,\r
+        "y": 602,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "545acf83.d977a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1060.5,\r
+        "y": 904,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "cd07167a.fb6828"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2cf346e.d8f528",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1365.5,\r
+        "y": 903,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e76578e3.fa2b68",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 967,\r
+        "y": 1074,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d55a158d.d18d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a05435f.d4353",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n\n",\r
+        "comments": "",\r
+        "x": 1233,\r
+        "y": 1042,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "adf37b81.78f9d8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 791.5,\r
+        "y": 1299,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "123b2c6c.87d394",\r
+                "764640ee.5307a",\r
+                "640e28ad.70c758",\r
+                "199e7d83.d11602"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "123b2c6c.87d394",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 978.5,\r
+        "y": 1239,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "163bb21d.b7402e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfe59ec0.7b47f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 817.5,\r
+        "y": 1193,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a5ceaad0.7b2e98",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1278.5,\r
+        "y": 1202,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e47d3f3c.c7eee",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 498.5,\r
+        "y": 1244,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "94b9cb3e.7a7908"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e4dfd94a.f3f8a8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 670.5,\r
+        "y": 1238,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "adf37b81.78f9d8",\r
+                "dfe59ec0.7b47f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "764640ee.5307a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1000.5,\r
+        "y": 1330,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "6db1b75e.333138"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70caefc5.35b37",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1291.5,\r
+        "y": 1317,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "42aeb489.01833c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 709.5,\r
+        "y": 1040,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "640e28ad.70c758",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 994.5,\r
+        "y": 1430,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "e683a53a.2cb798"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bce56334.cef35",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1297.5,\r
+        "y": 1415,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "199e7d83.d11602",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 941,\r
+        "y": 1553,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "b2417e73.3411e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c33b36cc.bdba48",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n\n",\r
+        "comments": "",\r
+        "x": 1253,\r
+        "y": 1523,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "661a2b7a.180074",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 680.5,\r
+        "y": 1825,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "dd12f2f0.8a68a",\r
+                "66a31a3b.1c8154",\r
+                "b0413d9c.7600e",\r
+                "96922755.f96fc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd12f2f0.8a68a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 819.5,\r
+        "y": 1784,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "9abceb9d.617848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8601a47a.8c3ed8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 688.5,\r
+        "y": 1739,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2d4dab4.8c6e454",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='32' />\n",\r
+        "comments": "",\r
+        "x": 1146.5,\r
+        "y": 1752,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e01f4ec9.b4c58",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1158.5,\r
+        "y": 1810,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d8b96fe.e35c18",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 250.5,\r
+        "y": 1802,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "e6692338.1522b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e6692338.1522b",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 496.5,\r
+        "y": 1801,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "661a2b7a.180074",\r
+                "8601a47a.8c3ed8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66a31a3b.1c8154",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 832.5,\r
+        "y": 1920,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "12a7c275.a1dfbe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d62119c.036fc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='16' />",\r
+        "comments": "",\r
+        "x": 1102.5,\r
+        "y": 1886,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "33303232.af288e",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1173.5,\r
+        "y": 1940,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0413d9c.7600e",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 796.5,\r
+        "y": 2023,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d89df4a1.349488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d03beaa6.c50d48",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='4' />",\r
+        "comments": "",\r
+        "x": 1113.5,\r
+        "y": 1991,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ec61d318.4a068",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1165.5,\r
+        "y": 2071,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "96922755.f96fc8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 719,\r
+        "y": 2138,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "e8da0845.d7dd68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0f4bd54.3df3c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='1' />",\r
+        "comments": "",\r
+        "x": 1012,\r
+        "y": 2104,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "93d95bab.ebebf8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $aend-pnf-name AND\n     p-interface.interface-name = $aend-nep AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1068,\r
+        "y": 2178,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8787e989.ccd598",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 203,\r
+        "y": 196,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "3c964252.555eae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c964252.555eae",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 216,\r
+        "y": 256,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "e7c3d6b.cd1a228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7c3d6b.cd1a228",\r
+        "type": "method",\r
+        "name": "method delete-bandwidth-update-odu3",\r
+        "xml": "<method rpc='delete-bandwidth-update-odu3' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 403,\r
+        "y": 149,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "da1e03d2.0ead3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da1e03d2.0ead3",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 450.5,\r
+        "y": 293,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "c473b1.dfd6cc5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7004d549.5cff0c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1465.5,\r
+        "y": 224,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "22d5f51.6d8c50a",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1478.5,\r
+        "y": 323,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a656ecb.418852",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1457.5,\r
+        "y": 427,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cf809fa.4e86d8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1401.5,\r
+        "y": 527,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b5fea7b.ea5c58",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1311.5,\r
+        "y": 1095,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d90c61bd.7df73",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1395.5,\r
+        "y": 949,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e86a4f54.8b60c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1424.5,\r
+        "y": 847,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d30a43c5.05e1",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1410.5,\r
+        "y": 737,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "15df0c5e.685b84",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1338.5,\r
+        "y": 1255,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c63d1802.0a2cc8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1345.5,\r
+        "y": 1363,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c14fd025.9a0ba",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1325.5,\r
+        "y": 1473,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3320388.be5e4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1319.5,\r
+        "y": 1586,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dad51fb1.76c5",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1269.5,\r
+        "y": 195,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "3609827f.fcb6ce",\r
+                "7004d549.5cff0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9aebc906.7ec828",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1286.5,\r
+        "y": 281,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "7af77373.08ef3c",\r
+                "22d5f51.6d8c50a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "320538e5.459798",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1276.5,\r
+        "y": 386,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "49d2e14a.e0831",\r
+                "3a656ecb.418852"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15c7f37b.3ce5cd",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1188.5,\r
+        "y": 489,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "a44f2f93.e33ee",\r
+                "9cf809fa.4e86d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2eed2013.3103b",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1210.5,\r
+        "y": 718,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "5d046c24.a94904",\r
+                "d30a43c5.05e1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de8e79cb.6adff8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1236.5,\r
+        "y": 814,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "34140f7a.d40ac",\r
+                "e86a4f54.8b60c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd07167a.fb6828",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1206.5,\r
+        "y": 903,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "c2cf346e.d8f528",\r
+                "d90c61bd.7df73"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d55a158d.d18d78",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1102.5,\r
+        "y": 1072,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "8a05435f.d4353",\r
+                "9b5fea7b.ea5c58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "163bb21d.b7402e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1120.5,\r
+        "y": 1236,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "a5ceaad0.7b2e98",\r
+                "15df0c5e.685b84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6db1b75e.333138",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1145.5,\r
+        "y": 1330,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "70caefc5.35b37",\r
+                "c63d1802.0a2cc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e683a53a.2cb798",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1145.5,\r
+        "y": 1425,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "bce56334.cef35",\r
+                "c14fd025.9a0ba"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2417e73.3411e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1082.5,\r
+        "y": 1550,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "c33b36cc.bdba48",\r
+                "c3320388.be5e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9abceb9d.617848",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 968.5,\r
+        "y": 1778,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "2d4dab4.8c6e454",\r
+                "e01f4ec9.b4c58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12a7c275.a1dfbe",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 972.5,\r
+        "y": 1917,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "4d62119c.036fc",\r
+                "33303232.af288e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d89df4a1.349488",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 942.5,\r
+        "y": 2020,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d03beaa6.c50d48",\r
+                "ec61d318.4a068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8da0845.d7dd68",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 850.5,\r
+        "y": 2134,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "d0f4bd54.3df3c",\r
+                "93d95bab.ebebf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1626d84d.ac5288",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 793.5,\r
+        "y": 117,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "f8bfac2.36eb75",\r
+                "d6696470.4af878"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d988fc7.aaa8d",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 734.5,\r
+        "y": 614,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "a1d8630c.b5301",\r
+                "9af7bf20.b6eca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "94b9cb3e.7a7908",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 609.5,\r
+        "y": 1102,\r
+        "z": "8a2f58b1.303d78",\r
+        "wires": [\r
+            [\r
+                "42aeb489.01833c",\r
+                "e4dfd94a.f3f8a8"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu4.json b/platform-logic/optical-service/src/main/json/optical-service_delete-bandwidth-update-odu4.json
new file mode 100644 (file)
index 0000000..dd24ec2
--- /dev/null
@@ -0,0 +1,1998 @@
+[\r
+    {\r
+        "id": "cc88740a.d18858",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 906.5,\r
+        "y": 234,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "ec6a20fb.4d35",\r
+                "dadcc749.b32938",\r
+                "ddd6d57c.9ced78",\r
+                "7bbf1a7c.4bd704",\r
+                "b6932950.974d38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ec6a20fb.4d35",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1045.5,\r
+        "y": 193,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "71b54a1e.76d464"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fdb469ba.aea598",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 914.5,\r
+        "y": 148,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "31a50a41.c4f296",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1348.5,\r
+        "y": 131,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "29663dcb.c50a22",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 626.5,\r
+        "y": 181,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "f6326386.3110b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fda877ca.d8efd8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 495.5,\r
+        "y": 237,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "29663dcb.c50a22",\r
+                "61e3284a.786fc8",\r
+                "65399e41.006f5",\r
+                "8331c6db.d82208",\r
+                "6866fd25.085604"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83b38caf.77a65",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 816.5,\r
+        "y": 185,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "cc88740a.d18858",\r
+                "fdb469ba.aea598"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dadcc749.b32938",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1058.5,\r
+        "y": 329,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "cc0ff801.9a2c88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abfe89e5.77de78",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1315.5,\r
+        "y": 284,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c8150f72.a6ddb",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 783.5,\r
+        "y": 85,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ddd6d57c.9ced78",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1022.5,\r
+        "y": 432,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "55f9b5d1.30b88c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b8a271c.f86558",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1319.5,\r
+        "y": 404,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7bbf1a7c.4bd704",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 945,\r
+        "y": 547,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "19f2ff00.f00971"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe790a3c.9a15a8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 1247,\r
+        "y": 519,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "30e9996b.2eae46",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 121.5,\r
+        "y": 194,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "56814f30.ccf4f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "56814f30.ccf4f",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 134.5,\r
+        "y": 254,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "34f5e2a6.0519ce"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34f5e2a6.0519ce",\r
+        "type": "method",\r
+        "name": "method delete bandwidth-update-odu4",\r
+        "xml": "<method rpc='delete-bandwidth-update-odu4' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 318.5,\r
+        "y": 147,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2a403491.3f102c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a403491.3f102c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 369,\r
+        "y": 291,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "fda877ca.d8efd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b6932950.974d38",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 854.5,\r
+        "y": 678,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "33ef2100.94a93"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d44cfa3.e1f37",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",\r
+        "comments": "",\r
+        "x": 1189.5,\r
+        "y": 653,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f2e5ec12.72084",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 699.5,\r
+        "y": 875,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "66ff3db3.558494",\r
+                "166020fb.4fc2ff",\r
+                "5d58dc53.9a5524",\r
+                "56d61ee2.93f6f",\r
+                "6214d8db.707218"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66ff3db3.558494",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 838.5,\r
+        "y": 834,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "ee090cfa.47d82"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b5e27ff.1e1a68",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 707.5,\r
+        "y": 789,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e500448.b3e17c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.5 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 1118.5,\r
+        "y": 811,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "61e3284a.786fc8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 419.5,\r
+        "y": 822,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "18e66372.38fbfd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab02c8a.fb9e538",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 607.5,\r
+        "y": 832,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "f2e5ec12.72084",\r
+                "6b5e27ff.1e1a68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "166020fb.4fc2ff",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 851.5,\r
+        "y": 970,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "93138ec2.21291"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c90177ab.d9e9e8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 1165.5,\r
+        "y": 944,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd2246c4.c9d9d8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 710.5,\r
+        "y": 659,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5d58dc53.9a5524",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 815.5,\r
+        "y": 1073,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "fcf70703.de8018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b7bb736.873f58",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 1113.5,\r
+        "y": 1061,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "56d61ee2.93f6f",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 738,\r
+        "y": 1188,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "187f78f0.1f0e47"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "59ab82e8.b2d06c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 991,\r
+        "y": 1189,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6214d8db.707218",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 647.5,\r
+        "y": 1319,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "db42f47f.bab0a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10540582.e5e31a",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",\r
+        "comments": "",\r
+        "x": 910.5,\r
+        "y": 1298,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2894aeeb.098f92",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 550.5,\r
+        "y": 1522,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "bb22ab08.091558",\r
+                "75052fc5.0c7e5",\r
+                "5061896a.175198",\r
+                "835735a8.f975c8",\r
+                "60b9cb5b.d389f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb22ab08.091558",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 689.5,\r
+        "y": 1481,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "d78b1e27.6807d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cd7515f.85632e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 558.5,\r
+        "y": 1436,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "79dc39fc.d92468",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 956.5,\r
+        "y": 1483,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "65399e41.006f5",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 270.5,\r
+        "y": 1469,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "27260d94.bdce02"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f27c3bdd.40a7d8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 414.5,\r
+        "y": 1487,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2894aeeb.098f92",\r
+                "3cd7515f.85632e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75052fc5.0c7e5",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 702.5,\r
+        "y": 1617,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "a64dd5fd.979978"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a8b4f9c.99a4f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 964.5,\r
+        "y": 1592,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ae596d23.ffcbe",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 493.5,\r
+        "y": 1352,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5061896a.175198",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 666.5,\r
+        "y": 1720,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "d3f23744.959668"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "708f1f3.59cc6e",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 948.5,\r
+        "y": 1692,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "835735a8.f975c8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 589,\r
+        "y": 1835,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "9c31fdd3.8019"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e74b995.080ac8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 870,\r
+        "y": 1830,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "60b9cb5b.d389f4",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 498.5,\r
+        "y": 1966,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "e13be75e.0ed828"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e46ae81.a94fb",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",\r
+        "comments": "",\r
+        "x": 776.5,\r
+        "y": 1960,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1344723c.62dc8e",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 480.5,\r
+        "y": 2176,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "63adf83d.fa8608",\r
+                "8f6d26d0.a90738",\r
+                "1c4b4a71.f99166",\r
+                "88a94576.a532f8",\r
+                "197bee79.743762"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "63adf83d.fa8608",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 619.5,\r
+        "y": 2135,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "bb8717d.98063e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c68fdd6d.064e2",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 488.5,\r
+        "y": 2090,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2813c51b.3b520a",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 40 `' />\n<parameter name='new-odu-number' value='`$new-rate / 1.25`' />\n",\r
+        "comments": "",\r
+        "x": 886.5,\r
+        "y": 2112,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8331c6db.d82208",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 200.5,\r
+        "y": 2123,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "968f3953.080178"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6440a99f.61bf28",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 381.5,\r
+        "y": 2116,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "1344723c.62dc8e",\r
+                "c68fdd6d.064e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f6d26d0.a90738",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 632.5,\r
+        "y": 2271,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "5da983c3.e1d2ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6da5650d.a39a7c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 2.5`' />\n",\r
+        "comments": "",\r
+        "x": 884.5,\r
+        "y": 2267,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4964d358.105f0c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-rate' value='' />\n",\r
+        "comments": "",\r
+        "x": 431.5,\r
+        "y": 2030,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1c4b4a71.f99166",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 596.5,\r
+        "y": 2374,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "b0f60bb.3262cf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ff4f8f6.86a188",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 10`' />\n",\r
+        "comments": "",\r
+        "x": 882.5,\r
+        "y": 2372,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "88a94576.a532f8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 519,\r
+        "y": 2489,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "cc232935.3f9f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad946015.e587d",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 40`' />\n",\r
+        "comments": "",\r
+        "x": 790,\r
+        "y": 2483,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "197bee79.743762",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 428.5,\r
+        "y": 2620,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "7c05d82.d12ef28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1275394e.236567",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='`$new-rate / 100`' />\n",\r
+        "comments": "",\r
+        "x": 736.5,\r
+        "y": 2612,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72dd2cf4.351f54",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$odu-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 462.5,\r
+        "y": 2849,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "18416ef2.ba5491",\r
+                "3f9e5c53.79ce24",\r
+                "8387bf46.cfc03",\r
+                "86469ccf.d4a69",\r
+                "703bcbd8.ccaa24"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18416ef2.ba5491",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 601.5,\r
+        "y": 2808,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "e620b730.716308"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca7bfd42.04981",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n\n",\r
+        "comments": "",\r
+        "x": 470.5,\r
+        "y": 2763,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "302523c5.0f8d8c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='80' />\n",\r
+        "comments": "",\r
+        "x": 873.5,\r
+        "y": 2786,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6866fd25.085604",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 182.5,\r
+        "y": 2796,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "7ea41c4e.513904"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ea41c4e.513904",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 326.5,\r
+        "y": 2814,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "72dd2cf4.351f54",\r
+                "ca7bfd42.04981"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f9e5c53.79ce24",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614.5,\r
+        "y": 2944,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "130aaf8d.b9dfc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f3050bc.f5300f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='40' />",\r
+        "comments": "",\r
+        "x": 869.5,\r
+        "y": 2918,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8387bf46.cfc03",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU2'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 578.5,\r
+        "y": 3047,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "dae1085f.bbf3d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "626c25fe.549ccc",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='10' />",\r
+        "comments": "",\r
+        "x": 851.5,\r
+        "y": 3047,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "86469ccf.d4a69",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU3'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 501,\r
+        "y": 3162,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "635d7956.0a1708"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a636bfd.78de84",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='2' />",\r
+        "comments": "",\r
+        "x": 846,\r
+        "y": 3159,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "703bcbd8.ccaa24",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='ODU4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 410.5,\r
+        "y": 3293,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "567ca1e0.2a9b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c248fb50.5e9388",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='new-odu-number' value='1' />",\r
+        "comments": "",\r
+        "x": 727.5,\r
+        "y": 3272,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd09ca1f.383d68",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1391.5,\r
+        "y": 202,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "71b54a1e.76d464",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1178.5,\r
+        "y": 189,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "31a50a41.c4f296",\r
+                "bd09ca1f.383d68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc0ff801.9a2c88",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1186.5,\r
+        "y": 328,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "abfe89e5.77de78",\r
+                "e979a386.df595"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "55f9b5d1.30b88c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1147.5,\r
+        "y": 430,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "9b8a271c.f86558",\r
+                "48073d25.db9f14"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19f2ff00.f00971",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1084.5,\r
+        "y": 546,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "fe790a3c.9a15a8",\r
+                "8ed3505f.cc695"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33ef2100.94a93",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 995.5,\r
+        "y": 675,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "4d44cfa3.e1f37",\r
+                "1dc0e5b7.0c161a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e979a386.df595",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1386.5,\r
+        "y": 341,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "48073d25.db9f14",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1342.5,\r
+        "y": 464,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ed3505f.cc695",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1294.5,\r
+        "y": 581,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1dc0e5b7.0c161a",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1247.5,\r
+        "y": 710,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee090cfa.47d82",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 969.5,\r
+        "y": 837,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2e500448.b3e17c",\r
+                "90a042a7.aabef"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93138ec2.21291",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 990.5,\r
+        "y": 963,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "c90177ab.d9e9e8",\r
+                "79fe4e64.bfbc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fcf70703.de8018",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 954.5,\r
+        "y": 1068,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "7b7bb736.873f58",\r
+                "5305fd9.d71ef04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "187f78f0.1f0e47",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 872.5,\r
+        "y": 1188,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "59ab82e8.b2d06c",\r
+                "5a68e84d.f32638"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "db42f47f.bab0a8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 787.5,\r
+        "y": 1312,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "10540582.e5e31a",\r
+                "8f58142a.864268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "90a042a7.aabef",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1171.5,\r
+        "y": 866,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "79fe4e64.bfbc8",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1212.5,\r
+        "y": 998,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5305fd9.d71ef04",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1181.5,\r
+        "y": 1109,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a68e84d.f32638",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1098.5,\r
+        "y": 1240,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f58142a.864268",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 974.5,\r
+        "y": 1343,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d78b1e27.6807d",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 826.5,\r
+        "y": 1482,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "79dc39fc.d92468",\r
+                "a1897bb9.653598"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a64dd5fd.979978",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 835.5,\r
+        "y": 1615,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "4a8b4f9c.99a4f",\r
+                "cbf4e316.c0ca2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3f23744.959668",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 801.5,\r
+        "y": 1718,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "708f1f3.59cc6e",\r
+                "fa009921.006868"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c31fdd3.8019",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 734.5,\r
+        "y": 1833,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "4e74b995.080ac8",\r
+                "267e668.24a139a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e13be75e.0ed828",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 638.5,\r
+        "y": 1961,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "6e46ae81.a94fb",\r
+                "b78e12a0.1a95c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1897bb9.653598",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1013.5,\r
+        "y": 1534,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbf4e316.c0ca2",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1036.5,\r
+        "y": 1645,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa009921.006868",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 991.5,\r
+        "y": 1752,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "267e668.24a139a",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 945.5,\r
+        "y": 1890,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b78e12a0.1a95c",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 865.5,\r
+        "y": 2009,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb8717d.98063e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 761.5,\r
+        "y": 2112,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2813c51b.3b520a",\r
+                "7ff69d68.ab21b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5da983c3.e1d2ec",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 761.5,\r
+        "y": 2271,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "6da5650d.a39a7c",\r
+                "b5b12f9b.59f5b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0f60bb.3262cf8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 721.5,\r
+        "y": 2375,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "2ff4f8f6.86a188",\r
+                "d438523d.2ad33"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc232935.3f9f08",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 665.5,\r
+        "y": 2491,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "ad946015.e587d",\r
+                "79f90431.6699bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c05d82.d12ef28",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 567.5,\r
+        "y": 2610,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "1275394e.236567",\r
+                "9879906b.d8a7a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ff69d68.ab21b4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 961.5,\r
+        "y": 2161,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5b12f9b.59f5b",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 968.5,\r
+        "y": 2319,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d438523d.2ad33",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 929.5,\r
+        "y": 2430,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "79f90431.6699bc",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 864.5,\r
+        "y": 2537,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9879906b.d8a7a",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 741.5,\r
+        "y": 2673,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9ec2030.df9cf",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 941.5,\r
+        "y": 2834,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd357b79.64c228",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 933.5,\r
+        "y": 2976,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9fb9dba.4badb",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 910.5,\r
+        "y": 3092,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d474ed3.c62d4",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 868.5,\r
+        "y": 3209,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "334c0710.add048",\r
+        "type": "update",\r
+        "name": "update available bandwdth'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 812.5,\r
+        "y": 3330,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e620b730.716308",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 746.5,\r
+        "y": 2799,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "302523c5.0f8d8c",\r
+                "f9ec2030.df9cf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "130aaf8d.b9dfc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 755.5,\r
+        "y": 2944,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "1f3050bc.f5300f",\r
+                "dd357b79.64c228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dae1085f.bbf3d8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 709.5,\r
+        "y": 3046,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "626c25fe.549ccc",\r
+                "f9fb9dba.4badb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "635d7956.0a1708",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 658.5,\r
+        "y": 3162,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "1a636bfd.78de84",\r
+                "4d474ed3.c62d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "567ca1e0.2a9b8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 558.5,\r
+        "y": 3289,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "c248fb50.5e9388",\r
+                "334c0710.add048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f6326386.3110b",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 675.5,\r
+        "y": 126,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "c8150f72.a6ddb",\r
+                "83b38caf.77a65"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18e66372.38fbfd",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 593.5,\r
+        "y": 713,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "bd2246c4.c9d9d8",\r
+                "ab02c8a.fb9e538"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27260d94.bdce02",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 367.5,\r
+        "y": 1359,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "ae596d23.ffcbe",\r
+                "f27c3bdd.40a7d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "968f3953.080178",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 296.5,\r
+        "y": 2005,\r
+        "z": "5d7ed3a9.6228ec",\r
+        "wires": [\r
+            [\r
+                "4964d358.105f0c",\r
+                "6440a99f.61bf28"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_delete-service-async.json b/platform-logic/optical-service/src/main/json/optical-service_delete-service-async.json
new file mode 100644 (file)
index 0000000..b63fca0
--- /dev/null
@@ -0,0 +1,310 @@
+[\r
+    {\r
+        "id": "8cc3da66.4f40d8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 207.77777099609375,\r
+        "y": 274.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "1e550516.1038fb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e550516.1038fb",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 394.77777099609375,\r
+        "y": 223.33332633972168,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "8bf17f5d.611f3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8bf17f5d.611f3",\r
+        "type": "method",\r
+        "name": "method",\r
+        "xml": "<method rpc='delete-service-async' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 248.77777099609375,\r
+        "y": 397.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "b44c3e44.1bd1b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b44c3e44.1bd1b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 421.77777099609375,\r
+        "y": 396.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "6d08e4a5.fe6bac",\r
+                "11020991.7c7d86",\r
+                "9db1a4b5.47b0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d08e4a5.fe6bac",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Delete Service Async\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 594.7777709960938,\r
+        "y": 307.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "11020991.7c7d86",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$response-code`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 595.7777709960938,\r
+        "y": 396.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "25e55ab4.b92da6",\r
+                "b0822e31.3769c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25e55ab4.b92da6",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='200'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 763.7777709960938,\r
+        "y": 339.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "4a5e5e93.4bb0a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "26f00225.07a6ee",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='aai-delete-service-handling' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1110.7777709960938,\r
+        "y": 340.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a5e5e93.4bb0a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 939.7777709960938,\r
+        "y": 339.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "26f00225.07a6ee",\r
+                "bfe4da6d.23bff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2afd11c.20c8",\r
+        "type": "update",\r
+        "name": "update AAI service 'CREATED'",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='service-instance'\n     key='customer.global-customer-id = $output.global-customer-id AND\n     service-subscription.service-type = $output.service-type AND\n     service-instance.service-instance-id = $output.service-instance-id' \n      local-only='false'>\n<parameter name='orchestration-status' value='CREATED' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1164.1110534667969,\r
+        "y": 459.2222137451172,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0822e31.3769c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 738.7777709960938,\r
+        "y": 410.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "7741584b.61db58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7741584b.61db58",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 901.7777709960938,\r
+        "y": 412.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "e2afd11c.20c8",\r
+                "80fddf5d.9a9f2",\r
+                "e0a008e3.38d8a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9db1a4b5.47b0b8",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/async-response-so.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$output.notification-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.so.username`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.so.password`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 596.7777709960938,\r
+        "y": 483.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "e497ea1c.ea2f88",\r
+                "d8b75d43.49a72"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e497ea1c.ea2f88",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 758.7777709960938,\r
+        "y": 476.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "18019049.2a70d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8b75d43.49a72",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 760.7777709960938,\r
+        "y": 546.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            [\r
+                "9194dca2.b34f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18019049.2a70d",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service delete\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 904.7777709960938,\r
+        "y": 476.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9194dca2.b34f",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service delete\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 900.7777709960938,\r
+        "y": 546.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfe4da6d.23bff8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='response-message' value='SUCCESS' />\n",\r
+        "comments": "",\r
+        "x": 1093.7777709960938,\r
+        "y": 276.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "80fddf5d.9a9f2",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='response-message' value='FAILURE' />\n",\r
+        "comments": "",\r
+        "x": 1103.7777709960938,\r
+        "y": 397.3333263397217,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e0a008e3.38d8a8",\r
+        "type": "save",\r
+        "name": "update DB 'CREATED'",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE REQUEST_DETAILS SET status = \"CREATED\" WHERE request_id = $request-id'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1127.7777404785156,\r
+        "y": 515.5554885864258,\r
+        "z": "cd7e2d57.0833e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_handle-async-notif.json b/platform-logic/optical-service/src/main/json/optical-service_handle-async-notif.json
new file mode 100644 (file)
index 0000000..a71017e
--- /dev/null
@@ -0,0 +1,286 @@
+[\r
+    {\r
+        "id": "6f3be679.102eb8",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 326.6666564941406,\r
+        "y": 225.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "af4b79a2.a55f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af4b79a2.a55f08",\r
+        "type": "method",\r
+        "name": "method",\r
+        "xml": "<method rpc='handle-async-notif' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 180.66665649414062,\r
+        "y": 399.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "86d5028d.c5258"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "86d5028d.c5258",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 368.6666564941406,\r
+        "y": 399.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "d24a17f7.d6a648",\r
+                "2faf78f7.30e068",\r
+                "ffe6e86b.e5f058"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d24a17f7.d6a648",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Reached async graph\"/>\n<parameter name=\"field2\" value=\"`$request-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 495.6666564941406,\r
+        "y": 281.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2faf78f7.30e068",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$ack-final-indicator`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 504.6666564941406,\r
+        "y": 469.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "7b60ff0d.907ce",\r
+                "1bcf360f.7e976a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b60ff0d.907ce",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='N'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 674.6666564941406,\r
+        "y": 392.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "b40d70d0.112e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a88f7bf8.d91d78",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Ack indicator in 'N'\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1025.6666564941406,\r
+        "y": 238.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b40d70d0.112e5",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 849.6666564941406,\r
+        "y": 239.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "a88f7bf8.d91d78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1bcf360f.7e976a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='Y'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 658.6666564941406,\r
+        "y": 533.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "d1db50fc.60a86"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1db50fc.60a86",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 812.6666564941406,\r
+        "y": 481.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "920fb578.d225d8",\r
+                "199a9ce9.ce53b3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffe6e86b.e5f058",\r
+        "type": "execute",\r
+        "name": "execute: read properties",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n<parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\n<parameter name='contextPrefix' value='prop' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614.6666564941406,\r
+        "y": 337.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "920fb578.d225d8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$output.status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 987.6666564941406,\r
+        "y": 527.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "13be4531.42948b",\r
+                "db9a79a3.a1b058"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "199a9ce9.ce53b3",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '\npfx='output'>\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n\n    \n    \n    \n    \n    \n    \n    \n     \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1003.6666564941406,\r
+        "y": 434.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "13be4531.42948b",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='CREATING'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1141.6666564941406,\r
+        "y": 476.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "f57cf67a.bbe098"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "db9a79a3.a1b058",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='DELETING'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1161.6666564941406,\r
+        "y": 561.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "2940e810.23a048"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f57cf67a.bbe098",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='create-service-async' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1300.6666564941406,\r
+        "y": 475.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2940e810.23a048",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='delete-service-async' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1307.6666564941406,\r
+        "y": 561.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "74552b51.5e6134",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 149.66665649414062,\r
+        "y": 275.5555419921875,\r
+        "z": "115af5b6.4cef8a",\r
+        "wires": [\r
+            [\r
+                "6f3be679.102eb8"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_service-create-tapi.json b/platform-logic/optical-service/src/main/json/optical-service_service-create-tapi.json
new file mode 100644 (file)
index 0000000..9a2ee7a
--- /dev/null
@@ -0,0 +1,1702 @@
+[\r
+    {\r
+        "id": "96e558c1.171928",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 174,\r
+        "y": 96,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "ba6338c5.40bd88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba6338c5.40bd88",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 187,\r
+        "y": 156,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "3857a42a.6b4cdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3857a42a.6b4cdc",\r
+        "type": "method",\r
+        "name": "method service-create-tapi",\r
+        "xml": "<method rpc='service-create-tapi' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 207,\r
+        "y": 236,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "bca1514.f1c7bb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bca1514.f1c7bb",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 416.5,\r
+        "y": 241,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "83c30d61.39881",\r
+                "28460541.766c1a",\r
+                "58f1dbe7.901a34",\r
+                "72b2db54.6e2944",\r
+                "b90929e.4a985d8",\r
+                "65a74a39.a4d774",\r
+                "cc0f04eb.f41858",\r
+                "c7ace3b2.11081",\r
+                "3ff768b5.f99338",\r
+                "2995b56c.890f5a",\r
+                "bf3d0d8f.af5f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83c30d61.39881",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside optical service create tapi\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 416,\r
+        "y": 39,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "28460541.766c1a",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $optical-service-create-input.payload.service-aend.port-id'\npfx='db-aend'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614.9999389648438,\r
+        "y": 90.99998474121094,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "40e83861.7ed4d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58f1dbe7.901a34",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $optical-service-create-input.payload.service-zend.port-id'\npfx='db-zend'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 635.9999389648438,\r
+        "y": 155.99996948242188,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "428896b5.e069b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "40e83861.7ed4d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 774.9999389648438,\r
+        "y": 92.99998474121094,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "eccba7dd.6944a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "428896b5.e069b8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 784.9999389648438,\r
+        "y": 153.99996948242188,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "37897f34.5ca9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eccba7dd.6944a8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-node-uuid' value='`$db-aend.pnf-name`' />\n<parameter name='aend-pnf-name' value='`$db-aend.pnf-id`' />\n<parameter name='aend-cep-list' value='`$db-aend.connection-point`' />\n<parameter name='aend-nep' value='`$db-aend.interface-name`' />\n<parameter name='aend-rate' value='`$db-aend.rate`' />\n",\r
+        "comments": "",\r
+        "x": 940.9999389648438,\r
+        "y": 93.99996948242188,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "37897f34.5ca9",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-node-uuid' value='`$db-zend.pnf-name`' />\n<parameter name='zend-pnf-name' value='`$db-zend.pnf-id`' />\n<parameter name='zend-cep-list' value='`$db-zend.connection-point`' />\n<parameter name='zend-nep' value='`$db-zend.interface-name`' />\n<parameter name='zend-rate' value='`$db-zend.rate`' />\n",\r
+        "comments": "",\r
+        "x": 934,\r
+        "y": 153,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72b2db54.6e2944",\r
+        "type": "execute",\r
+        "name": "execute: read properties",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n<parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\n<parameter name='contextPrefix' value='prop' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 604,\r
+        "y": 45,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b90929e.4a985d8",\r
+        "type": "get-resource",\r
+        "name": "find if aend is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $aend-node-uuid AND\n     p-interface.interface-name = $aend-nep\"\npfx='aend'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 700,\r
+        "y": 237,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "65a74a39.a4d774",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$aend.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 615,\r
+        "y": 333,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "4a9b044a.0f3ccc",\r
+                "ea6d56a1.b032a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a9b044a.0f3ccc",\r
+        "type": "outcome",\r
+        "name": "UNI",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 740,\r
+        "y": 282,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c9780ca0.f5f71"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b0b12c9.238b4c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-cep' value='`$aend-cep-list`' />\n<parameter name='aend-new' value='' />\n<parameter name='aend-new-rate' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1115,\r
+        "y": 131,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8b8d35a4.ce05f8",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$aend-cep-list`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1102,\r
+        "y": 373,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c9780ca0.f5f71",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 878,\r
+        "y": 281,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "4b0b12c9.238b4c",\r
+                "72c16e75.1a562",\r
+                "bd108f1e.ab488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ea274d9.8036ac",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 898,\r
+        "y": 396,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "8b8d35a4.ce05f8",\r
+                "e25b0e67.09bb4",\r
+                "a1b81fea.edbde",\r
+                "514a609b.d74c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3109f9ae.76da66",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.cep.details.url + $param-prefix[$idx]`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"aend-cep-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1229.1111221313477,\r
+        "y": 457.22221660614014,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "11b6c81d.28de98",\r
+                "599fbaf2.e79674"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11b6c81d.28de98",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1346.77779006958,\r
+        "y": 411.0000057220459,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "d3f94b37.cc4268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "599fbaf2.e79674",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1356.2221794128418,\r
+        "y": 480.7777805328369,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "14aab0b3.9d34ff"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3f94b37.cc4268",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get Aend cep details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1504,\r
+        "y": 411,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7102ebf7.57bb74",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Sucessfully retrieved aend cep\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1643,\r
+        "y": 433,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e25b0e67.09bb4",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idx' start='0' end='`$param-prefix_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1090,\r
+        "y": 422,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "46da2f38.8c645"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14aab0b3.9d34ff",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1494,\r
+        "y": 483,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7102ebf7.57bb74",\r
+                "4004dd00.d10474"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d11a7c1c.7e732",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2100.5552864074707,\r
+        "y": 532.1110572814941,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a50c2dd5.e9535",\r
+        "type": "set",\r
+        "name": "set aend-local-id",\r
+        "xml": "<set>\n<parameter name='aend-local-id' value=\"`$aend-local-id + '/OTN/' + $aend-pnf-name + '/' + $aend-cep-response.sip[0].name[2].value + ':' + $aend-cep-response.sip[0].name[1].value`\" />\n<parameter name='aend-cep' value='`$param-prefix[$idx]`'/>\n\n\n",\r
+        "comments": "",\r
+        "x": 2128.3332290649414,\r
+        "y": 461.1111087799072,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c05f290.3530ac",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1922,\r
+        "y": 498,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "a50c2dd5.e9535",\r
+                "d11a7c1c.7e732"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46da2f38.8c645",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1099,\r
+        "y": 483,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "3109f9ae.76da66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1b81fea.edbde",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value='' />\n<parameter name='aend-local-id' value='' />\n\n",\r
+        "comments": "",\r
+        "x": 1066,\r
+        "y": 326,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cc0f04eb.f41858",\r
+        "type": "get-resource",\r
+        "name": "find if zend is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $zend-node-uuid AND\n     p-interface.interface-name = $zend-nep\"\npfx='zend'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 719,\r
+        "y": 779,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7ace3b2.11081",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$zend.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 488,\r
+        "y": 1128,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c85fd988.301698",\r
+                "9efb19c3.6da618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c85fd988.301698",\r
+        "type": "outcome",\r
+        "name": "UNI",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614,\r
+        "y": 1048,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "b4f379c1.c24888"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c3f18e8.1c0b18",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-cep' value='`$zend-cep-list`' />\n<parameter name='zend-new' value='' />\n<parameter name='zend-new-rate' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1035,\r
+        "y": 769,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3e6ef851.b14d38",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$zend-cep-list`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix1\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 986,\r
+        "y": 1188,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4f379c1.c24888",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 894,\r
+        "y": 827,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7c3f18e8.1c0b18",\r
+                "f950d837.cb97f8",\r
+                "ccff2354.5c8d6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ae39741.d1c3c8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 776,\r
+        "y": 1245,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "3e6ef851.b14d38",\r
+                "f903e0d6.863cf",\r
+                "9bced74d.d072a8",\r
+                "943fe233.c96d1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f903e0d6.863cf",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value='' />\n<parameter name='zend-local-id' value='' />\n",\r
+        "comments": "",\r
+        "x": 987,\r
+        "y": 1136,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ea6d56a1.b032a8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 752,\r
+        "y": 398,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "2ea274d9.8036ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9efb19c3.6da618",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 610,\r
+        "y": 1243,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "2ae39741.d1c3c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ff768b5.f99338",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/optical-service-create-tapi.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$controller-ip + '/cxf/tapi/v2/connectivities/tapi-services'`\"/>\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"tapi-service-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 227.00006103515625,\r
+        "y": 1569,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "f2fbbd03.f2906",\r
+                "bebd84e7.a3b248"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2fbbd03.f2906",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 368.00006103515625,\r
+        "y": 1517,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "dcee484.0427eb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bebd84e7.a3b248",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 382.00006103515625,\r
+        "y": 1631,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "87a25e6a.1b2d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dcee484.0427eb8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 533.0000610351562,\r
+        "y": 1516,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "58ea97a5.b3e618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "87a25e6a.1b2d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 558.0000610351562,\r
+        "y": 1631,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "df77f71.8f24908",\r
+                "e14a80e1.1f5b7",\r
+                "9510207c.71682",\r
+                "6da24e58.717bb",\r
+                "71928460.ed14cc",\r
+                "5a15ce33.45154"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58ea97a5.b3e618",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Service creation failed' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
+        "comments": "",\r
+        "x": 725.0000610351562,\r
+        "y": 1517,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "df77f71.8f24908",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Service created successfully' />\n<parameter name='ack-final-indicator' value=\"Y\" />\n",\r
+        "comments": "",\r
+        "x": 734.5556030273438,\r
+        "y": 1874.4443359375,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4a0bc718.a962f8",\r
+        "type": "call",\r
+        "name": "call",\r
+        "xml": "<call module='optical-service' rpc='success-aai-update-tapi' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1271,\r
+        "y": 2002,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2995b56c.890f5a",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='service-name' value=\"`$optical-service-create-input.payload.service-name`\" />\n<parameter name='svc-action' value=\"CREATE\" />\n",\r
+        "comments": "",\r
+        "x": 327,\r
+        "y": 1371,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bf3d0d8f.af5f6",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A end local-id\"/>\n<parameter name=\"field2\" value=\"`$aend-local-id`\"/>\n<parameter name=\"field3\" value=\"Z end local-id\"/>\n<parameter name=\"field4\" value=\"`$zend-local-id`\"/>\n<parameter name=\"field5\" value=\"Service name\"/>\n<parameter name=\"field6\" value=\"`$service-name`\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 291,\r
+        "y": 1454,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f662c6.88da9d",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idl' start='0' end='`$param-prefix1_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1258,\r
+        "y": 1490,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "b907a417.722e98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba640497.6998e8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new + $param-prefix1[$idl]`\" />\n",\r
+        "comments": "",\r
+        "x": 1710,\r
+        "y": 1421,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b907a417.722e98",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$idl`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1393,\r
+        "y": 1491,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "91e17725.73caf8",\r
+                "c2c37dd4.88b1e",\r
+                "84a33271.66a7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "91e17725.73caf8",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='`$param-prefix1_length - 1`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1573,\r
+        "y": 1423,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "ba640497.6998e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2c37dd4.88b1e",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1580,\r
+        "y": 1498,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7e15b45a.f1185c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e15b45a.f1185c",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new + $param-prefix1[$idl] + ','`\" />\n",\r
+        "comments": "",\r
+        "x": 1736,\r
+        "y": 1500,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "84a33271.66a7e",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='`$idk`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1564,\r
+        "y": 1558,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "2fb07baa.dd5174"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2fb07baa.dd5174",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value='`$zend-new`' />\n",\r
+        "comments": "",\r
+        "x": 1741,\r
+        "y": 1556,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9510207c.71682",\r
+        "type": "save",\r
+        "name": "update pinterface cep DB Zend",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 857.2222900390625,\r
+        "y": 1697.666748046875,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e14a80e1.1f5b7",\r
+        "type": "save",\r
+        "name": "update pinterface cep DB Aend",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 875,\r
+        "y": 1631,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "72c16e75.1a562",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Aend uni\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1118,\r
+        "y": 195,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f950d837.cb97f8",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Zend uni\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1054,\r
+        "y": 816,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6da24e58.717bb",\r
+        "type": "save",\r
+        "name": "save service db",\r
+        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\" key=\"INSERT INTO REQUEST_DETAILS (request_id, controller_id, status, service_rate, service_instance_id, service_type, global_customer_id, notification_url) VALUES ( $optical-service-create-input.request-id , $controller-id , 'CREATED' , $optical-service-create-input.payload.service-rate ,  $optical-service-create-input.service-id , $optical-service-create-input.service-type , $optical-service-create-input.global-customer-id , null );\"> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 877,\r
+        "y": 1573,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c27a69f2.0ddb38",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1793,\r
+        "y": 466,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7c05f290.3530ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b435c8d.3fd214",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1822.222116470337,\r
+        "y": 593.3333568572998,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "d092daa9.9a37d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d092daa9.9a37d8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='No service interface points could be found for A end ' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
+        "comments": "",\r
+        "x": 1966.6666259765625,\r
+        "y": 593.3333129882812,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "71928460.ed14cc",\r
+        "type": "save",\r
+        "name": "save service aai",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'  \n     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id' 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/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-aend.port-id `\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$aend-node-uuid`\" /> \n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-zend.port-id `\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$zend-node-uuid`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 765.9999389648438,\r
+        "y": 1818.111083984375,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a15ce33.45154",\r
+        "type": "save",\r
+        "name": "save",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'  \n     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id' >\n<parameter name='service-instance-id' value='`$optical-service-create-input.service-id`' />\n<parameter name='service-instance-name' value='`$optical-service-create-input.payload.service-name`' />\n<parameter name='service-type' value='Domain-Service' />\n<parameter name='orchestration-status' value='CREATED' />\n<parameter name='service-rate' value='`$optical-service-create-input.payload.service-rate`' />\n<parameter name='service-layer' value='ODU' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 758.9999389648438,\r
+        "y": 1758,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd108f1e.ab488",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.cep.details.url + $aend-cep`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"aend-cep-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1116,\r
+        "y": 256,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "6b2a855d.23024c",\r
+                "f3b11a4b.2344f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b2a855d.23024c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1274,\r
+        "y": 216,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "eef404ec.f0bb08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f3b11a4b.2344f8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1283.4443893432617,\r
+        "y": 285.777774810791,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "d15a3398.6ced1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eef404ec.f0bb08",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get Aend cep details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1431.22220993042,\r
+        "y": 215.9999942779541,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d15a3398.6ced1",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1449.22216796875,\r
+        "y": 284,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "afd9ff21.3fd56"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "afd9ff21.3fd56",\r
+        "type": "set",\r
+        "name": "set aend-local-id",\r
+        "xml": "<set>\n<parameter name='aend-local-id' value=\"`'/OTN/' + $aend-pnf-name + '/' + $aend-cep-response.sip[0].name[2].value + ':' + $aend-cep-response.sip[0].name[1].value`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 1643,\r
+        "y": 284,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b74dbdb.822994",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.cep.details.url + $param-prefix1[$idk]`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"zend-cep-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1341,\r
+        "y": 1242,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "e8c33d42.33806",\r
+                "d05bc068.08527"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8c33d42.33806",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1462,\r
+        "y": 1203,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "431138f7.d0a218"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d05bc068.08527",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1480,\r
+        "y": 1297,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "f244762f.d3c018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "431138f7.d0a218",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get zend cep details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1610,\r
+        "y": 1200,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e69d1da.c8582",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Sucessfully retrieved zend cep\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1779,\r
+        "y": 1250,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9bced74d.d072a8",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idk' start='0' end='`$param-prefix1_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 987,\r
+        "y": 1243,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "1b2a920e.3e410e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f244762f.d3c018",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1635,\r
+        "y": 1300,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7e69d1da.c8582",\r
+                "efc25f0c.a1d2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "efc25f0c.a1d2c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$zend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1789,\r
+        "y": 1314,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c32606e1.58b168",\r
+                "4ea93db7.c01e74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b2a920e.3e410e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1139,\r
+        "y": 1245,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "b74dbdb.822994"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a62b46a5.e1b858",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2177,\r
+        "y": 1325,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e5a3a6b1.5eb5b8",\r
+        "type": "set",\r
+        "name": "set zend-local-id",\r
+        "xml": "<set>\n<parameter name='zend-local-id' value=\"`$zend-local-id + '/OTN/' + $zend-pnf-name + '/' + $zend-cep-response.sip[0].name[2].value + ':' + $zend-cep-response.sip[0].name[1].value`\" />\n<parameter name='zend-cep' value='`$param-prefix1[$idk]`'/>\n\n\n\n",\r
+        "comments": "",\r
+        "x": 2210,\r
+        "y": 1215,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5608122b.ab9f6c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2059,\r
+        "y": 1271,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "e5a3a6b1.5eb5b8",\r
+                "a62b46a5.e1b858"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c32606e1.58b168",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1927.9998779296875,\r
+        "y": 1275.6666259765625,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "5608122b.ab9f6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ea93db7.c01e74",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1927.8887939453125,\r
+        "y": 1380.1109619140625,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "e720f2d5.77fdb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e720f2d5.77fdb",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='No service interface points could be found for Z end ' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
+        "comments": "",\r
+        "x": 2107.22216796875,\r
+        "y": 1383.111083984375,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "943fe233.c96d1",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$param-prefix1_length == 1`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 941,\r
+        "y": 1395,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7c8d1f90.d20f8",\r
+                "59bf8efe.e5d3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c8d1f90.d20f8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1081,\r
+        "y": 1349,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "5a2d4b65.e557b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a2d4b65.e557b4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new`\" />\n",\r
+        "comments": "",\r
+        "x": 1216,\r
+        "y": 1349,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "59bf8efe.e5d3",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1083,\r
+        "y": 1489,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "8f662c6.88da9d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4004dd00.d10474",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$aend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1652,\r
+        "y": 501,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c27a69f2.0ddb38",\r
+                "7b435c8d.3fd214"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "514a609b.d74c",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$param-prefix_length == 1`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1071,\r
+        "y": 550,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "191fbb7.2a4b845",\r
+                "1cd1ef71.14acd1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "191fbb7.2a4b845",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1225,\r
+        "y": 551,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "a558f9eb.613c58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a558f9eb.613c58",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-new`\" />\n",\r
+        "comments": "",\r
+        "x": 1387,\r
+        "y": 551,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1cd1ef71.14acd1",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1229,\r
+        "y": 602,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "93a39454.c21878"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93a39454.c21878",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idy' start='0' end='`$param-prefix_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1353,\r
+        "y": 626,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "6e31bfde.e9a2b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12b9813c.84c17f",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-new + $param-prefix[$idy]`\" />\n",\r
+        "comments": "",\r
+        "x": 1803,\r
+        "y": 642,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6e31bfde.e9a2b",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$idy`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1518,\r
+        "y": 691,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "48d2ce69.6ccad",\r
+                "735daaac.0a3344",\r
+                "2e826606.462a6a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "48d2ce69.6ccad",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='`$param-prefix_length - 1`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1660,\r
+        "y": 642,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "12b9813c.84c17f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "735daaac.0a3344",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1690,\r
+        "y": 716,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "5f658cca.768614"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f658cca.768614",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-new + $param-prefix[$idy] + ','`\" />\n",\r
+        "comments": "",\r
+        "x": 1807,\r
+        "y": 726,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e826606.462a6a",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value='`$idx`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1669,\r
+        "y": 797,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "4869b073.d45ad"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4869b073.d45ad",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value='`$aend-new`' />\n",\r
+        "comments": "",\r
+        "x": 1807,\r
+        "y": 793,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ccff2354.5c8d6",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.cep.details.url + $zend-cep`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"zend-cep-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1036,\r
+        "y": 902,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "f30e06ef.3ea158",\r
+                "7c8fb487.808e3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f30e06ef.3ea158",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1196,\r
+        "y": 861,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "7aa077ea.c86438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c8fb487.808e3c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1205.4443893432617,\r
+        "y": 930.777774810791,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "a6409b41.3875a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7aa077ea.c86438",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to get Aend cep details\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1353.22220993042,\r
+        "y": 860.9999942779541,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6409b41.3875a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1371.22216796875,\r
+        "y": 929,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": [\r
+            [\r
+                "c469b431.4e03c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c469b431.4e03c8",\r
+        "type": "set",\r
+        "name": "set zend-local-id",\r
+        "xml": "<set>\n<parameter name='zend-local-id' value=\"`'/OTN/' + $zend-pnf-name + '/' + $zend-cep-response.sip[0].name[2].value + ':' + $zend-cep-response.sip[0].name[1].value`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 1565,\r
+        "y": 929,\r
+        "z": "4efb9c4a.945e04",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_service-delete-tapi.json b/platform-logic/optical-service/src/main/json/optical-service_service-delete-tapi.json
new file mode 100644 (file)
index 0000000..cef6bc4
--- /dev/null
@@ -0,0 +1,674 @@
+[\r
+    {\r
+        "id": "22cb0f8b.7a936",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 276,\r
+        "y": 233,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "899fe88f.8b0f18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "899fe88f.8b0f18",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 289,\r
+        "y": 293,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "8c11d44e.febba8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c11d44e.febba8",\r
+        "type": "method",\r
+        "name": "method service-delete-tapi",\r
+        "xml": "<method rpc='service-delete-tapi' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 309,\r
+        "y": 373,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "4251fc90.7d3354"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4251fc90.7d3354",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 556.5,\r
+        "y": 373,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "fa22a868.cbac88",\r
+                "61c8204a.2cec1",\r
+                "613af82c.220508"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa22a868.cbac88",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside optical service delete tapi\"/>\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 653,\r
+        "y": 196,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "61c8204a.2cec1",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='request-id' value='`$optical-service-delete-input.request-id`' />\n",\r
+        "comments": "",\r
+        "x": 729,\r
+        "y": 245,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "613af82c.220508",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.get.services.url + $optical-service-delete-input.payload.service-name`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"services-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 759.9999351501465,\r
+        "y": 378.8888759613037,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "6682edb5.3e9d24",\r
+                "894f9664.c6abc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddeadbca.081d98",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-nep' value=\"`$services-response.service[0].end-point[0].connection-end-point[0].node-edge-point-uuid`\" />\n<parameter name='zend-nep' value=\"`$services-response.service[0].end-point[1].connection-end-point[0].node-edge-point-uuid`\" />\n<parameter name='aend-cep' value=\"`$services-response.service[0].end-point[0].connection-end-point[0].connection-end-point-uuid`\" />\n<parameter name='zend-cep' value=\"`$services-response.service[0].end-point[1].connection-end-point[0].connection-end-point-uuid`\" />\n",\r
+        "comments": "",\r
+        "x": 1492.2221755981445,\r
+        "y": 305.555513381958,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6682edb5.3e9d24",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 963.3332595825195,\r
+        "y": 353.33330249786377,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "894f9664.c6abc8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 939.999885559082,\r
+        "y": 435.55552768707275,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "dafe166a.8b36d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dafe166a.8b36d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1135.5554733276367,\r
+        "y": 446.6666831970215,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "ddeadbca.081d98",\r
+                "2801b4f8.38386c",\r
+                "3cf51d10.896032",\r
+                "a44318ce.afad08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2801b4f8.38386c",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $aend-nep'\npfx='db-aend'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1545.5556449890137,\r
+        "y": 367.77777004241943,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cf51d10.896032",\r
+        "type": "get-resource",\r
+        "name": "get-resource",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $zend-nep'\npfx='db-zend'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1545.555549621582,\r
+        "y": 422.2222137451172,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "852e3fe3.e39dd",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value='`$aend-cep`' />\n",\r
+        "comments": "",\r
+        "x": 1931.221923828125,\r
+        "y": 647.22216796875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4644be9d.89b97",\r
+        "type": "get-resource",\r
+        "name": "find if aend is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $db-aend.pnf-name AND\n     p-interface.interface-name = $aend-nep\"\npfx='aend'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1719.1107177734375,\r
+        "y": 562.8888549804688,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a44318ce.afad08",\r
+        "type": "execute",\r
+        "name": "execute",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.delete.service.url + $optical-service-delete-input.payload.service-name`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/>  \n<parameter name=\"restapiPassword\" value=\"admin\"/>  \n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"tapi-service-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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\"/> ",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1283.3331146240234,\r
+        "y": 514.4444074630737,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "58946d75.cedfa4",\r
+                "e7cecf42.399a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58946d75.cedfa4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1252.3331146240234,\r
+        "y": 656.4444074630737,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "1e4a35c6.1c31ca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e4a35c6.1c31ca",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1406.5553512573242,\r
+        "y": 610.666627407074,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "4644be9d.89b97",\r
+                "652250d1.df0d6",\r
+                "29655b58.ca1ca4",\r
+                "aad55652.80ccf8",\r
+                "82da300b.4f57c",\r
+                "2082255.0c982da",\r
+                "9f9c7a46.ce0ff8",\r
+                "70a0ebe0.92bcd4",\r
+                "33fa91ea.5695ce",\r
+                "425e8f1f.07ad6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7cecf42.399a6",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1409.9998016357422,\r
+        "y": 498.88880443573,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "ea3eca27.8a59e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea3eca27.8a59e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1576.9998016357422,\r
+        "y": 497.88880443573,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "e7be8bd4.b55258"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7be8bd4.b55258",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Service Deletion failed' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
+        "comments": "",\r
+        "x": 1744.8886985778809,\r
+        "y": 496.66657543182373,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "652250d1.df0d6",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Service deleted successfully' />\n<parameter name='ack-final-indicator' value=\"Y\" />\n",\r
+        "comments": "",\r
+        "x": 1297.7775955200195,\r
+        "y": 1231.1110696792603,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "29655b58.ca1ca4",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$aend.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1641.1108856201172,\r
+        "y": 665.5554914474487,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "aea6fbc6.1505d8",\r
+                "2d663d56.1e55d2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aea6fbc6.1505d8",\r
+        "type": "outcome",\r
+        "name": "UNI",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1805.888671875,\r
+        "y": 647.22216796875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "852e3fe3.e39dd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d663d56.1e55d2",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1808.1108779907227,\r
+        "y": 720.5555419921875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "af008805.61eae8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aad55652.80ccf8",\r
+        "type": "save",\r
+        "name": "update pinterface cep DB Aend",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1671.1108856201172,\r
+        "y": 763.3332624435425,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "82da300b.4f57c",\r
+        "type": "get-resource",\r
+        "name": "find if zend is uni or nni or enni",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $db-zend.pnf-name AND\n     p-interface.interface-name = $zend-nep\"\npfx='zend'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1647.7772598266602,\r
+        "y": 846.6665992736816,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2082255.0c982da",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$zend.network-interface-type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1549.9998149871826,\r
+        "y": 915.55544090271,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "3a6cd376.4295ac",\r
+                "86c6217d.bed2a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a6cd376.4295ac",\r
+        "type": "outcome",\r
+        "name": "UNI",\r
+        "xml": "<outcome value='UNI'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1740.3330764770508,\r
+        "y": 903.2221584320068,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "b35b94b1.940ff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "86c6217d.bed2a",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1742.5553359985352,\r
+        "y": 970.5555419921875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "e1b5d596.201438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9f9c7a46.ce0ff8",\r
+        "type": "save",\r
+        "name": "update pinterface cep DB Zend",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'\nforce='true' pfx='save-result'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1571.1112060546875,\r
+        "y": 1009.9999141693115,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "74642edb.088ea",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-cep`\" />\n",\r
+        "comments": "",\r
+        "x": 2139.999885559082,\r
+        "y": 972.2221412658691,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b35b94b1.940ff8",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value='`$zend-cep`' />\n",\r
+        "comments": "",\r
+        "x": 1866.6664352416992,\r
+        "y": 902.2221622467041,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "33fa91ea.5695ce",\r
+        "type": "delete",\r
+        "name": "delete service instance AAI",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\nkey='customer.global-customer-id = $output.global-customer-id AND\nservice-subscription.service-type = $output.service-type AND\nservice-instance.service-instance-id = $output.service-instance-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1466.6664199829102,\r
+        "y": 1124.4443254470825,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "70a0ebe0.92bcd4",\r
+        "type": "get-resource",\r
+        "name": "get service db",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '\npfx='output'>\n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n    \n\n    \n    \n    \n    \n    \n    \n    \n     \n \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1487.7775344848633,\r
+        "y": 1067.7777080535889,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e1b5d596.201438",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$db-zend.connection-point`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1884.4444444444443,\r
+        "y": 973.3333333333333,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "1ff79f49.8fba61",\r
+                "54376f65.aa57"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1ff79f49.8fba61",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2012.2222061157227,\r
+        "y": 974.4444217681885,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "74642edb.088ea"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9bfc410.022418",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='zend-new' value=\"`$db-zend.connection-point + ',' + $zend-cep`\" />\n",\r
+        "comments": "",\r
+        "x": 2142.221981048584,\r
+        "y": 1038.8887939453125,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "54376f65.aa57",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2024.4444444444443,\r
+        "y": 1037.7777777777778,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "f9bfc410.022418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af008805.61eae8",\r
+        "type": "switchNode",\r
+        "name": "switch",\r
+        "xml": "<switch test='`$db-aend.connection-point`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1935.5554428100586,\r
+        "y": 723.3333148956299,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "fdc21e7c.da331",\r
+                "ede7f03e.32c01"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ca90d2f.d086e4",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-cep`\" />\n",\r
+        "comments": "",\r
+        "x": 2210,\r
+        "y": 712.22216796875,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fdc21e7c.da331",\r
+        "type": "outcome",\r
+        "name": "outcome",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2082.2223205566406,\r
+        "y": 714.4444484710693,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "6ca90d2f.d086e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f35c33d.adfbfd",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='aend-new' value=\"`$db-aend.connection-point + ',' + $aend-cep`\" />\n",\r
+        "comments": "",\r
+        "x": 2212.222095489502,\r
+        "y": 778.8888206481934,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ede7f03e.32c01",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2094.4445588853623,\r
+        "y": 777.7778044806587,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            [\r
+                "f35c33d.adfbfd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "425e8f1f.07ad6",\r
+        "type": "delete",\r
+        "name": "delete from db",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n    resource=\"SQL\"\n    key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1377.7776336669922,\r
+        "y": 1185.5554809570312,\r
+        "z": "ecded786.86d6f8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/json/optical-service_success-aai-update-tapi.json b/platform-logic/optical-service/src/main/json/optical-service_success-aai-update-tapi.json
new file mode 100644 (file)
index 0000000..497a75c
--- /dev/null
@@ -0,0 +1,156 @@
+[\r
+    {\r
+        "id": "257d2596.c5ecca",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 571,\r
+        "y": 662,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "5432b538.633ffc",\r
+                "7695aa94.c622d4",\r
+                "ebe3ff74.b36dd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cc69ab0.52e865",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 101.5,\r
+        "y": 597,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "d088abd2.9587b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d088abd2.9587b8",\r
+        "type": "service-logic",\r
+        "name": "optical-service ${project.version}",\r
+        "module": "optical-service",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "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='optical-service' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 249.5,\r
+        "y": 654,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "ddbd4624.086548"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddbd4624.086548",\r
+        "type": "method",\r
+        "name": "method success-aai-update-tapi",\r
+        "xml": "<method rpc='success-aai-update-tapi' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 439.5,\r
+        "y": 589,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "257d2596.c5ecca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5432b538.633ffc",\r
+        "type": "save",\r
+        "name": "save",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'  \n     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id' 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/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $aend-nep `\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$aend-node-uuid`\" /> \n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $zend-nep `\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$zend-node-uuid`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 729,\r
+        "y": 607,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7695aa94.c622d4",\r
+        "type": "get-resource",\r
+        "name": "Get service from AAI",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\nkey='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id'  \npfx='aai.service'      local-only='false'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 788,\r
+        "y": 661,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ebe3ff74.b36dd",\r
+        "type": "for",\r
+        "name": "for",\r
+        "xml": "<for index='idy' start='0' end='`$aai.service.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 700,\r
+        "y": 733,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "50909009.4a074"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50909009.4a074",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 847,\r
+        "y": 733,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            [\r
+                "65d0b7bd.e13a18",\r
+                "9f8f4fb.cc3cbb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65d0b7bd.e13a18",\r
+        "type": "set",\r
+        "name": "set",\r
+        "xml": "<set>\n<parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\n<parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\n\n",\r
+        "comments": "",\r
+        "x": 991,\r
+        "y": 637,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9f8f4fb.cc3cbb",\r
+        "type": "call",\r
+        "name": "call call-bandwidth-update-pinterface",\r
+        "xml": "<call module='optical-service' rpc='call-bandwidth-update-pinterface' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1127,\r
+        "y": 732,\r
+        "z": "2ef02d36.ca2f92",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file
index 026c2ea..1654685 100644 (file)
@@ -3,3 +3,20 @@ optical-service optical-service-create ${project.version} sync
 optical-service optical-service-create-sync-success ${project.version} sync
 optical-service service-create-msa ${project.version} sync
 optical-service optical-service-delete ${project.version} sync
+optical-service optical-service_aai-delete-service-handling ${project.version} sync
+optical-service optical-service_bandwidth-update ${project.version} sync
+optical-service optical-service_bandwidth-update-odu1 ${project.version} sync
+optical-service optical-service_bandwidth-update-odu2 ${project.version} sync
+optical-service optical-service_bandwidth-update-odu3 ${project.version} sync
+optical-service optical-service_bandwidth-update-odu4 ${project.version} sync
+optical-service optical-service_call-bandwidth-update-pinterface ${project.version} sync
+optical-service optical-service_create-service-async ${project.version} sync
+optical-service optical-service_delete-service-async ${project.version} sync
+optical-service optical-service_handle-async-notif ${project.version} sync
+optical-service optical-service_service-create-tapi ${project.version} sync
+optical-service optical-service_service-delete-tapi ${project.version} sync
+optical-service optical-service_success-aai-update-tapi ${project.version} sync
+optical-service optical-service_delete-bandwidth-update-odu1 ${project.version} sync
+optical-service optical-service_delete-bandwidth-update-odu2 ${project.version} sync
+optical-service optical-service_delete-bandwidth-update-odu3 ${project.version} sync
+optical-service optical-service_delete-bandwidth-update-odu4 ${project.version} sync
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_aai-delete-service-handling.xml b/platform-logic/optical-service/src/main/xml/optical-service_aai-delete-service-handling.xml
new file mode 100644 (file)
index 0000000..0f3e967
--- /dev/null
@@ -0,0 +1,69 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='aai-delete-service-handling' mode='sync'>\r
+        <block atomic='true'>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside Revert PInterface details"/>\r
+            </record>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="service-instance"\r
+ key='customer.global-customer-id = $output.global-customer-id AND\r
+     service-subscription.service-type = $output.service-type AND\r
+     service-instance.service-instance-id = $output.service-instance-id' \r
+pfx='aai.service'      local-only='false'></get-resource>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside Revert PInterface details"/>\r
+                <parameter name="field2" value="`$aai.service.orchestration-status`"/>\r
+                <parameter name="field3" value="`$aai.service.relationship-list.relationship_length`"/>\r
+            </record>\r
+            <for index='idx' start='0' end='`$aai.service.relationship-list.relationship_length`' >\r
+                <block atomic='true'>\r
+                    <set>\r
+                        <parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\r
+                        <parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\r
+                    </set>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Inside Revert PInterface details"/>\r
+                        <parameter name="field2" value="`$pnf-name`"/>\r
+                        <parameter name="field3" value="`$pinterface-name`"/>\r
+                    </record>\r
+                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name ' \r
+pfx='p.in.details'      local-only='false'></get-resource>\r
+                    <set>\r
+                        <parameter name='new-rate' value='`$p.in.details.speed-value`' />\r
+                    </set>\r
+                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='p-interface'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name '\r
+      local-only='false'>\r
+                        <parameter name='available-capacity' value='`$new-rate`' />\r
+                    </update>\r
+                    <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET rate = $new-rate WHERE interface_name = $pinterface-name '\r
+force='true' pfx='save-result'></save>\r
+                </block>\r
+            </for>\r
+            <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="service-instance"\r
+key='customer.global-customer-id = $output.global-customer-id AND\r
+service-subscription.service-type = $output.service-type AND\r
+service-instance.service-instance-id = $output.service-instance-id'></delete>\r
+            <delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\r
+    resource="SQL"\r
+    key="DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id"></delete>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu1.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu1.xml
new file mode 100644 (file)
index 0000000..5ea2571
--- /dev/null
@@ -0,0 +1,100 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update-odu1' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='mul' value='`$odu-number * 1.25`' />\r
+                                        <parameter name='sub' value='`$mul - 1.25`' />\r
+                                        <parameter name='new-odu-number' value='`$sub / 1.25`' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu2.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu2.xml
new file mode 100644 (file)
index 0000000..60ed0a4
--- /dev/null
@@ -0,0 +1,205 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update-odu2' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 - 2.5`' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu3.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu3.xml
new file mode 100644 (file)
index 0000000..b527056
--- /dev/null
@@ -0,0 +1,340 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update-odu3' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU3'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu4.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update-odu4.xml
new file mode 100644 (file)
index 0000000..1847f76
--- /dev/null
@@ -0,0 +1,509 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update-odu4' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 2.5 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 10 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 - 40 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU4'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU3'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU4'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update.xml b/platform-logic/optical-service/src/main/xml/optical-service_bandwidth-update.xml
new file mode 100644 (file)
index 0000000..d46ca2e
--- /dev/null
@@ -0,0 +1,90 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='bandwidth-update' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$pin.speed-value`'>\r
+                <outcome value='ODU0'>\r
+                    <block atomic="true">\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu0 calculation"/>\r
+                        </record>\r
+                        <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                            <outcome value='ODU0'>\r
+                                <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                                        </set>\r
+                                        <switch test='`$odu-name`'>\r
+                                            <outcome value='ODU0'>\r
+                                                <block>\r
+                                                    <set>\r
+                                                        <parameter name='new-odu-number' value='`0`' />\r
+                                                    </set>\r
+                                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                                    </update>\r
+                                                </block>\r
+                                            </outcome>\r
+                                        </switch>\r
+                                    </block>\r
+                                </for>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block atomic="true">\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu1 calculation"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update-odu1' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <block atomic="true">\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu2 calculation"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update-odu2' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\r
+                    <block atomic="true">\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu3 calculation"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update-odu3' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU4'>\r
+                    <block atomic="true">\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Inside bandwidth odu4 calculation"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update-odu4' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_call-bandwidth-update-pinterface.xml b/platform-logic/optical-service/src/main/xml/optical-service_call-bandwidth-update-pinterface.xml
new file mode 100644 (file)
index 0000000..1a39aa6
--- /dev/null
@@ -0,0 +1,47 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='call-bandwidth-update-pinterface' mode='sync'>\r
+        <block atomic="true">\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/test.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="`$div`"/>\r
+            </record>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND depth = 'all'"\r
+pfx='pin'      local-only='false'></get-resource>\r
+            <switch test='`$pin.network-interface-type`'>\r
+                <outcome value='Other'>\r
+                    <block atomic="true">\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Port is NNI"/>\r
+                        </record>\r
+                        <call module='optical-service' rpc='bandwidth-update' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='UNI'>\r
+                    <block atomic="true">\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Port is UNI"/>\r
+                        </record>\r
+                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name' \r
+      local-only='false'>\r
+                            <parameter name='available-capacity' value='0' />\r
+                        </update>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml b/platform-logic/optical-service/src/main/xml/optical-service_create-service-async.xml
new file mode 100644 (file)
index 0000000..db55f38
--- /dev/null
@@ -0,0 +1,72 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='create-service-async' mode='sync'>\r
+        <block atomic='true'>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside Create Service Async"/>\r
+            </record>\r
+            <switch test='`$response-code`'>\r
+                <outcome value='200'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='response-message' value='SUCCESS' />\r
+                        </set>\r
+                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='service-instance'\r
+     key='customer.global-customer-id = $output.global-customer-id AND\r
+     service-subscription.service-type = $output.service-type AND\r
+     service-instance.service-instance-id = $output.service-instance-id' \r
+      local-only='false'>\r
+                            <parameter name='orchestration-status' value='CREATED' />\r
+                        </update>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE REQUEST_DETAILS SET status = "CREATED" WHERE request_id = $request-id'\r
+force='true' pfx='save-result'></save>\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Finished updating service in AAI and DB to CREATED"/>\r
+                        </record>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='response-message' value='FAILURE' />\r
+                        </set>\r
+                        <call module='optical-service' rpc='aai-delete-service-handling' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.template.so.response.filename`" />\r
+                <parameter name="restapiUrl" value="`$output.notification-url`"/>\r
+                <parameter name="restapiUser" value="`$prop.so.username`" />\r
+                <parameter name="restapiPassword" value="`$prop.so.password`"/>\r
+                <parameter name="httpMethod" value="POST"/>\r
+                <parameter name="responsePrefix" value="so-response"/>\r
+                <parameter name='contentType' value='application/json' />\r
+                <parameter name='format' value='json' />\r
+                <outcome value='failure'>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Send to SO fails for service create"/>\r
+                    </record>\r
+                </outcome>\r
+                <outcome value='success'>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Send to SO Success for service create"/>\r
+                    </record>\r
+                </outcome>\r
+            </execute>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu1.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu1.xml
new file mode 100644 (file)
index 0000000..a3ca82b
--- /dev/null
@@ -0,0 +1,103 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='delete-bandwidth-update-odu1' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <set>\r
+                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='mul' value='`$odu-number * 1.25`' />\r
+                                        <parameter name='add' value='`$new-rate + $mul + 1.25`' />\r
+                                        <parameter name='new-odu-number' value='`$add / 1.25`' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='1' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu2.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu2.xml
new file mode 100644 (file)
index 0000000..0841388
--- /dev/null
@@ -0,0 +1,205 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='delete-bandwidth-update-odu2' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='0' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.5 + 2.5`' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='0' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='1' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu3.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu3.xml
new file mode 100644 (file)
index 0000000..6ae2065
--- /dev/null
@@ -0,0 +1,340 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='delete-bandwidth-update-odu3' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='32' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='16' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='4' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU3'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='1' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $aend-pnf-name AND\r
+     p-interface.interface-name = $aend-nep AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu4.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-bandwidth-update-odu4.xml
new file mode 100644 (file)
index 0000000..d73a89d
--- /dev/null
@@ -0,0 +1,509 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='delete-bandwidth-update-odu4' mode='sync'>\r
+        <block atomic="true">\r
+            <switch test='`$optical-service-create-input.payload.service-rate`'>\r
+                <outcome value='ODU0'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 1.25 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 100`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU1'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 2.5 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 100`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU2'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 10 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 100`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU3'>\r
+                    <block>\r
+                        <set>\r
+                            <parameter name='new-rate' value='' />\r
+                        </set>\r
+                        <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                            <set>\r
+                                <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                                <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                            </set>\r
+                            <switch test='`$odu-name`'>\r
+                                <outcome value='ODU0'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-rate' value='`$new-rate + $odu-number * 1.25 + 40 `' />\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 1.25`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU1'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 2.5`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU2'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 10`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU3'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 40`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                                <outcome value='ODU4'>\r
+                                    <block>\r
+                                        <set>\r
+                                            <parameter name='new-odu-number' value='`$new-rate / 100`' />\r
+                                        </set>\r
+                                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                            <parameter name='number' value='`$new-odu-number`' />\r
+                                        </update>\r
+                                    </block>\r
+                                </outcome>\r
+                            </switch>\r
+                        </for>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='ODU4'>\r
+                    <for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\r
+                        <set>\r
+                            <parameter name='odu-name' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\r
+                            <parameter name='odu-number' value='`$pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\r
+                        </set>\r
+                        <switch test='`$odu-name`'>\r
+                            <outcome value='ODU0'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='80' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU1'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='40' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU2'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='10' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU3'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='2' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='ODU4'>\r
+                                <block>\r
+                                    <set>\r
+                                        <parameter name='new-odu-number' value='1' />\r
+                                    </set>\r
+                                    <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='available-bandwidth'\r
+     key='pnf.pnf-name = $pnf-name AND\r
+     p-interface.interface-name = $pinterface-name AND\r
+     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\r
+     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \r
+      local-only='false'>\r
+                                        <parameter name='number' value='`$new-odu-number`' />\r
+                                    </update>\r
+                                </block>\r
+                            </outcome>\r
+                        </switch>\r
+                    </for>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_delete-service-async.xml b/platform-logic/optical-service/src/main/xml/optical-service_delete-service-async.xml
new file mode 100644 (file)
index 0000000..f00f00c
--- /dev/null
@@ -0,0 +1,67 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='delete-service-async' mode='sync'>\r
+        <block atomic='true'>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside Delete Service Async"/>\r
+            </record>\r
+            <switch test='`$response-code`'>\r
+                <outcome value='200'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='response-message' value='SUCCESS' />\r
+                        </set>\r
+                        <call module='optical-service' rpc='aai-delete-service-handling' mode='sync' ></call>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='response-message' value='FAILURE' />\r
+                        </set>\r
+                        <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \r
+force='true'\r
+resource='service-instance'\r
+     key='customer.global-customer-id = $output.global-customer-id AND\r
+     service-subscription.service-type = $output.service-type AND\r
+     service-instance.service-instance-id = $output.service-instance-id' \r
+      local-only='false'>\r
+                            <parameter name='orchestration-status' value='CREATED' />\r
+                        </update>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE REQUEST_DETAILS SET status = "CREATED" WHERE request_id = $request-id'\r
+force='true' pfx='save-result'></save>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/async-response-so.json'`" />\r
+                <parameter name="restapiUrl" value="`$output.notification-url`"/>\r
+                <parameter name="restapiUser" value="`$prop.so.username`" />\r
+                <parameter name="restapiPassword" value="`$prop.so.password`"/>\r
+                <parameter name="httpMethod" value="POST"/>\r
+                <parameter name="responsePrefix" value="so-response"/>\r
+                <parameter name='contentType' value='application/json' />\r
+                <parameter name='format' value='json' />\r
+                <outcome value='failure'>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Send to SO fails for service delete"/>\r
+                    </record>\r
+                </outcome>\r
+                <outcome value='success'>\r
+                    <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                        <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                        <parameter name="level" value="info" />\r
+                        <parameter name="field1" value="Send to SO fails for service delete"/>\r
+                    </record>\r
+                </outcome>\r
+            </execute>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_handle-async-notif.xml b/platform-logic/optical-service/src/main/xml/optical-service_handle-async-notif.xml
new file mode 100644 (file)
index 0000000..bcae1f4
--- /dev/null
@@ -0,0 +1,44 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='handle-async-notif' mode='sync'>\r
+        <block atomic='true'>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Reached async graph"/>\r
+                <parameter name="field2" value="`$request-id`"/>\r
+            </record>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\r
+                <parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\r
+                <parameter name='contextPrefix' value='prop' />\r
+            </execute>\r
+            <switch test='`$ack-final-indicator`'>\r
+                <outcome value='N'>\r
+                    <block atomic='true'>\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/async-notif.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Ack indicator in 'N'"/>\r
+                        </record>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Y'>\r
+                    <block atomic='true'>\r
+                        <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \r
+key='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '\r
+pfx='output'></get-resource>\r
+                        <switch test='`$output.status`'>\r
+                            <outcome value='CREATING'>\r
+                                <call module='optical-service' rpc='create-service-async' mode='sync' ></call>\r
+                            </outcome>\r
+                            <outcome value='DELETING'>\r
+                                <call module='optical-service' rpc='delete-service-async' mode='sync' ></call>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_service-create-tapi.xml b/platform-logic/optical-service/src/main/xml/optical-service_service-create-tapi.xml
new file mode 100644 (file)
index 0000000..f35446d
--- /dev/null
@@ -0,0 +1,406 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='service-create-tapi' mode='sync'>\r
+        <block atomic="true">\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside optical service create tapi"/>\r
+            </record>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\r
+                <parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\r
+                <parameter name='contextPrefix' value='prop' />\r
+            </execute>\r
+            <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
+key='SELECT *\r
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\r
+WHERE interface_name = $optical-service-create-input.payload.service-aend.port-id'\r
+pfx='db-aend'>\r
+                <outcome value='success'>\r
+                    <set>\r
+                        <parameter name='aend-node-uuid' value='`$db-aend.pnf-name`' />\r
+                        <parameter name='aend-pnf-name' value='`$db-aend.pnf-id`' />\r
+                        <parameter name='aend-cep-list' value='`$db-aend.connection-point`' />\r
+                        <parameter name='aend-nep' value='`$db-aend.interface-name`' />\r
+                        <parameter name='aend-rate' value='`$db-aend.rate`' />\r
+                    </set>\r
+                </outcome>\r
+            </get-resource>\r
+            <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
+key='SELECT *\r
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\r
+WHERE interface_name = $optical-service-create-input.payload.service-zend.port-id'\r
+pfx='db-zend'>\r
+                <outcome value='success'>\r
+                    <set>\r
+                        <parameter name='zend-node-uuid' value='`$db-zend.pnf-name`' />\r
+                        <parameter name='zend-pnf-name' value='`$db-zend.pnf-id`' />\r
+                        <parameter name='zend-cep-list' value='`$db-zend.connection-point`' />\r
+                        <parameter name='zend-nep' value='`$db-zend.interface-name`' />\r
+                        <parameter name='zend-rate' value='`$db-zend.rate`' />\r
+                    </set>\r
+                </outcome>\r
+            </get-resource>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $aend-node-uuid AND\r
+     p-interface.interface-name = $aend-nep"\r
+pfx='aend'      local-only='false'></get-resource>\r
+            <switch test='`$aend.network-interface-type`'>\r
+                <outcome value='UNI'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='aend-cep' value='`$aend-cep-list`' />\r
+                            <parameter name='aend-new' value='' />\r
+                            <parameter name='aend-new-rate' value='0' />\r
+                        </set>\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Aend uni"/>\r
+                        </record>\r
+                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                            <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $aend-cep`" />\r
+                            <parameter name="restapiUser" value="admin"/>\r
+                            <parameter name="restapiPassword" value="admin"/>\r
+                            <parameter name="httpMethod" value="GET"/>\r
+                            <parameter name="responsePrefix" value="aend-cep-response"/>\r
+                            <parameter name='contentType' value='application/json' />\r
+                            <parameter name='format' value='json' />\r
+                            <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>\r
+                            <parameter name="trustStorePassword" value="adminadmin"/>\r
+                            <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                            <parameter name="keyStorePassword" value="adminadmin"/>\r
+                            <outcome value='failure'>\r
+                                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                    <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                    <parameter name="level" value="info" />\r
+                                    <parameter name="field1" value="Failed to get Aend cep details"/>\r
+                                </record>\r
+                            </outcome>\r
+                            <outcome value='success'>\r
+                                <block atomic="true">\r
+                                    <set>\r
+                                        <parameter name='aend-local-id' value="`'/OTN/' + $aend-pnf-name + '/' + $aend-cep-response.sip[0].name[2].value + ':' + $aend-cep-response.sip[0].name[1].value`" />\r
+                                    </set>\r
+                                </block>\r
+                            </outcome>\r
+                        </execute>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='aend-new' value='' />\r
+                            <parameter name='aend-local-id' value='' />\r
+                        </set>\r
+                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\r
+                            <parameter name="original_string" value='`$aend-cep-list`'/>\r
+                            <parameter name="regex" value=","/>\r
+                            <parameter name="ctx_memory_result_key" value="param-prefix"/>\r
+                        </execute>\r
+                        <for index='idx' start='0' end='`$param-prefix_length`' >\r
+                            <block atomic="true">\r
+                                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                    <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $param-prefix[$idx]`" />\r
+                                    <parameter name="restapiUser" value="admin"/>\r
+                                    <parameter name="restapiPassword" value="admin"/>\r
+                                    <parameter name="httpMethod" value="GET"/>\r
+                                    <parameter name="responsePrefix" value="aend-cep-response"/>\r
+                                    <parameter name='contentType' value='application/json' />\r
+                                    <parameter name='format' value='json' />\r
+                                    <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>\r
+                                    <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                    <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                    <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                    <outcome value='failure'>\r
+                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                            <parameter name="level" value="info" />\r
+                                            <parameter name="field1" value="Failed to get Aend cep details"/>\r
+                                        </record>\r
+                                    </outcome>\r
+                                    <outcome value='success'>\r
+                                        <block atomic="true">\r
+                                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                                <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                                <parameter name="level" value="info" />\r
+                                                <parameter name="field1" value="Sucessfully retrieved aend cep"/>\r
+                                            </record>\r
+                                            <switch test='`$aend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\r
+                                                <outcome value='true'>\r
+                                                    <block atomic='true'>\r
+                                                        <set>\r
+                                                            <parameter name='aend-local-id' value="`$aend-local-id + '/OTN/' + $aend-pnf-name + '/' + $aend-cep-response.sip[0].name[2].value + ':' + $aend-cep-response.sip[0].name[1].value`" />\r
+                                                            <parameter name='aend-cep' value='`$param-prefix[$idx]`'/>\r
+                                                        </set>\r
+                                                        <break/>\r
+                                                    </block>\r
+                                                </outcome>\r
+                                                <outcome value='false'>\r
+                                                    <return status='failure'>\r
+                                                        <parameter name='error-code' value='500' />\r
+                                                        <parameter name='error-message' value='No service interface points could be found for A end ' />\r
+                                                        <parameter name='ack-final-indicator' value="Y" />\r
+                                                    </return>\r
+                                                </outcome>\r
+                                            </switch>\r
+                                        </block>\r
+                                    </outcome>\r
+                                </execute>\r
+                            </block>\r
+                        </for>\r
+                        <switch test='`$param-prefix_length == 1`'>\r
+                            <outcome value='true'>\r
+                                <set>\r
+                                    <parameter name='zend-new' value="`$zend-new`" />\r
+                                </set>\r
+                            </outcome>\r
+                            <outcome value='false'>\r
+                                <for index='idy' start='0' end='`$param-prefix_length`' >\r
+                                    <switch test='`$idy`'>\r
+                                        <outcome value='`$param-prefix_length - 1`'>\r
+                                            <set>\r
+                                                <parameter name='aend-new' value="`$aend-new + $param-prefix[$idy]`" />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='Other'>\r
+                                            <set>\r
+                                                <parameter name='aend-new' value="`$aend-new + $param-prefix[$idy] + ','`" />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='`$idx`'>\r
+                                            <set>\r
+                                                <parameter name='aend-new' value='`$aend-new`' />\r
+                                            </set>\r
+                                        </outcome>\r
+                                    </switch>\r
+                                </for>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $zend-node-uuid AND\r
+     p-interface.interface-name = $zend-nep"\r
+pfx='zend'      local-only='false'></get-resource>\r
+            <switch test='`$zend.network-interface-type`'>\r
+                <outcome value='UNI'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='zend-cep' value='`$zend-cep-list`' />\r
+                            <parameter name='zend-new' value='' />\r
+                            <parameter name='zend-new-rate' value='0' />\r
+                        </set>\r
+                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                            <parameter name="level" value="info" />\r
+                            <parameter name="field1" value="Zend uni"/>\r
+                        </record>\r
+                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                            <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $zend-cep`" />\r
+                            <parameter name="restapiUser" value="admin"/>\r
+                            <parameter name="restapiPassword" value="admin"/>\r
+                            <parameter name="httpMethod" value="GET"/>\r
+                            <parameter name="responsePrefix" value="zend-cep-response"/>\r
+                            <parameter name='contentType' value='application/json' />\r
+                            <parameter name='format' value='json' />\r
+                            <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>\r
+                            <parameter name="trustStorePassword" value="adminadmin"/>\r
+                            <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                            <parameter name="keyStorePassword" value="adminadmin"/>\r
+                            <outcome value='failure'>\r
+                                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                    <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                    <parameter name="level" value="info" />\r
+                                    <parameter name="field1" value="Failed to get Aend cep details"/>\r
+                                </record>\r
+                            </outcome>\r
+                            <outcome value='success'>\r
+                                <block atomic="true">\r
+                                    <set>\r
+                                        <parameter name='zend-local-id' value="`'/OTN/' + $zend-pnf-name + '/' + $zend-cep-response.sip[0].name[2].value + ':' + $zend-cep-response.sip[0].name[1].value`" />\r
+                                    </set>\r
+                                </block>\r
+                            </outcome>\r
+                        </execute>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='Other'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='zend-new' value='' />\r
+                            <parameter name='zend-local-id' value='' />\r
+                        </set>\r
+                        <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\r
+                            <parameter name="original_string" value='`$zend-cep-list`'/>\r
+                            <parameter name="regex" value=","/>\r
+                            <parameter name="ctx_memory_result_key" value="param-prefix1"/>\r
+                        </execute>\r
+                        <for index='idk' start='0' end='`$param-prefix1_length`' >\r
+                            <block atomic="true">\r
+                                <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                    <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.cep.details.url + $param-prefix1[$idk]`" />\r
+                                    <parameter name="restapiUser" value="admin"/>\r
+                                    <parameter name="restapiPassword" value="admin"/>\r
+                                    <parameter name="httpMethod" value="GET"/>\r
+                                    <parameter name="responsePrefix" value="zend-cep-response"/>\r
+                                    <parameter name='contentType' value='application/json' />\r
+                                    <parameter name='format' value='json' />\r
+                                    <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>\r
+                                    <parameter name="trustStorePassword" value="adminadmin"/>\r
+                                    <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                                    <parameter name="keyStorePassword" value="adminadmin"/>\r
+                                    <outcome value='failure'>\r
+                                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                            <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                            <parameter name="level" value="info" />\r
+                                            <parameter name="field1" value="Failed to get zend cep details"/>\r
+                                        </record>\r
+                                    </outcome>\r
+                                    <outcome value='success'>\r
+                                        <block atomic="true">\r
+                                            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                                                <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                                                <parameter name="level" value="info" />\r
+                                                <parameter name="field1" value="Sucessfully retrieved zend cep"/>\r
+                                            </record>\r
+                                            <switch test='`$zend-cep-response.sip[0].name[2].value == $optical-service-create-input.payload.service-rate`'>\r
+                                                <outcome value='true'>\r
+                                                    <block>\r
+                                                        <set>\r
+                                                            <parameter name='zend-local-id' value="`$zend-local-id + '/OTN/' + $zend-pnf-name + '/' + $zend-cep-response.sip[0].name[2].value + ':' + $zend-cep-response.sip[0].name[1].value`" />\r
+                                                            <parameter name='zend-cep' value='`$param-prefix1[$idk]`'/>\r
+                                                        </set>\r
+                                                        <break/>\r
+                                                    </block>\r
+                                                </outcome>\r
+                                                <outcome value='false'>\r
+                                                    <return status='failure'>\r
+                                                        <parameter name='error-code' value='500' />\r
+                                                        <parameter name='error-message' value='No service interface points could be found for Z end ' />\r
+                                                        <parameter name='ack-final-indicator' value="Y" />\r
+                                                    </return>\r
+                                                </outcome>\r
+                                            </switch>\r
+                                        </block>\r
+                                    </outcome>\r
+                                </execute>\r
+                            </block>\r
+                        </for>\r
+                        <switch test='`$param-prefix1_length == 1`'>\r
+                            <outcome value='true'>\r
+                                <set>\r
+                                    <parameter name='zend-new' value="`$zend-new`" />\r
+                                </set>\r
+                            </outcome>\r
+                            <outcome value='false'>\r
+                                <for index='idl' start='0' end='`$param-prefix1_length`' >\r
+                                    <switch test='`$idl`'>\r
+                                        <outcome value='`$param-prefix1_length - 1`'>\r
+                                            <set>\r
+                                                <parameter name='zend-new' value="`$zend-new + $param-prefix1[$idl]`" />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='Other'>\r
+                                            <set>\r
+                                                <parameter name='zend-new' value="`$zend-new + $param-prefix1[$idl] + ','`" />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='`$idk`'>\r
+                                            <set>\r
+                                                <parameter name='zend-new' value='`$zend-new`' />\r
+                                            </set>\r
+                                        </outcome>\r
+                                    </switch>\r
+                                </for>\r
+                            </outcome>\r
+                        </switch>\r
+                    </block>\r
+                </outcome>\r
+            </switch>\r
+            <set>\r
+                <parameter name='service-name' value="`$optical-service-create-input.payload.service-name`" />\r
+                <parameter name='svc-action' value="CREATE" />\r
+            </set>\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="A end local-id"/>\r
+                <parameter name="field2" value="`$aend-local-id`"/>\r
+                <parameter name="field3" value="Z end local-id"/>\r
+                <parameter name="field4" value="`$zend-local-id`"/>\r
+                <parameter name="field5" value="Service name"/>\r
+                <parameter name="field6" value="`$service-name`"/>\r
+            </record>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/optical-service-create-tapi.json'`" />\r
+                <parameter name="restapiUrl" value="`$controller-ip + '/cxf/tapi/v2/connectivities/tapi-services'`"/>\r
+                <parameter name="restapiUser" value="admin"/>\r
+                <parameter name="restapiPassword" value="admin"/>\r
+                <parameter name="httpMethod" value="POST"/>\r
+                <parameter name="responsePrefix" value="tapi-service-response"/>\r
+                <parameter name='contentType' value='application/json' />\r
+                <parameter name='format' value='json' />\r
+                <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>\r
+                <parameter name="trustStorePassword" value="adminadmin"/>\r
+                <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                <parameter name="keyStorePassword" value="adminadmin"/>\r
+                <outcome value='failure'>\r
+                    <block atomic='true'>\r
+                        <return status='failure'>\r
+                            <parameter name='error-code' value='500' />\r
+                            <parameter name='error-message' value='Service creation failed' />\r
+                            <parameter name='ack-final-indicator' value="Y" />\r
+                        </return>\r
+                    </block>\r
+                </outcome>\r
+                <outcome value='success'>\r
+                    <block atomic='true'>\r
+                        <save plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL" key="INSERT INTO REQUEST_DETAILS (request_id, controller_id, status, service_rate, service_instance_id, service_type, global_customer_id, notification_url) VALUES ( $optical-service-create-input.request-id , $controller-id , 'CREATED' , $optical-service-create-input.payload.service-rate ,  $optical-service-create-input.service-id , $optical-service-create-input.service-type , $optical-service-create-input.global-customer-id , null );"></save>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'\r
+force='true' pfx='save-result'></save>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'\r
+force='true' pfx='save-result'></save>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'  \r
+     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\r
+     service-subscription.service-type = $optical-service-create-input.service-type AND\r
+     service-instance.service-instance-id = $optical-service-create-input.service-id' >\r
+                            <parameter name='service-instance-id' value='`$optical-service-create-input.service-id`' />\r
+                            <parameter name='service-instance-name' value='`$optical-service-create-input.payload.service-name`' />\r
+                            <parameter name='service-type' value='Domain-Service' />\r
+                            <parameter name='orchestration-status' value='CREATED' />\r
+                            <parameter name='service-rate' value='`$optical-service-create-input.payload.service-rate`' />\r
+                            <parameter name='service-layer' value='ODU' />\r
+                        </save>\r
+                        <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'  \r
+     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\r
+     service-subscription.service-type = $optical-service-create-input.service-type AND\r
+     service-instance.service-instance-id = $optical-service-create-input.service-id' force="true" pfx="tmp.AnAI-data">\r
+                            <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />\r
+                            <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-aend.port-id `" />\r
+                            <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name" />\r
+                            <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$aend-node-uuid`" />\r
+                            <parameter name="relationship-list.relationship[1].related-to" value="p-interface" />\r
+                            <parameter name="relationship-list.relationship[1].related-link" value="`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-zend.port-id `" />\r
+                            <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="pnf.pnf-name" />\r
+                            <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$zend-node-uuid`" />\r
+                        </save>\r
+                        <return status='success'>\r
+                            <parameter name='error-code' value='200' />\r
+                            <parameter name='error-message' value='Service created successfully' />\r
+                            <parameter name='ack-final-indicator' value="Y" />\r
+                        </return>\r
+                    </block>\r
+                </outcome>\r
+            </execute>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_service-delete-tapi.xml b/platform-logic/optical-service/src/main/xml/optical-service_service-delete-tapi.xml
new file mode 100644 (file)
index 0000000..919c554
--- /dev/null
@@ -0,0 +1,152 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='service-delete-tapi' mode='sync'>\r
+        <block atomic="true">\r
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
+                <parameter name="file" value="/opt/opendaylight/current/data/log/service-create-tapi.log" />\r
+                <parameter name="level" value="info" />\r
+                <parameter name="field1" value="Inside optical service delete tapi"/>\r
+            </record>\r
+            <set>\r
+                <parameter name='request-id' value='`$optical-service-delete-input.request-id`' />\r
+            </set>\r
+            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.get.services.url + $optical-service-delete-input.payload.service-name`" />\r
+                <parameter name="restapiUser" value="admin"/>\r
+                <parameter name="restapiPassword" value="admin"/>\r
+                <parameter name="httpMethod" value="GET"/>\r
+                <parameter name="responsePrefix" value="services-response"/>\r
+                <parameter name='contentType' value='application/json' />\r
+                <parameter name='format' value='json' />\r
+                <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>\r
+                <parameter name="trustStorePassword" value="adminadmin"/>\r
+                <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                <parameter name="keyStorePassword" value="adminadmin"/>\r
+                <outcome value='failure'></outcome>\r
+                <outcome value='success'>\r
+                    <block atomic='true'>\r
+                        <set>\r
+                            <parameter name='aend-nep' value="`$services-response.service[0].end-point[0].connection-end-point[0].node-edge-point-uuid`" />\r
+                            <parameter name='zend-nep' value="`$services-response.service[0].end-point[1].connection-end-point[0].node-edge-point-uuid`" />\r
+                            <parameter name='aend-cep' value="`$services-response.service[0].end-point[0].connection-end-point[0].connection-end-point-uuid`" />\r
+                            <parameter name='zend-cep' value="`$services-response.service[0].end-point[1].connection-end-point[0].connection-end-point-uuid`" />\r
+                        </set>\r
+                        <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
+key='SELECT *\r
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\r
+WHERE interface_name = $aend-nep'\r
+pfx='db-aend'></get-resource>\r
+                        <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
+key='SELECT *\r
+from TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\r
+WHERE interface_name = $zend-nep'\r
+pfx='db-zend'></get-resource>\r
+                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                            <parameter name="restapiUrl" value="` $controller-ip + $prop.tapi.delete.service.url + $optical-service-delete-input.payload.service-name`" />\r
+                            <parameter name="restapiUser" value="admin"/>\r
+                            <parameter name="restapiPassword" value="admin"/>\r
+                            <parameter name="httpMethod" value="DELETE"/>\r
+                            <parameter name="responsePrefix" value="tapi-service-response"/>\r
+                            <parameter name='contentType' value='application/json' />\r
+                            <parameter name='format' value='json' />\r
+                            <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.jks"/>\r
+                            <parameter name="trustStorePassword" value="adminadmin"/>\r
+                            <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>\r
+                            <parameter name="keyStorePassword" value="adminadmin"/>\r
+                            <outcome value='failure'>\r
+                                <block atomic='true'>\r
+                                    <return status='failure'>\r
+                                        <parameter name='error-code' value='500' />\r
+                                        <parameter name='error-message' value='Service Deletion failed' />\r
+                                        <parameter name='ack-final-indicator' value="Y" />\r
+                                    </return>\r
+                                </block>\r
+                            </outcome>\r
+                            <outcome value='success'>\r
+                                <block atomic='true'>\r
+                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $db-aend.pnf-name AND\r
+     p-interface.interface-name = $aend-nep"\r
+pfx='aend'      local-only='false'></get-resource>\r
+                                    <switch test='`$aend.network-interface-type`'>\r
+                                        <outcome value='UNI'>\r
+                                            <set>\r
+                                                <parameter name='aend-new' value='`$aend-cep`' />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='Other'>\r
+                                            <switch test='`$db-aend.connection-point`'>\r
+                                                <outcome value=''>\r
+                                                    <set>\r
+                                                        <parameter name='aend-new' value="`$aend-cep`" />\r
+                                                    </set>\r
+                                                </outcome>\r
+                                                <outcome value='Other'>\r
+                                                    <set>\r
+                                                        <parameter name='aend-new' value="`$db-aend.connection-point + ',' + $aend-cep`" />\r
+                                                    </set>\r
+                                                </outcome>\r
+                                            </switch>\r
+                                        </outcome>\r
+                                    </switch>\r
+                                    <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'\r
+force='true' pfx='save-result'></save>\r
+                                    <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="p-interface"\r
+ key="pnf.pnf-name = $db-zend.pnf-name AND\r
+     p-interface.interface-name = $zend-nep"\r
+pfx='zend'      local-only='false'></get-resource>\r
+                                    <switch test='`$zend.network-interface-type`'>\r
+                                        <outcome value='UNI'>\r
+                                            <set>\r
+                                                <parameter name='zend-new' value='`$zend-cep`' />\r
+                                            </set>\r
+                                        </outcome>\r
+                                        <outcome value='Other'>\r
+                                            <switch test='`$db-zend.connection-point`'>\r
+                                                <outcome value=''>\r
+                                                    <set>\r
+                                                        <parameter name='zend-new' value="`$zend-cep`" />\r
+                                                    </set>\r
+                                                </outcome>\r
+                                                <outcome value='Other'>\r
+                                                    <set>\r
+                                                        <parameter name='zend-new' value="`$db-zend.connection-point + ',' + $zend-cep`" />\r
+                                                    </set>\r
+                                                </outcome>\r
+                                            </switch>\r
+                                        </outcome>\r
+                                    </switch>\r
+                                    <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \r
+resource='SQL' \r
+key='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'\r
+force='true' pfx='save-result'></save>\r
+                                    <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \r
+key='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '\r
+pfx='output'></get-resource>\r
+                                    <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="service-instance"\r
+key='customer.global-customer-id = $output.global-customer-id AND\r
+service-subscription.service-type = $output.service-type AND\r
+service-instance.service-instance-id = $output.service-instance-id'></delete>\r
+                                    <delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\r
+    resource="SQL"\r
+    key="DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id"></delete>\r
+                                    <return status='success'>\r
+                                        <parameter name='error-code' value='200' />\r
+                                        <parameter name='error-message' value='Service deleted successfully' />\r
+                                        <parameter name='ack-final-indicator' value="Y" />\r
+                                    </return>\r
+                                </block>\r
+                            </outcome>\r
+                        </execute>\r
+                    </block>\r
+                </outcome>\r
+            </execute>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml b/platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml
new file mode 100644 (file)
index 0000000..c3b9639
--- /dev/null
@@ -0,0 +1,36 @@
+<service-logic\r
+    xmlns='http://www.onap.org/sdnc/svclogic'\r
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>\r
+    <method rpc='success-aai-update-tapi' mode='sync'>\r
+        <block atomic="true">\r
+            <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'  \r
+     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\r
+     service-subscription.service-type = $optical-service-create-input.service-type AND\r
+     service-instance.service-instance-id = $optical-service-create-input.service-id' force="true" pfx="tmp.AnAI-data">\r
+                <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />\r
+                <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $aend-nep `" />\r
+                <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name" />\r
+                <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$aend-node-uuid`" />\r
+                <parameter name="relationship-list.relationship[1].related-to" value="p-interface" />\r
+                <parameter name="relationship-list.relationship[1].related-link" value="`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $zend-nep `" />\r
+                <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="pnf.pnf-name" />\r
+                <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$zend-node-uuid`" />\r
+            </save>\r
+            <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
+resource="service-instance"\r
+key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\r
+     service-subscription.service-type = $optical-service-create-input.service-type AND\r
+     service-instance.service-instance-id = $optical-service-create-input.service-id'  \r
+pfx='aai.service'      local-only='false'></get-resource>\r
+            <for index='idy' start='0' end='`$aai.service.relationship-list.relationship_length`' >\r
+                <block atomic='true'>\r
+                    <set>\r
+                        <parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\r
+                        <parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\r
+                    </set>\r
+                    <call module='optical-service' rpc='call-bandwidth-update-pinterface' mode='sync' ></call>\r
+                </block>\r
+            </for>\r
+        </block>\r
+    </method>\r
+</service-logic>
\ No newline at end of file