Merge "Add missing blueprint-processor schema"
authorDan Timoney <dt5972@att.com>
Thu, 27 Sep 2018 17:50:47 +0000 (17:50 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 27 Sep 2018 17:50:47 +0000 (17:50 +0000)
Former-commit-id: 3f5452771d41277452e8fb9bc16429c41e3dd231

40 files changed:
SdncReports/pom.xml
configbackuprestore/pom.xml
dgbuilder/.gitignore
installation/ansible-server/pom.xml
installation/ansible-server/src/main/docker/Dockerfile
installation/ansible-server/src/main/yml/ansible_huawei_postcheck@0.00.yml [new file with mode: 0644]
installation/ansible-server/src/main/yml/ansible_huawei_precheck@0.00.yml [new file with mode: 0644]
installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml [new file with mode: 0644]
installation/dgbuilder/.gitignore [new file with mode: 0755]
installation/sdnc/src/main/resources/sdnctl.dump
installation/src/main/properties/aaiclient.properties
installation/src/main/properties/generic-resource-api-dg.properties
installation/src/main/yaml/docker-compose.yml
platform-logic/datachange/src/main/json/DataChange_data-change-notification.json
platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery-of-zte.json [new file with mode: 0644]
platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json
platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-of-zte.json
platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc.json
platform-logic/datachange/src/main/resources/graph.versions
platform-logic/datachange/src/main/xml/DataChange_data-change-notification.xml
platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery-of-zte.xml [new file with mode: 0644]
platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml
platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-of-zte.xml
platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc.xml
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.json
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-create.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-deactivate.json [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-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_network-topology-operation.xml
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.xml
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.xml
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-create.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-deactivate.xml [new file with mode: 0644]
platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.xml [new file with mode: 0644]
platform-logic/pom.xml

index 5b9bd5d..2a9e09d 100644 (file)
@@ -12,9 +12,9 @@
         <name>sdnc-oam :: SdncReports</name>
 
        <parent>
-               <groupId>org.springframework.boot</groupId>
-               <artifactId>spring-boot-starter-parent</artifactId>
-               <version>1.5.4.RELEASE</version>
+               <groupId>org.onap.ccsdk.parent</groupId>
+               <artifactId>spring-boot-1-starter-parent</artifactId>
+               <version>1.1.0-SNAPSHOT</version>
        </parent>
        <distributionManagement>
                <repository>
index 4501ca7..b3b532d 100644 (file)
        <packaging>pom</packaging>
 
        <parent>
-               <groupId>org.springframework.boot</groupId>
-               <artifactId>spring-boot-starter-parent</artifactId>
-               <version>1.5.4.RELEASE</version>
+               <groupId>org.onap.ccsdk.parent</groupId>
+               <artifactId>spring-boot-1-starter-parent</artifactId>
+               <version>1.1.0-SNAPSHOT</version>
        </parent>
 
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+               <!-- ONAP repositories -->
+               <onap.nexus.host>nexus.onap.org</onap.nexus.host>
+               <onap.nexus.port>443</onap.nexus.port>
+               <onap.nexus.protocol>https</onap.nexus.protocol>
+               <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
+               <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
+               <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
+               <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
+               <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
+               <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
        </properties>
 
        <dependencies>
index 39c2405..e0a11b5 100644 (file)
@@ -10,4 +10,5 @@ target/
 MANIFEST.MF\r
 .DS_STORE\r
 .metadata\r
-pom.xml_base
\ No newline at end of file
+pom.xml_base\r
+node_modules
\ No newline at end of file
index e5e7801..593c5ae 100644 (file)
@@ -88,7 +88,7 @@
                         </goals><!-- here the phase you need -->
                         <phase>validate</phase>
                         <configuration>
-                            <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/Playbooks</outputDirectory>
+                            <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk/Playbooks</outputDirectory>
                             <resources>
                                 <resource>
                                     <directory>src/main/yml</directory>
index cc93f12..ea9e61b 100644 (file)
@@ -21,7 +21,7 @@ RUN apt-get -y install python-pip
 # copy files needed
 COPY opt /opt/
 
-WORKDIR /opt/onap/sdnc
+WORKDIR /opt/onap/ccsdk
 
 #ENTRYPOINT exec startAnsibleServer.sh
 #CMD ["/bin/bash"]
diff --git a/installation/ansible-server/src/main/yml/ansible_huawei_postcheck@0.00.yml b/installation/ansible-server/src/main/yml/ansible_huawei_postcheck@0.00.yml
new file mode 100644 (file)
index 0000000..975887d
--- /dev/null
@@ -0,0 +1,21 @@
+---\r
+- hosts: all\r
+  tasks:\r
+  - name: create a temporary file for additional data\r
+    file: \r
+        path: /tmp/tmp-{{Id}}\r
+        state: touch\r
+    become: true\r
+\r
+  - name: prepare additional data\r
+    shell: echo {{additionalData}} > /tmp/tmp-{{Id}}\r
+    become: true\r
+\r
+  - name: execute post-check operation\r
+    shell: ./swm/upgrade-post-check.sh {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} {{ruleName}} /tmp/tmp-{{Id}}\r
+\r
+  - name: remove the temporary file\r
+    file:\r
+        path: /tmp/tmp-{{Id}}\r
+        state: absent\r
+    become: true\r
diff --git a/installation/ansible-server/src/main/yml/ansible_huawei_precheck@0.00.yml b/installation/ansible-server/src/main/yml/ansible_huawei_precheck@0.00.yml
new file mode 100644 (file)
index 0000000..651974f
--- /dev/null
@@ -0,0 +1,21 @@
+---\r
+- hosts: all\r
+  tasks:\r
+  - name: create a temporary file for additional data\r
+    file: \r
+        path: /tmp/tmp-{{Id}}\r
+        state: touch\r
+    become: true\r
+\r
+  - name: prepare additional data\r
+    shell: echo {{additionalData}} > /tmp/tmp-{{Id}}\r
+    become: true\r
+\r
+  - name: execute pre-check operation\r
+    shell: ./swm/upgrade-pre-check.sh {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} {{ruleName}} /tmp/tmp-{{Id}}\r
+\r
+  - name: remove the temporary file\r
+    file:\r
+        path: /tmp/tmp-{{Id}}\r
+        state: absent\r
+    become: true\r
diff --git a/installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml b/installation/ansible-server/src/main/yml/ansible_huawei_upgrade@0.00.yml
new file mode 100644 (file)
index 0000000..ac2c405
--- /dev/null
@@ -0,0 +1,21 @@
+---\r
+- hosts: all\r
+  tasks:\r
+  - name: create a temporary file for additional data\r
+    file: \r
+        path: /tmp/tmp-{{Id}}\r
+        state: touch\r
+    become: true\r
+\r
+  - name: prepare additional data\r
+    shell: echo {{additionalData}} > /tmp/tmp-{{Id}}\r
+    become: true\r
+\r
+  - name: execute upgrade software operation\r
+    shell: ./swm/upgrade-software.sh {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} /tmp/tmp-{{Id}}\r
+\r
+  - name: remove the temporary file\r
+    file:\r
+        path: /tmp/tmp-{{Id}}\r
+        state: absent\r
+    become: true\r
diff --git a/installation/dgbuilder/.gitignore b/installation/dgbuilder/.gitignore
new file mode 100755 (executable)
index 0000000..ed7fb70
--- /dev/null
@@ -0,0 +1 @@
+releases
\ No newline at end of file
index 9949c88..04a9ad7 100644 (file)
@@ -989,6 +989,9 @@ DROP TABLE IF EXISTS `GENERIC_RESOURCE_NAME`;
 CREATE TABLE `GENERIC_RESOURCE_NAME` (
   `type` varchar(50) NOT NULL,
   `name` varchar(255) NOT NULL,
+  `prefix` varchar(255) NULL,
+  `name_index` int(11) NULL,
+  `content_id` varchar(255) NULL,
   PRIMARY KEY (`type`,`name`)
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 /*!40101 SET character_set_client = @saved_cs_client */;
@@ -3295,6 +3298,16 @@ CREATE TABLE `DHCP_MAP` (
   PRIMARY KEY (`mac_addr`)
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
+DROP TABLE IF EXISTS `RESOURCE_GROUP_TO_TARGET_NODE_MAPPING`;
+CREATE TABLE `RESOURCE_GROUP_TO_TARGET_NODE_MAPPING` (
+  `group_uuid` varchar(255) NOT NULL,
+  `parent_uuid` varchar(255) NOT NULL,
+  `target_node_uuid` varchar(255) NOT NULL,
+  `target_type` varchar(255) NULL,
+  `table_name` varchar(255) NULL,
+  PRIMARY KEY (`group_uuid`, `parent_uuid`, `target_node_uuid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
 /*!40101 SET character_set_client = @saved_cs_client */;
 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
 
index 3d24a6a..6568383 100755 (executable)
@@ -30,8 +30,8 @@ org.onap.ccsdk.sli.adaptors.aai.ssl.trust=/opt/onap/sdnc/data/stores/truststoreO
 org.onap.ccsdk.sli.adaptors.aai.ssl.trust.psswd=changeit
 org.onap.ccsdk.sli.adaptors.aai.host.certificate.ignore=true
 
-org.onap.ccsdk.sli.adaptors.aai.client.name=SDNC
-org.onap.ccsdk.sli.adaptors.aai.client.psswd=SDNC
+org.onap.ccsdk.sli.adaptors.aai.client.name=sdnc@sdnc.onap.org
+org.onap.ccsdk.sli.adaptors.aai.client.psswd=demo123456!
 
 org.onap.ccsdk.sli.adaptors.aai.application=openECOMP
 #
index ef99e9d..f9161d7 100644 (file)
@@ -9,7 +9,7 @@ restapi.trustStoreFileName=/opt/onap/sdnc/data/stores/truststore.openecomp.clien
 restapi.trustStorePassword=adminadmin
 restapi.keyStoreFileName=/opt/onap/sdnc/data/stores/sdnc.p12
 restapi.keyStorePassword=adminadmin
-restapi.connection-oof-url=http://oof.api.simpledemo.onap.org:8698/v1/route
+restapi.connection-oof-url=http://oof.api.simpledemo.onap.org:8698/api/oof/v1/route
 naming.gen-name.url=http://{naming-ms-instance-url}
 naming.gen-name.user={naming-ms-user}
 naming.gen-name.pwd={naming-ms-pwd}
index 361e7ea..3852251 100644 (file)
@@ -27,7 +27,7 @@ services:
     depends_on :
       - db
     container_name: sdnc_ansible_container
-    entrypoint: ["/opt/onap/sdnc/startAnsibleServer.sh"]
+    entrypoint: ["/opt/onap/ccsdk/startAnsibleServer.sh"]
     ports:
       - "8000"
     links:
index c4df22a..eb1e8fd 100644 (file)
@@ -1 +1,278 @@
-[{"id":"2abb63ad.3df404","type":"dgstart","name":"DGSTART","outputs":1,"x":97,"y":89,"z":"bbab5cc4.c9cbd","wires":[["cec5984a.941728"]]},{"id":"cec5984a.941728","type":"service-logic","name":"DataChange ${project.version}","module":"DataChange","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='DataChange' version='${project.version}'>","outputs":1,"x":283.1111488342285,"y":193.44447135925293,"z":"bbab5cc4.c9cbd","wires":[["6f601264.f5fb8c"]]},{"id":"6f601264.f5fb8c","type":"method","name":"method data-change-notification","xml":"<method rpc='data-change-notification' mode='sync'>\n","comments":"","outputs":1,"x":280.5556983947754,"y":357.2222566604614,"z":"bbab5cc4.c9cbd","wires":[["b8bb57bd.6c8f88"]]},{"id":"b8bb57bd.6c8f88","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":325.7779846191406,"y":472.1113269329071,"z":"bbab5cc4.c9cbd","wires":[["97cb17d6.992f9","3b4bb8da.ca8bd8"]]},{"id":"97cb17d6.992f9","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n","comments":"","x":533.3338432312012,"y":559.556131362915,"z":"bbab5cc4.c9cbd","wires":[]},{"id":"c1961812.103ba","type":"call","name":"call esr-thirdparty-sdnc","xml":"<call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync' >\n","comments":"","outputs":1,"x":1454.3341064453125,"y":336.6667785644531,"z":"bbab5cc4.c9cbd","wires":[[]]},{"id":"3b4bb8da.ca8bd8","type":"switchNode","name":"switch aai-node-type","xml":"<switch test='`$data-change-notification-input.aai-node-type`'>\n","comments":"","outputs":1,"x":536.8827209472656,"y":435.88262820243835,"z":"bbab5cc4.c9cbd","wires":[["8187ec02.edc438","e44a9744.783fc8"]]},{"id":"8187ec02.edc438","type":"other","name":"esr-thirdparty-sdnc","xml":"<outcome value='esr-thirdparty-sdnc'>\n","comments":"","outputs":1,"x":711.9146728515625,"y":194.0572509765625,"z":"bbab5cc4.c9cbd","wires":[["b5d44440.30e84"]]},{"id":"e44a9744.783fc8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":776.8827857971191,"y":434.8826608657837,"z":"bbab5cc4.c9cbd","wires":[["62e87f0f.63e3e"]]},{"id":"62e87f0f.63e3e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"AAI node type not supported\" />","comments":"","x":932.3273048400879,"y":434.99376010894775,"z":"bbab5cc4.c9cbd","wires":[]},{"id":"9f25a183.327f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1358.000244140625,"y":252.8262939453125,"z":"bbab5cc4.c9cbd","wires":[["c1961812.103ba"]]},{"id":"b5d44440.30e84","type":"for","name":"for","xml":"<for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >\n","comments":"","outputs":1,"x":899,"y":194,"z":"bbab5cc4.c9cbd","wires":[["b63e0c35.6e5668"]]},{"id":"b63e0c35.6e5668","type":"switchNode","name":"switch","xml":"<switch test=\"`$data-change-notification-input.key-data[$idx].key-value == 'ZTE'`\">\n","comments":"","outputs":1,"x":1039,"y":194,"z":"bbab5cc4.c9cbd","wires":[["4a9c78f7.44a98","ed07b87c.5778b8"]]},{"id":"14dce58a.e0a96a","type":"call","name":"call","xml":"<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\n","comments":"","outputs":1,"x":1342,"y":194,"z":"bbab5cc4.c9cbd","wires":[[]]},{"id":"4a9c78f7.44a98","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1193,"y":194,"z":"bbab5cc4.c9cbd","wires":[["14dce58a.e0a96a"]]},{"id":"ed07b87c.5778b8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1193,"y":253,"z":"bbab5cc4.c9cbd","wires":[["9f25a183.327f8"]]}]
\ No newline at end of file
+[\r
+    {\r
+        "id": "c9438469.7f9978", \r
+        "type": "dgstart", \r
+        "name": "DGSTART", \r
+        "outputs": 1, \r
+        "x": 86.5, \r
+        "y": 81, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "80aeb8.8187b148"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "80aeb8.8187b148", \r
+        "type": "service-logic", \r
+        "name": "DataChange ${project.version}", \r
+        "module": "DataChange", \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='DataChange' version='${project.version}'>", \r
+        "outputs": 1, \r
+        "x": 249.61114883422852, \r
+        "y": 182.44447135925293, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "b8c8b6e.8e24748"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "b8c8b6e.8e24748", \r
+        "type": "method", \r
+        "name": "method data-change-notification", \r
+        "xml": "<method rpc='data-change-notification' mode='sync'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 247.0556983947754, \r
+        "y": 346.2222566604614, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "e44b2680.5f0e1"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "e44b2680.5f0e1", \r
+        "type": "block", \r
+        "name": "block : atomic", \r
+        "xml": "<block atomic=\"true\">\n", \r
+        "atomic": "false", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 292.2779846191406, \r
+        "y": 461.1113269329071, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "5f1a41d8.25b23", \r
+                "7978a5db.d860ec"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "5f1a41d8.25b23", \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": 499.8338432312012, \r
+        "y": 548.556131362915, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "bca5a9bf.c1ce98", \r
+        "type": "call", \r
+        "name": "call esr-thirdparty-sdnc", \r
+        "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync' >\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1420.8341064453125, \r
+        "y": 325.6667785644531, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [ ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "7978a5db.d860ec", \r
+        "type": "switchNode", \r
+        "name": "switch aai-node-type", \r
+        "xml": "<switch test='`$data-change-notification-input.aai-node-type`'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 503.3827209472656, \r
+        "y": 424.88262820243835, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "1e0b8434.23a404", \r
+                "d0750bdf.e570e"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "1e0b8434.23a404", \r
+        "type": "other", \r
+        "name": "esr-thirdparty-sdnc", \r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 678.4146728515625, \r
+        "y": 183.0572509765625, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "e6b3f0d5.83e4a8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "d0750bdf.e570e", \r
+        "type": "other", \r
+        "name": "other", \r
+        "xml": "<outcome value='Other'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 743.3827857971191, \r
+        "y": 423.8826608657837, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "9c41362c.9d7948"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "9c41362c.9d7948", \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=\"AAI node type not supported\" />", \r
+        "comments": "", \r
+        "x": 898.8273048400879, \r
+        "y": 423.99376010894775, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "dc8e805f.967db", \r
+        "type": "block", \r
+        "name": "block : atomic", \r
+        "xml": "<block atomic=\"true\">\n", \r
+        "atomic": "false", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1324.500244140625, \r
+        "y": 241.8262939453125, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "bca5a9bf.c1ce98"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "e6b3f0d5.83e4a8", \r
+        "type": "for", \r
+        "name": "for", \r
+        "xml": "<for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 865.5, \r
+        "y": 183, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "ba8b2793.6bb91"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "ba8b2793.6bb91", \r
+        "type": "switchNode", \r
+        "name": "switch", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-value == 'ZTE'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1005.5, \r
+        "y": 183, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "891233f8.add168", \r
+                "810b885f.a9b34"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "5b501f1b.fad328", \r
+        "type": "call", \r
+        "name": "call esr-thirdparty-sdnc-of-zte", \r
+        "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1619.5, \r
+        "y": 236, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [ ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "891233f8.add168", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1159.5, \r
+        "y": 183, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "fb1086e7.fe9d98"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "810b885f.a9b34", \r
+        "type": "outcomeFalse", \r
+        "name": "false", \r
+        "xml": "<outcome value='false'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1159.5, \r
+        "y": 242, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "dc8e805f.967db"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "fb1086e7.fe9d98", \r
+        "type": "block", \r
+        "name": "block : atomic", \r
+        "xml": "<block atomic=\"true\">\n", \r
+        "atomic": "false", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1322, \r
+        "y": 183, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [\r
+            [\r
+                "6a42dcf4.2a86a4", \r
+                "5b501f1b.fad328"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "6a42dcf4.2a86a4", \r
+        "type": "set", \r
+        "name": "set vendor", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.vendor' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1547, \r
+        "y": 183, \r
+        "z": "31e69f1c.704108", \r
+        "wires": [ ]\r
+    }\r
+]
\ No newline at end of file
diff --git a/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery-of-zte.json b/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery-of-zte.json
new file mode 100644 (file)
index 0000000..d826251
--- /dev/null
@@ -0,0 +1,300 @@
+[\r
+    {\r
+        "id": "461e2499.8f3954", \r
+        "type": "dgstart", \r
+        "name": "DGSTART", \r
+        "outputs": 1, \r
+        "x": 98, \r
+        "y": 69, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "701f3038.9db4d"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "701f3038.9db4d", \r
+        "type": "service-logic", \r
+        "name": "DataChange ${project.version}", \r
+        "module": "DataChange", \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='DataChange' version='${project.version}'>", \r
+        "outputs": 1, \r
+        "x": 202, \r
+        "y": 158, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "ba25d02c.fdd0a8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "ba25d02c.fdd0a8", \r
+        "type": "method", \r
+        "name": "method esr-thirdparty-sdnc-discovery-of-zte", \r
+        "xml": "<method rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 270, \r
+        "y": 256, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "a3d44b66.a5094"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "a3d44b66.a5094", \r
+        "type": "block", \r
+        "name": "block : atomic", \r
+        "xml": "<block atomic='true'>", \r
+        "atomic": "true", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 194, \r
+        "y": 363, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "ca8f74a.2337f88"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "ca8f74a.2337f88", \r
+        "type": "switchNode", \r
+        "name": "switch aai-event-trigger", \r
+        "xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 396, \r
+        "y": 363, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "63184cea.989334", \r
+                "7bf3b058.b30c4"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "63184cea.989334", \r
+        "type": "outcome", \r
+        "name": "update", \r
+        "xml": "<outcome value='Update'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 624, \r
+        "y": 318, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "fdd46760.8bf7f"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "7bf3b058.b30c4", \r
+        "type": "outcome", \r
+        "name": "delete", \r
+        "xml": "<outcome value='delete'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 622, \r
+        "y": 486, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "8e4adf58.75aaa"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "8e4adf58.75aaa", \r
+        "type": "block", \r
+        "name": "block : atomic", \r
+        "xml": "<block atomic='true'>", \r
+        "atomic": "true", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 797, \r
+        "y": 486, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [ ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "fdd46760.8bf7f", \r
+        "type": "block", \r
+        "name": "block", \r
+        "xml": "<block>\n", \r
+        "atomic": "false", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 776, \r
+        "y": 318, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "da8890ad.af057"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "da8890ad.af057", \r
+        "type": "switchNode", \r
+        "name": "switch type", \r
+        "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 945, \r
+        "y": 318, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "f4b967b.17aaa18", \r
+                "9bc9bbca.bea01"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "f4b967b.17aaa18", \r
+        "type": "outcome", \r
+        "name": "SOTN", \r
+        "xml": "<outcome value='SOTN'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1121, \r
+        "y": 253, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "8178bbaf.4eb688"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "9bc9bbca.bea01", \r
+        "type": "outcome", \r
+        "name": "other", \r
+        "xml": "<outcome value='Other'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1115, \r
+        "y": 375, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "d8c7c62c.b1c62"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "d8c7c62c.b1c62", \r
+        "type": "returnFailure", \r
+        "name": "return failure", \r
+        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value=\"500\" />\n<parameter name='error-message' value=\"`'Unsupported type = ' + $prop.sdncRestApi.type`\" />\n", \r
+        "comments": "", \r
+        "x": 1307, \r
+        "y": 375, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "8178bbaf.4eb688", \r
+        "type": "block", \r
+        "name": "block : atomic", \r
+        "xml": "<block atomic='true'>", \r
+        "atomic": "true", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1307, \r
+        "y": 253, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "9fb7d11c.800968"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "9fb7d11c.800968", \r
+        "type": "execute", \r
+        "name": "execute RestApiCallNode Get ZTE Topology", \r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/getztetopotemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-topology-details'`\" />\n<parameter name=\"restapiUser\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"ztetopology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.zte.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.zte.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1627, \r
+        "y": 161, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "eab2d66e.d885b8", \r
+                "17a6c836.1328e"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "eab2d66e.d885b8", \r
+        "type": "success", \r
+        "name": "success", \r
+        "xml": "<outcome value='success'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1909, \r
+        "y": 106, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "e4e6a315.e66f18"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "17a6c836.1328e", \r
+        "type": "failure", \r
+        "name": "failure", \r
+        "xml": "<outcome value='failure'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 1907, \r
+        "y": 206, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [\r
+                "f408426d.ddcf3"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "e4e6a315.e66f18", \r
+        "type": "block", \r
+        "name": "block : atomic", \r
+        "xml": "<block atomic=\"true\">", \r
+        "atomic": "true", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 2108, \r
+        "y": 105, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [\r
+            [ ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "f408426d.ddcf3", \r
+        "type": "returnFailure", \r
+        "name": "return failure", \r
+        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n", \r
+        "comments": "", \r
+        "x": 2103, \r
+        "y": 206, \r
+        "z": "233b36a1.5b5d1a", \r
+        "wires": [ ]\r
+    }\r
+]
\ No newline at end of file
index 426b856..ccc0c00 100644 (file)
 [
   {
-    "id": "e714f114.a841a",
+    "id": "3492b641.0dfbba",
     "type": "other",
     "name": "update",
     "xml": "<outcome value='Update'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 674.5000419616699,
-    "y": 205.66669845581055,
-    "z": "f60ccc0b.2e9e5",
+    "x": 673,
+    "y": 276.6667003631592,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "412d4a4c.5ea2f4"
+        "f2d65f4a.d687"
       ]
     ]
   },
   {
-    "id": "47ba392d.437028",
+    "id": "668a1af1.719b34",
     "type": "other",
     "name": "delete",
     "xml": "<outcome value='delete'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 702.7222175598145,
-    "y": 477.3335008621216,
-    "z": "f60ccc0b.2e9e5",
+    "x": 709.2221145629883,
+    "y": 478.33349609375,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "e84e5704.965b68"
+        "3b8ddbef.903fa4"
       ]
     ]
   },
   {
-    "id": "e84e5704.965b68",
+    "id": "3b8ddbef.903fa4",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 858.1668968200684,
-    "y": 477.33352184295654,
-    "z": "f60ccc0b.2e9e5",
+    "x": 859.6667594909668,
+    "y": 473.3335485458374,
+    "z": "cbb28df7.1359",
     "wires": [
       []
     ]
   },
   {
-    "id": "5e6b6675.fc5a18",
+    "id": "c0cbee48.6a5f9",
     "type": "comment",
     "name": "TODO: Delete topology from AAI",
     "info": "",
     "comments": "",
-    "x": 782.8334770202637,
-    "y": 440.0001859664917,
-    "z": "f60ccc0b.2e9e5",
+    "x": 817.3334274291992,
+    "y": 429.0001735687256,
+    "z": "cbb28df7.1359",
     "wires": []
   },
   {
-    "id": "bf8e19f1.7f5908",
+    "id": "d3c03070.16287",
     "type": "switchNode",
     "name": "switch aai-event-trigger",
     "xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 459.05566787719727,
-    "y": 344.2222309112549,
-    "z": "f60ccc0b.2e9e5",
+    "x": 465.5555648803711,
+    "y": 345.2222261428833,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "e714f114.a841a",
-        "47ba392d.437028"
+        "3492b641.0dfbba",
+        "668a1af1.719b34"
       ]
     ]
   },
   {
-    "id": "412d4a4c.5ea2f4",
+    "id": "6bfaf616.869108",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 842.8338432312012,
-    "y": 204.11124992370605,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1267.333755493164,
+    "y": 270.1112537384033,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "52b0fb73.694034",
-        "b992a9e2.abb498"
+        "c706e157.72486",
+        "4130ca8.c1efa34"
       ]
     ]
   },
   {
-    "id": "bf4a7e8b.e2772",
+    "id": "f4c114b8.d66028",
     "type": "execute",
     "name": "execute RestApiCallNode Get token",
     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
     "comments": "",
     "outputs": 1,
-    "x": 1120.4932975769043,
-    "y": 160.03050470352173,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1523.993263244629,
+    "y": 132.0305051803589,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "cbcc146a.b18a48",
-        "934e7ef4.942bd"
+        "fafa0167.57f14",
+        "c8836a7f.1ba7f8"
       ]
     ]
   },
   {
-    "id": "cbcc146a.b18a48",
+    "id": "fafa0167.57f14",
     "type": "success",
     "name": "success",
     "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1355.4932975769043,
-    "y": 138.03050470352173,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1758.993263244629,
+    "y": 110.03050518035889,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "9ebe20af.228e5"
+        "bd59ffd7.cdf9"
       ]
     ]
   },
   {
-    "id": "934e7ef4.942bd",
+    "id": "c8836a7f.1ba7f8",
     "type": "failure",
     "name": "failure",
     "xml": "<outcome value='failure'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1347.7432975769043,
-    "y": 191.67338800430298,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1751.243263244629,
+    "y": 163.67338848114014,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "fe461c21.f9128"
+        "8505bfec.1c327"
       ]
     ]
   },
   {
-    "id": "9ebe20af.228e5",
+    "id": "bd59ffd7.cdf9",
     "type": "set",
     "name": "set token-id",
     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
     "comments": "",
-    "x": 1509.4932975769043,
-    "y": 139.03050470352173,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1912.993263244629,
+    "y": 111.03050518035889,
+    "z": "cbb28df7.1359",
     "wires": []
   },
   {
-    "id": "52b0fb73.694034",
+    "id": "c706e157.72486",
     "type": "execute",
     "name": "execute RestApiCallNode Get Topology",
     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"topology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
     "comments": "",
     "outputs": 1,
-    "x": 1123.8267250061035,
-    "y": 253.73424243927002,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1527.3266906738281,
+    "y": 225.73424291610718,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "bf8dd5a2.3ec108",
-        "4e2f04da.b5496c"
+        "87479d00.dc1c9",
+        "c2d07026.26d52"
       ]
     ]
   },
   {
-    "id": "bf8dd5a2.3ec108",
+    "id": "87479d00.dc1c9",
     "type": "success",
     "name": "success",
     "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1382.3820571899414,
-    "y": 231.734224319458,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1785.882022857666,
+    "y": 203.73422479629517,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "9692e7a9.a7ad78"
+        "3aa58504.f6229a"
       ]
     ]
   },
   {
-    "id": "9692e7a9.a7ad78",
+    "id": "3aa58504.f6229a",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "comments": "",
     "outputs": 1,
-    "x": 1557.937587738037,
-    "y": 229.40094661712646,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1961.4375534057617,
+    "y": 201.40094709396362,
+    "z": "cbb28df7.1359",
     "wires": [
       []
     ]
   },
   {
-    "id": "1548c97d.137267",
+    "id": "dca7d6ac.f501f8",
     "type": "returnFailure",
     "name": "return failure",
     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
     "comments": "",
-    "x": 1566.1598625183105,
-    "y": 303.62306022644043,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1969.6598281860352,
+    "y": 275.6230607032776,
+    "z": "cbb28df7.1359",
     "wires": []
   },
   {
-    "id": "4e2f04da.b5496c",
+    "id": "c2d07026.26d52",
     "type": "failure",
     "name": "failure",
     "xml": "<outcome value='failure'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1387.8265419006348,
-    "y": 302.84528970718384,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1791.3265075683594,
+    "y": 274.845290184021,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "1548c97d.137267"
+        "dca7d6ac.f501f8"
       ]
     ]
   },
   {
-    "id": "773b4a80.972f64",
+    "id": "7cae77af.f5b818",
     "type": "dgstart",
     "name": "DGSTART",
     "outputs": 1,
-    "x": 99.50000381469727,
-    "y": 84.00000476837158,
-    "z": "f60ccc0b.2e9e5",
+    "x": 105.9999008178711,
+    "y": 85,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "6b3bf10f.0a471"
+        "b697d007.11e41"
       ]
     ]
   },
   {
-    "id": "6b3bf10f.0a471",
+    "id": "b697d007.11e41",
     "type": "service-logic",
     "name": "DataChange ${project.version}",
     "module": "DataChange",
     "comments": "",
     "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'>",
     "outputs": 1,
-    "x": 237.6111297607422,
-    "y": 125.44446611404419,
-    "z": "f60ccc0b.2e9e5",
+    "x": 244.11102676391602,
+    "y": 126.44446134567261,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "34347376.ce668c"
+        "49de6de0.6f78a4"
       ]
     ]
   },
   {
-    "id": "34347376.ce668c",
+    "id": "49de6de0.6f78a4",
     "type": "method",
     "name": "method esr-thirdparty-sdnc-discovery",
     "xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 334.05569076538086,
-    "y": 236.22224712371826,
-    "z": "f60ccc0b.2e9e5",
+    "x": 340.5555877685547,
+    "y": 237.22224235534668,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "1ded1b72.af18c5"
+        "5f1e0612.f09808"
       ]
     ]
   },
   {
-    "id": "1ded1b72.af18c5",
+    "id": "5f1e0612.f09808",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 242.2779197692871,
-    "y": 345.1112251281738,
-    "z": "f60ccc0b.2e9e5",
+    "x": 248.77781677246094,
+    "y": 346.11122035980225,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "bf8e19f1.7f5908"
+        "d3c03070.16287"
       ]
     ]
   },
   {
-    "id": "b992a9e2.abb498",
+    "id": "4130ca8.c1efa34",
     "type": "for",
     "name": "for each Network",
     "xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 1055.9814949035645,
-    "y": 381.22218132019043,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1459.481460571289,
+    "y": 353.2221817970276,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "d00ff672.d0b048"
+        "5ae402a2.fe5ffc"
       ]
     ]
   },
   {
-    "id": "d00ff672.d0b048",
+    "id": "5ae402a2.fe5ffc",
     "type": "block",
     "name": "block",
     "xml": "<block>\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 1245.9814567565918,
-    "y": 388.99997425079346,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1649.4814224243164,
+    "y": 360.9999747276306,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "ba2cdcd.67eab2",
-        "b9e492ff.96a56"
+        "7d9ae4c3.21708c",
+        "f67aa4a3.311fc8"
       ]
     ]
   },
   {
-    "id": "ba2cdcd.67eab2",
+    "id": "7d9ae4c3.21708c",
     "type": "call",
     "name": "call update-network-to-aai",
     "xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 1499.3148784637451,
-    "y": 452.3333444595337,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1902.8148441314697,
+    "y": 424.33334493637085,
+    "z": "cbb28df7.1359",
     "wires": [
       []
     ]
   },
   {
-    "id": "b9e492ff.96a56",
+    "id": "f67aa4a3.311fc8",
     "type": "set",
     "name": "set network",
     "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",
     "comments": "",
-    "x": 1451.5369987487793,
-    "y": 370.1110887527466,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1855.036964416504,
+    "y": 342.11108922958374,
+    "z": "cbb28df7.1359",
     "wires": []
   },
   {
-    "id": "fe461c21.f9128",
+    "id": "8505bfec.1c327",
     "type": "block",
     "name": "block",
     "xml": "<block>\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 1509.3146934509277,
-    "y": 186.77776718139648,
-    "z": "f60ccc0b.2e9e5",
+    "x": 1912.8146591186523,
+    "y": 158.77776765823364,
+    "z": "cbb28df7.1359",
     "wires": [
       []
     ]
   },
   {
-    "id": "12e3cffc.36ff4",
+    "id": "27eaeed1.46c512",
     "type": "comment",
     "name": "Do Nothing",
     "info": "",
     "comments": "",
-    "x": 1644.8702672322588,
-    "y": 185.66664293077258,
-    "z": "f60ccc0b.2e9e5",
+    "x": 2048.3702328999834,
+    "y": 157.66664340760974,
+    "z": "cbb28df7.1359",
+    "wires": []
+  },
+  {
+    "id": "416dcc31.e9a444",
+    "type": "switchNode",
+    "name": "switch type",
+    "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 948.0001487731934,
+    "y": 279.00003147125244,
+    "z": "cbb28df7.1359",
+    "wires": [
+      [
+        "7de88c94.fa0ca4",
+        "8ee217f7.3b1bd8"
+      ]
+    ]
+  },
+  {
+    "id": "f2d65f4a.d687",
+    "type": "block",
+    "name": "block",
+    "xml": "<block>\n",
+    "atomic": "false",
+    "comments": "",
+    "outputs": 1,
+    "x": 802.9999847412109,
+    "y": 277.00002002716064,
+    "z": "cbb28df7.1359",
+    "wires": [
+      [
+        "416dcc31.e9a444"
+      ]
+    ]
+  },
+  {
+    "id": "7de88c94.fa0ca4",
+    "type": "other",
+    "name": "SOTN",
+    "xml": "<outcome value='SOTN'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1101.9999313354492,
+    "y": 235.00000190734863,
+    "z": "cbb28df7.1359",
+    "wires": [
+      [
+        "6bfaf616.869108"
+      ]
+    ]
+  },
+  {
+    "id": "8ee217f7.3b1bd8",
+    "type": "other",
+    "name": "other",
+    "xml": "<outcome value='Other'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1098.9999313354492,
+    "y": 359.00000953674316,
+    "z": "cbb28df7.1359",
+    "wires": [
+      [
+        "c0794a5f.727638"
+      ]
+    ]
+  },
+  {
+    "id": "c0794a5f.727638",
+    "type": "returnFailure",
+    "name": "return failure",
+    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unsupported type = ' + $prop.sdncRestApi.type`\" />\n\n",
+    "comments": "",
+    "x": 1247.7726364135742,
+    "y": 358.43917751312256,
+    "z": "cbb28df7.1359",
     "wires": []
   }
 ]
index 23c13fe..4212c38 100644 (file)
@@ -1 +1,408 @@
-[{"id":"c4dfa871.acfb38","type":"dgstart","name":"DGSTART","outputs":1,"x":131,"y":100,"z":"b1682cba.152","wires":[["b06bc6e2.9ba258"]]},{"id":"b06bc6e2.9ba258","type":"service-logic","name":"DataChange ${project.version}","module":"DataChange","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='DataChange' version='${project.version}'>","outputs":1,"x":275,"y":213,"z":"b1682cba.152","wires":[["94182378.e4944"]]},{"id":"94182378.e4944","type":"method","name":"method esr-thirdparty-sdnc-of-zte","xml":"<method rpc='esr-thirdparty-sdnc-of-zte' mode='sync'>\n","comments":"","outputs":1,"x":200,"y":327,"z":"b1682cba.152","wires":[[]]}]
\ No newline at end of file
+[\r
+    {\r
+        "id": "78797449.a69d64", \r
+        "type": "dgstart", \r
+        "name": "DGSTART", \r
+        "outputs": 1, \r
+        "x": 95, \r
+        "y": 72, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "77d260.33eeb5a"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "77d260.33eeb5a", \r
+        "type": "service-logic", \r
+        "name": "DataChange ${project.version}", \r
+        "module": "DataChange", \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='DataChange' version='${project.version}'>", \r
+        "outputs": 1, \r
+        "x": 239, \r
+        "y": 185, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "63d24477.5e1d24"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "63d24477.5e1d24", \r
+        "type": "method", \r
+        "name": "method esr-thirdparty-sdnc-of-zte", \r
+        "xml": "<method rpc='esr-thirdparty-sdnc-of-zte' mode='sync'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 164, \r
+        "y": 299, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "f10c2099.6d37a"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "f10c2099.6d37a", \r
+        "type": "block", \r
+        "name": "block : atomic", \r
+        "xml": "<block atomic='true'>", \r
+        "atomic": "true", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 93, \r
+        "y": 433, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "c6e14b97.61ebb8", \r
+                "336b2c1.b23ca54", \r
+                "ebdf7595.352788", \r
+                "bd214a4f.a0427"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "c6e14b97.61ebb8", \r
+        "type": "call", \r
+        "name": "call validate-esr-thirdparty-sdnc-input", \r
+        "xml": "<call module='DataChange' rpc='validate-esr-thirdparty-sdnc-input' mode='sync' >\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 451, \r
+        "y": 368, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [ ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "336b2c1.b23ca54", \r
+        "type": "for", \r
+        "name": "for 0..key-data_length", \r
+        "xml": "<for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 354, \r
+        "y": 438, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "75c90043.ea9e58"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "75c90043.ea9e58", \r
+        "type": "block", \r
+        "name": "block", \r
+        "xml": "<block>\n", \r
+        "atomic": "false", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 545, \r
+        "y": 439, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "128f1b66.00dc0d", \r
+                "c1d27f5c.c264f8", \r
+                "1a08949.79fd66b", \r
+                "8cc1f05e.92f468", \r
+                "25639564.010e22", \r
+                "7b8ba016.fbb3e8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "128f1b66.00dc0d", \r
+        "type": "switchNode", \r
+        "name": "switch service-url", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'service-url'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 754, \r
+        "y": 370, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "a2c28074.c9e3a8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "c1d27f5c.c264f8", \r
+        "type": "switchNode", \r
+        "name": "switch user-name", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 754, \r
+        "y": 433, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "1403e272.365546"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "1a08949.79fd66b", \r
+        "type": "switchNode", \r
+        "name": "switch password", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'password'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 750, \r
+        "y": 492, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "ad2ddd93.50432"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "8cc1f05e.92f468", \r
+        "type": "switchNode", \r
+        "name": "switch esr-system-info-id", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'esr-system-info-id'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 777, \r
+        "y": 555, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "e0b54647.aef0b8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "25639564.010e22", \r
+        "type": "switchNode", \r
+        "name": "switch thirdparty-sdnc-id", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'thirdparty-sdnc-id'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 776, \r
+        "y": 616, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "ec3c7d9e.1913d8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "7b8ba016.fbb3e8", \r
+        "type": "switchNode", \r
+        "name": "switch type", \r
+        "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'type'`\">\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 735, \r
+        "y": 683, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "10575d8e.fe0d6a"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "a2c28074.c9e3a8", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 973, \r
+        "y": 370, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "767b34d1.0a080c"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "1403e272.365546", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 972, \r
+        "y": 432, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "92e73df5.564cf"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "ad2ddd93.50432", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 972, \r
+        "y": 491, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "9fc08956.e0f9c"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "e0b54647.aef0b8", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 972, \r
+        "y": 555, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "1343e358.22771d"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "ec3c7d9e.1913d8", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 969, \r
+        "y": 616, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "223f6129.11e8ee"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "10575d8e.fe0d6a", \r
+        "type": "outcomeTrue", \r
+        "name": "true", \r
+        "xml": "<outcome value='true'>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 968, \r
+        "y": 682, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [\r
+                "a24c3d6c.c679f8"\r
+            ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "767b34d1.0a080c", \r
+        "type": "set", \r
+        "name": "set service-url", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.url' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1151, \r
+        "y": 370, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "92e73df5.564cf", \r
+        "type": "set", \r
+        "name": "set user", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.user' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1151, \r
+        "y": 432, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "9fc08956.e0f9c", \r
+        "type": "set", \r
+        "name": "set password", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.password' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1152, \r
+        "y": 491, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "1343e358.22771d", \r
+        "type": "set", \r
+        "name": "set system-info-id", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.system-info-id' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1150, \r
+        "y": 555, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "223f6129.11e8ee", \r
+        "type": "set", \r
+        "name": "set thirdparty-sdnc-id", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.thirdpartySdnc.id' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1148, \r
+        "y": 616, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "a24c3d6c.c679f8", \r
+        "type": "set", \r
+        "name": "set type", \r
+        "xml": "<set>\n<parameter name='zte.prop.sdncRestApi.type' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n", \r
+        "comments": "", \r
+        "x": 1148, \r
+        "y": 682, \r
+        "z": "eab52334.be231", \r
+        "wires": [ ]\r
+    }, \r
+    {\r
+        "id": "ebdf7595.352788", \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/zte.svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"data-change-notification\"/>\n<parameter name=\"field3\" value=\"Config\"/>\n<parameter name=\"field4\" value=\"`service-url`\"/>\n<parameter name=\"field5\" value=\"`$zte.prop.sdncRestApi.thirdpartySdnc.url`\"/>\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 304, \r
+        "y": 525, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [ ]\r
+        ]\r
+    }, \r
+    {\r
+        "id": "bd214a4f.a0427", \r
+        "type": "call", \r
+        "name": "call esr-thirdparty-sdnc-discovery-of-zte", \r
+        "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync' >\n", \r
+        "comments": "", \r
+        "outputs": 1, \r
+        "x": 395, \r
+        "y": 615, \r
+        "z": "eab52334.be231", \r
+        "wires": [\r
+            [ ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file
index 94cd265..2f759b4 100644 (file)
@@ -1,20 +1,20 @@
 [
   {
-    "id": "3645100d.93b1e",
+    "id": "49a378ca.1b3478",
     "type": "dgstart",
     "name": "DGSTART",
     "outputs": 1,
-    "x": 131,
-    "y": 57,
-    "z": "f5f8cf31.a0ec1",
+    "x": 121,
+    "y": 56,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "a67dda3b.aa6388"
+        "b3ec7247.15b52"
       ]
     ]
   },
   {
-    "id": "a67dda3b.aa6388",
+    "id": "b3ec7247.15b52",
     "type": "service-logic",
     "name": "DataChange ${project.version}",
     "module": "DataChange",
     "comments": "",
     "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'>",
     "outputs": 1,
-    "x": 317.1111488342285,
-    "y": 161.44447135925293,
-    "z": "f5f8cf31.a0ec1",
+    "x": 307.1111488342285,
+    "y": 160.44447135925293,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "fc54766d.ffb9e8"
+        "7535c6a7.f3b5e8"
       ]
     ]
   },
   {
-    "id": "fc54766d.ffb9e8",
+    "id": "7535c6a7.f3b5e8",
     "type": "method",
     "name": "method esr-thirdparty-sdnc",
     "xml": "<method rpc='esr-thirdparty-sdnc' mode='sync'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 314.5556983947754,
-    "y": 325.2222566604614,
-    "z": "f5f8cf31.a0ec1",
+    "x": 304.5556983947754,
+    "y": 324.2222566604614,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "e6c2b0ea.17014"
+        "1400578.235a6a9"
       ]
     ]
   },
   {
-    "id": "e6c2b0ea.17014",
+    "id": "1400578.235a6a9",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 269.7779655456543,
-    "y": 460.1113119125366,
-    "z": "f5f8cf31.a0ec1",
+    "x": 259.7779655456543,
+    "y": 459.1113119125366,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "9897db0a.e34dc8",
-        "9787862d.18f5b8",
-        "195661d4.a9c59e",
-        "8e1fe65e.d69f18"
+        "25a04fbf.4bd09",
+        "8d1e2cc2.dc3cf",
+        "2d8a913.fdd0d6e",
+        "77f3068a.362d28"
       ]
     ]
   },
   {
-    "id": "195661d4.a9c59e",
+    "id": "2d8a913.fdd0d6e",
     "type": "record",
     "name": "record",
     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"data-change-notification\"/>\n<parameter name=\"field3\" value=\"Config\"/>\n<parameter name=\"field4\" value=\"`service-url`\"/>\n<parameter name=\"field5\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url`\"/>",
     "comments": "",
     "outputs": 1,
-    "x": 559,
-    "y": 531,
-    "z": "f5f8cf31.a0ec1",
+    "x": 549,
+    "y": 530,
+    "z": "cbb28df7.1359",
     "wires": [
       []
     ]
   },
   {
-    "id": "9897db0a.e34dc8",
+    "id": "25a04fbf.4bd09",
     "type": "call",
     "name": "call validate-esr-thirdparty-sdnc-input",
     "xml": "<call module='DataChange' rpc='validate-esr-thirdparty-sdnc-input' mode='sync' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 672.7776336669922,
-    "y": 393.9998035430908,
-    "z": "f5f8cf31.a0ec1",
+    "x": 662.7776336669922,
+    "y": 392.9998035430908,
+    "z": "cbb28df7.1359",
     "wires": [
       []
     ]
   },
   {
-    "id": "9787862d.18f5b8",
+    "id": "8d1e2cc2.dc3cf",
     "type": "for",
     "name": "for 0..key-data_length",
     "xml": "<for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 607.4441070556641,
-    "y": 476.19078826904297,
-    "z": "f5f8cf31.a0ec1",
+    "x": 597.4441070556641,
+    "y": 475.19078826904297,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "64de51c2.171a2"
+        "8470a3b8.c68bb"
       ]
     ]
   },
   {
-    "id": "64de51c2.171a2",
+    "id": "8470a3b8.c68bb",
     "type": "block",
     "name": "block",
     "xml": "<block>\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 779.3335723876953,
-    "y": 475.4130334854126,
-    "z": "f5f8cf31.a0ec1",
+    "x": 769.3335723876953,
+    "y": 474.4130334854126,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "6c37c93a.5a9338",
-        "f8e49db.93b206",
-        "b38e3659.a3e968",
-        "abe36d34.993f2",
-        "ab9e3d95.0ab8"
+        "2e5df795.078a08",
+        "6a42fb20.98a2b4",
+        "554fdd88.9dce84",
+        "a2362617.a38ac8",
+        "bbbe7cd.1d5138",
+        "2a8b4597.cff4ba",
+        "884a9190.06299"
       ]
     ]
   },
   {
-    "id": "6c37c93a.5a9338",
+    "id": "2e5df795.078a08",
     "type": "switchNode",
     "name": "switch service-url",
     "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'service-url'`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 991.5552749633789,
-    "y": 385.5241861343384,
-    "z": "f5f8cf31.a0ec1",
+    "x": 981.5552749633789,
+    "y": 384.5241861343384,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "ef74e18a.347bb"
+        "1b6eea6.229c916"
       ]
     ]
   },
   {
-    "id": "ef74e18a.347bb",
+    "id": "1b6eea6.229c916",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1155.5553970336914,
-    "y": 384.5554189682007,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1145.5553970336914,
+    "y": 383.5554189682007,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "ce02826f.96607"
+        "fd22b9a9.c98888"
       ]
     ]
   },
   {
-    "id": "ce02826f.96607",
+    "id": "fd22b9a9.c98888",
     "type": "set",
     "name": "set service-url",
     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n",
     "comments": "",
-    "x": 1309.5554885864258,
-    "y": 384.1554126739502,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1299.5554885864258,
+    "y": 383.1554126739502,
+    "z": "cbb28df7.1359",
     "wires": []
   },
   {
-    "id": "f8e49db.93b206",
+    "id": "6a42fb20.98a2b4",
     "type": "switchNode",
     "name": "switch user-name",
     "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 988.8450202941895,
-    "y": 454.7712459564209,
-    "z": "f5f8cf31.a0ec1",
+    "x": 978.8450202941895,
+    "y": 453.7712459564209,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "b1f04d56.2de33"
+        "7cf30c0f.3d4904"
       ]
     ]
   },
   {
-    "id": "b1f04d56.2de33",
+    "id": "7cf30c0f.3d4904",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1157.8450088500977,
-    "y": 452.8024892807007,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1147.8450088500977,
+    "y": 451.8024892807007,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "393fe106.5ce84e"
+        "9353bb00.5c78e8"
       ]
     ]
   },
   {
-    "id": "393fe106.5ce84e",
+    "id": "9353bb00.5c78e8",
     "type": "set",
     "name": "set user",
     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n",
     "comments": "",
-    "x": 1293.8451614379883,
-    "y": 452.40248012542725,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1283.8451614379883,
+    "y": 451.40248012542725,
+    "z": "cbb28df7.1359",
     "wires": []
   },
   {
-    "id": "b38e3659.a3e968",
+    "id": "554fdd88.9dce84",
     "type": "switchNode",
     "name": "switch password",
     "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'password'`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 986.6228523254395,
-    "y": 520.3267955780029,
-    "z": "f5f8cf31.a0ec1",
+    "x": 976.6228523254395,
+    "y": 519.3267955780029,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "31f8b0b.92d9a5"
+        "a74025be.af1718"
       ]
     ]
   },
   {
-    "id": "31f8b0b.92d9a5",
+    "id": "a74025be.af1718",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1158.6228103637695,
-    "y": 520.3580408096313,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1148.6228103637695,
+    "y": 519.3580408096313,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "4275b621.ba48f8"
+        "dba0cf08.2438c"
       ]
     ]
   },
   {
-    "id": "4275b621.ba48f8",
+    "id": "dba0cf08.2438c",
     "type": "set",
     "name": "set password",
     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n",
     "comments": "",
-    "x": 1313.6230545043945,
-    "y": 518.9580202102661,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1303.6230545043945,
+    "y": 517.9580202102661,
+    "z": "cbb28df7.1359",
     "wires": []
   },
   {
-    "id": "8e1fe65e.d69f18",
+    "id": "77f3068a.362d28",
     "type": "call",
     "name": "call esr-thirdparty-sdnc-discovery",
     "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-discovery' mode='sync' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 630.4377593994141,
-    "y": 602.5490007400513,
-    "z": "f5f8cf31.a0ec1",
+    "x": 620.4377593994141,
+    "y": 601.5490007400513,
+    "z": "cbb28df7.1359",
     "wires": [
       []
     ]
   },
   {
-    "id": "abe36d34.993f2",
+    "id": "a2362617.a38ac8",
     "type": "switchNode",
     "name": "switch esr-system-info-id",
     "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'esr-system-info-id'`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 1008.4441528320312,
-    "y": 574.3331909179688,
-    "z": "f5f8cf31.a0ec1",
+    "x": 998.4441528320312,
+    "y": 573.3331909179688,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "c47d5b3c.ec2b98"
+        "5cab102b.8494d"
       ]
     ]
   },
   {
-    "id": "c47d5b3c.ec2b98",
+    "id": "5cab102b.8494d",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1183.4441375732422,
-    "y": 572.3643522262573,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1173.4441375732422,
+    "y": 571.3643522262573,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "b46d33d6.3f8df"
+        "71f47e13.cb288"
       ]
     ]
   },
   {
-    "id": "b46d33d6.3f8df",
+    "id": "71f47e13.cb288",
     "type": "set",
     "name": "set esr-system-info-id",
     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.system-info-id' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n",
     "comments": "",
-    "x": 1349.444107055664,
-    "y": 573.964376449585,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1339.444107055664,
+    "y": 572.964376449585,
+    "z": "cbb28df7.1359",
     "wires": []
   },
   {
-    "id": "ab9e3d95.0ab8",
+    "id": "bbbe7cd.1d5138",
     "type": "switchNode",
     "name": "switch thirdparty-sdnc-id",
     "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'thirdparty-sdnc-id'`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 1003,
-    "y": 619,
-    "z": "f5f8cf31.a0ec1",
+    "x": 993,
+    "y": 618,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "6a0992e2.98429c"
+        "750fb82f.3c8b28"
       ]
     ]
   },
   {
-    "id": "6a0992e2.98429c",
+    "id": "750fb82f.3c8b28",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1177.999984741211,
-    "y": 617.0311613082886,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1167.999984741211,
+    "y": 616.0311613082886,
+    "z": "cbb28df7.1359",
     "wires": [
       [
-        "75b4346a.e3888c"
+        "6331f258.3f8f8c"
       ]
     ]
   },
   {
-    "id": "75b4346a.e3888c",
+    "id": "6331f258.3f8f8c",
     "type": "set",
     "name": "set thirdparty-sdnc-id",
     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.id' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n",
     "comments": "",
-    "x": 1343.9999542236328,
-    "y": 618.6311855316162,
-    "z": "f5f8cf31.a0ec1",
+    "x": 1333.9999542236328,
+    "y": 617.6311855316162,
+    "z": "cbb28df7.1359",
+    "wires": []
+  },
+  {
+    "id": "2a8b4597.cff4ba",
+    "type": "switchNode",
+    "name": "switch type",
+    "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'type'`\">\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 943.0000305175781,
+    "y": 667.0000200271606,
+    "z": "cbb28df7.1359",
+    "wires": [
+      [
+        "cc8e7403.36ff88"
+      ]
+    ]
+  },
+  {
+    "id": "cc8e7403.36ff88",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1088.0000343322754,
+    "y": 666.0311889648438,
+    "z": "cbb28df7.1359",
+    "wires": [
+      [
+        "d672d4f.959ba28"
+      ]
+    ]
+  },
+  {
+    "id": "d672d4f.959ba28",
+    "type": "set",
+    "name": "set type",
+    "xml": "<set>\n<parameter name='prop.sdncRestApi.type' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n",
+    "comments": "",
+    "x": 1220.0000381469727,
+    "y": 665.6312046051025,
+    "z": "cbb28df7.1359",
+    "wires": []
+  },
+  {
+    "id": "884a9190.06299",
+    "type": "switchNode",
+    "name": "switch vendor",
+    "xml": "<switch test=\"`$data-change-notification-input.key-data[$idx].key-name == 'vendor'`\">\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 944.0000267028809,
+    "y": 723.0000219345093,
+    "z": "cbb28df7.1359",
+    "wires": [
+      [
+        "874c4c0f.cf42b"
+      ]
+    ]
+  },
+  {
+    "id": "874c4c0f.cf42b",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1089.0000305175781,
+    "y": 722.0311908721924,
+    "z": "cbb28df7.1359",
+    "wires": [
+      [
+        "84239301.8f5d"
+      ]
+    ]
+  },
+  {
+    "id": "84239301.8f5d",
+    "type": "set",
+    "name": "set vendor",
+    "xml": "<set>\n<parameter name='prop.sdncRestApi.vendor' value='`$data-change-notification-input.key-data[$idx].key-value`' />\n",
+    "comments": "",
+    "x": 1221.0000343322754,
+    "y": 721.6312065124512,
+    "z": "cbb28df7.1359",
     "wires": []
   }
 ]
index 37211fe..1901fd0 100644 (file)
@@ -3,4 +3,5 @@ DataChange esr-thirdparty-sdnc ${project.version} sync
 DataChange esr-thirdparty-sdnc-of-zte ${project.version} sync
 DataChange validate-esr-thirdparty-sdnc-input ${project.version} sync
 DataChange esr-thirdparty-sdnc-discovery ${project.version} sync
+DataChange esr-thirdparty-sdnc-discovery-of-zte ${project.version} sync
 DataChange update-network-to-aai ${project.version} sync
index 8f05c4a..529b849 100644 (file)
@@ -1,20 +1,41 @@
-<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'><method rpc='data-change-notification' mode='sync'>\r
-<block atomic="true">\r
-<switch test='`$data-change-notification-input.aai-node-type`'>\r
-<outcome value='esr-thirdparty-sdnc'>\r
-<for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >\r
-<switch test="`$data-change-notification-input.key-data[$idx].key-value == 'ZTE'`">\r
-<outcome value='true'>\r
-<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\r
-</call></outcome><outcome value='false'>\r
-<block atomic="true">\r
-<call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync' >\r
-</call></block></outcome></switch></for></outcome><outcome value='Other'>\r
-<return status='failure'>\r
-       <parameter name='ack-final' value='Y'/>\r
-       <parameter name="error-code" value="500" />\r
-    <parameter name="error-message" value="AAI node type not supported" /></return></outcome></switch><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></block></method></service-logic>
\ No newline at end of file
+<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='DataChange' version='${project.version}'>\r
+  <method rpc='data-change-notification' mode='sync'> \r
+    <block atomic="true"> \r
+      <switch test='`$data-change-notification-input.aai-node-type`'> \r
+        <outcome value='esr-thirdparty-sdnc'> \r
+          <for index='idx' start='0' end='`$data-change-notification-input.key-data_length`'> \r
+            <switch test='`$data-change-notification-input.key-data[$idx].key-value == 'ZTE'`'> \r
+              <outcome value='true'> \r
+                <block atomic="true"> \r
+                  <set> \r
+                    <parameter name='zte.prop.sdncRestApi.vendor' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
+                  </set>\r
+                  <call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync'></call>\r
+                </block>\r
+              </outcome>\r
+              <outcome value='false'> \r
+                <block atomic="true"> \r
+                  <call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync'></call>\r
+                </block>\r
+              </outcome>\r
+            </switch>\r
+          </for>\r
+        </outcome>\r
+        <outcome value='Other'> \r
+          <return status='failure'> \r
+            <parameter name='ack-final' value='Y'/>  \r
+            <parameter name="error-code" value="500"/>  \r
+            <parameter name="error-message" value="AAI node type not supported"/>\r
+          </return>\r
+        </outcome>\r
+      </switch>\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/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery-of-zte.xml b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery-of-zte.xml
new file mode 100644 (file)
index 0000000..2cc77da
--- /dev/null
@@ -0,0 +1,53 @@
+<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='DataChange' version='${project.version}'>\r
+  <method rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync'> \r
+    <block atomic="true">\r
+      <switch test='`$data-change-notification-input.aai-event-trigger`'> \r
+        <outcome value='Update'> \r
+          <block> \r
+            <switch test='`$prop.sdncRestApi.type`'> \r
+              <outcome value='SOTN'> \r
+                <block atomic="true">\r
+                  <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest'> \r
+                    <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/getztetopotemplate.json'`"/>  \r
+                    <parameter name="restapiUrl" value="`$zte.prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-Topology:get-topology-details'`"/>  \r
+                    <parameter name="restapiUser" value="`$zte.prop.sdncRestApi.thirdpartySdnc.user`"/>  \r
+                    <parameter name="restapiPassword" value="`$zte.prop.sdncRestApi.thirdpartySdnc.password`"/>  \r
+                    <parameter name="format" value="json"/>  \r
+                    <parameter name="httpMethod" value="POST"/>  \r
+                    <parameter name="responsePrefix" value="ztetopology"/>  \r
+                    <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.openecomp.zte.client.jks"/>  \r
+                    <parameter name="trustStorePassword" value="adminadmin"/>  \r
+                    <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.zte.p12"/>  \r
+                    <parameter name="keyStorePassword" value="adminadmin"/>  \r
+                    <outcome value='success'> \r
+                      <block atomic="true"/>\r
+                    </outcome>\r
+                    <outcome value='failure'> \r
+                      <return status='failure'> \r
+                        <parameter name='ack-final' value='Y'/>  \r
+                        <parameter name="error-code" value="500"/>  \r
+                        <parameter name="error-message" value="Error executing Create vpn rest api"/> \r
+                      </return>\r
+                    </outcome>\r
+                  </execute>\r
+                </block>\r
+              </outcome>\r
+              <outcome value='Other'> \r
+                <return status='failure'> \r
+                  <parameter name='ack-final' value='Y'/>  \r
+                  <parameter name="error-code" value="500"/>  \r
+                  <parameter name="error-message" value="`'Unsupported type = ' + $prop.sdncRestApi.type`"/> \r
+                </return>\r
+              </outcome>\r
+            </switch>\r
+          </block>\r
+        </outcome>\r
+        <outcome value='delete'> \r
+          <block atomic="true"/>\r
+        </outcome>\r
+      </switch>\r
+    </block>\r
+  </method>\r
+</service-logic>
\ No newline at end of file
index 3f2dc89..55c1bd3 100644 (file)
@@ -5,38 +5,51 @@
         <block atomic="true">\r
             <switch test="`$data-change-notification-input.aai-event-trigger`">\r
                 <outcome value='Update'>\r
-                    <block atomic="true">\r
-                        <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
-                            <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />\r
-                            <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
-                            <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
-                            <parameter name="format" value="json"/>\r
-                            <parameter name="httpMethod" value="get"/>\r
-                            <parameter name="responsePrefix" value="topology"/>\r
-                            <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.openecomp.client.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
-                            <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
-                            <outcome value='success'>\r
-                                <block atomic="true"></block>\r
+                    <block>\r
+                        <switch test="`$prop.sdncRestApi.type`">\r
+                            <outcome value='SOTN'>\r
+                                <block atomic="true">\r
+                                    <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
+                                        <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />\r
+                                        <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />\r
+                                        <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />\r
+                                        <parameter name="format" value="json"/>\r
+                                        <parameter name="httpMethod" value="get"/>\r
+                                        <parameter name="responsePrefix" value="topology"/>\r
+                                        <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.openecomp.client.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
+                                        <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
+                                        <outcome value='success'>\r
+                                            <block atomic="true"></block>\r
+                                        </outcome>\r
+                                        <outcome value='failure'>\r
+                                            <return status='failure'>\r
+                                                <parameter name='ack-final' value='Y'/>\r
+                                                <parameter name="error-code" value="500" />\r
+                                                <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                            </return>\r
+                                        </outcome>\r
+                                    </execute>\r
+                                    <for index='nidx' start='0' end='`$topology.networks.network_length`' >\r
+                                        <block>\r
+                                            <set>\r
+                                                <parameter name='network.' value='`$topology.networks.network[$nidx].`' />\r
+                                            </set>\r
+                                            <call module='DataChange' rpc='update-network-to-aai' mode='sync' ></call>\r
+                                        </block>\r
+                                    </for>\r
+                                </block>\r
                             </outcome>\r
-                            <outcome value='failure'>\r
+                            <outcome value='Other'>\r
                                 <return status='failure'>\r
                                     <parameter name='ack-final' value='Y'/>\r
                                     <parameter name="error-code" value="500" />\r
-                                    <parameter name="error-message" value="Error executing Create vpn rest api" />\r
+                                    <parameter name="error-message" value="`'Unsupported type = ' + $prop.sdncRestApi.type`" />\r
                                 </return>\r
                             </outcome>\r
-                        </execute>\r
-                        <for index='nidx' start='0' end='`$topology.networks.network_length`' >\r
-                            <block>\r
-                                <set>\r
-                                    <parameter name='network.' value='`$topology.networks.network[$nidx].`' />\r
-                                </set>\r
-                                <call module='DataChange' rpc='update-network-to-aai' mode='sync' ></call>\r
-                            </block>\r
-                        </for>\r
+                        </switch>\r
                     </block>\r
                 </outcome>\r
                 <outcome value='delete'>\r
index 5765a04..25fef6b 100644 (file)
@@ -1,2 +1,64 @@
-<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'><method rpc='esr-thirdparty-sdnc-of-zte' mode='sync'>
-</method></service-logic>
\ No newline at end of file
+<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='DataChange' version='${project.version}'>\r
+  <method rpc='esr-thirdparty-sdnc-of-zte' mode='sync'> \r
+    <block atomic="true">\r
+      <call module='DataChange' rpc='validate-esr-thirdparty-sdnc-input' mode='sync'></call>\r
+      <for index='idx' start='0' end='`$data-change-notification-input.key-data_length`'> \r
+        <block> \r
+          <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'service-url'`'> \r
+            <outcome value='true'> \r
+              <set> \r
+                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.url' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
+              </set>\r
+            </outcome>\r
+          </switch>\r
+          <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`'> \r
+            <outcome value='true'> \r
+              <set> \r
+                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.user' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
+              </set>\r
+            </outcome>\r
+          </switch>\r
+          <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'password'`'> \r
+            <outcome value='true'> \r
+              <set> \r
+                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.password' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
+              </set>\r
+            </outcome>\r
+          </switch>\r
+          <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'esr-system-info-id'`'> \r
+            <outcome value='true'> \r
+              <set> \r
+                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.system-info-id' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
+              </set>\r
+            </outcome>\r
+          </switch>\r
+          <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'thirdparty-sdnc-id'`'> \r
+            <outcome value='true'> \r
+              <set> \r
+                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.id' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
+              </set>\r
+            </outcome>\r
+          </switch>\r
+          <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'type'`'> \r
+            <outcome value='true'> \r
+              <set> \r
+                <parameter name='zte.prop.sdncRestApi.type' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
+              </set>\r
+            </outcome>\r
+          </switch>\r
+        </block>\r
+      </for>\r
+      <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> \r
+        <parameter name="file" value="/opt/opendaylight/current/data/log/zte.svclogic.log"/>  \r
+        <parameter name="field1" value="__TIMESTAMP__"/>  \r
+        <parameter name="field2" value="data-change-notification"/>  \r
+        <parameter name="field3" value="Config"/>  \r
+        <parameter name="field4" value="`service-url`"/>  \r
+        <parameter name="field5" value="`$zte.prop.sdncRestApi.thirdpartySdnc.url`"/> \r
+      </record>\r
+      <call module='DataChange' rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync'></call>\r
+    </block>\r
+  </method>\r
+</service-logic>
\ No newline at end of file
index edce7fb..c2e75d2 100644 (file)
                             </set>\r
                         </outcome>\r
                     </switch>\r
+                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'type'`">\r
+                        <outcome value='true'>\r
+                            <set>\r
+                                <parameter name='prop.sdncRestApi.type' value='`$data-change-notification-input.key-data[$idx].key-value`' />\r
+                            </set>\r
+                        </outcome>\r
+                    </switch>\r
+                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'vendor'`">\r
+                        <outcome value='true'>\r
+                            <set>\r
+                                <parameter name='prop.sdncRestApi.vendor' value='`$data-change-notification-input.key-data[$idx].key-value`' />\r
+                            </set>\r
+                        </outcome>\r
+                    </switch>\r
                 </block>\r
             </for>\r
             <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">\r
index 9b4c70e..0a979d1 100644 (file)
-[
-  {
-    "id": "4e8e1695.988a28",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 123.01040649414062,
-    "y": 97.77774596214294,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "3d7adacf.e37b26"
-      ]
-    ]
-  },
-  {
-    "id": "3d7adacf.e37b26",
-    "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": 204.9627685546875,
-    "y": 138.01585841178894,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "99936fad.eb5a8"
-      ]
-    ]
-  },
-  {
-    "id": "99936fad.eb5a8",
-    "type": "method",
-    "name": "network-topology-operation",
-    "xml": "<method rpc='network-topology-operation' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 184.4390411376953,
-    "y": 188.77775168418884,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "fa94a458.153ec8"
-      ]
-    ]
-  },
-  {
-    "id": "e85a20e2.1a6f",
-    "type": "comment",
-    "name": " NETWORK-TOPOLOGY-OPERATION ",
-    "info": "",
-    "comments": "",
-    "x": 517.3552627563477,
-    "y": 45.36408972740173,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "fa94a458.153ec8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 237.01043701171875,
-    "y": 261.2212293148041,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "74a7b33e.25ccac",
-        "e6a39d58.fa5d7",
-        "94b2997f.90f198",
-        "2ccd4cf4.cd1224"
-      ]
-    ]
-  },
-  {
-    "id": "74a7b33e.25ccac",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
-    "comments": "",
-    "x": 441.09381103515625,
-    "y": 1287.3138825893402,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "e6a39d58.fa5d7",
-    "type": "switchNode",
-    "name": "switch svc-action",
-    "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 463.72467041015625,
-    "y": 491.63492369651794,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "ad7b4573.ffb848",
-        "2a4dd65a.9a82ea",
-        "a50cf8ad.598a18",
-        "f1232753.705208",
-        "de92e919.3dfbf8",
-        "7130c8aa.c3e608",
-        "1591e42d.e2cabc",
-        "d1b59f6c.66aa3",
-        "3a527742.291048"
-      ]
-    ]
-  },
-  {
-    "id": "ad7b4573.ffb848",
-    "type": "other",
-    "name": "assign",
-    "xml": "<outcome value='assign'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 678.2009086608887,
-    "y": 263.92060256004333,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "341de51.f64001a"
-      ]
-    ]
-  },
-  {
-    "id": "341de51.f64001a",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 850.439079284668,
-    "y": 261.92073130607605,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "b2a344c1.b2b118"
-      ]
-    ]
-  },
-  {
-    "id": "94b2997f.90f198",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:validate-network-input",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 574.0103950500488,
-    "y": 201.77775287628174,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "2a4dd65a.9a82ea",
-    "type": "other",
-    "name": "activate",
-    "xml": "<outcome value='activate'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 681.0104484558105,
-    "y": 353.77774024009705,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "28e87a49.f59c96"
-      ]
-    ]
-  },
-  {
-    "id": "389876cb.1e467a",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1057.2486991882324,
-    "y": 430.7779223918915,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "62930298.0b2a1c",
-        "d3301b58.914a58",
-        "fb007c4b.5179"
-      ]
-    ]
-  },
-  {
-    "id": "c9165975.2c8ce8",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:network-topology-operation-activate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2328.0703353881836,
-    "y": 942.3849885463715,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "a50cf8ad.598a18",
-    "type": "other",
-    "name": "deactivate",
-    "xml": "<outcome value='deactivate'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 675.010440826416,
-    "y": 585.7777383327484,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "8e1c520d.d2576"
-      ]
-    ]
-  },
-  {
-    "id": "c28aa9c7.571d18",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1077.248664855957,
-    "y": 780.7780282497406,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "62930298.0b2a1c",
-        "9d5d0700.ed8698",
-        "fb007c4b.5179"
-      ]
-    ]
-  },
-  {
-    "id": "9d5d0700.ed8698",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:network-topology-operation-deactivate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1656.2369384765625,
-    "y": 1030.6350362300873,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "f1232753.705208",
-    "type": "other",
-    "name": "unassign",
-    "xml": "<outcome value='unassign'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 672.0104598999023,
-    "y": 837.7777879238129,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "a735954b.9ab908"
-      ]
-    ]
-  },
-  {
-    "id": "a735954b.9ab908",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 853.2486190795898,
-    "y": 838.7779099941254,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "62930298.0b2a1c",
-        "21cf404.360a8c",
-        "fb007c4b.5179"
-      ]
-    ]
-  },
-  {
-    "id": "c95f430.de215c",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:network-topology-operation-unassign",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2323.820198059082,
-    "y": 1135.8849580287933,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "de92e919.3dfbf8",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 645.0104370117188,
-    "y": 1163.77783203125,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "88ae8f90.f87f8"
-      ]
-    ]
-  },
-  {
-    "id": "88ae8f90.f87f8",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"sdnc-request-header.svc-action is a required input\" />\n",
-    "comments": "",
-    "x": 827.0104331970215,
-    "y": 1162.7778415679932,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "2ccd4cf4.cd1224",
-    "type": "set",
-    "name": "Set final indicator to Y",
-    "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
-    "comments": "",
-    "x": 460.1215057373047,
-    "y": 1246.4722211360931,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "487e294c.601868",
-    "type": "for",
-    "name": "for nidx..service-data.networks.network[]",
-    "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2192.740863800049,
-    "y": 480.53969740867615,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "d951934c.04645"
-      ]
-    ]
-  },
-  {
-    "id": "62930298.0b2a1c",
-    "type": "switchNode",
-    "name": "switch service-data.networks.network_length",
-    "xml": "<switch test='`$service-data.networks.network_length`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1470.205020904541,
-    "y": 448.8610894680023,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "4ffb7265.aead1c",
-        "e7073ffc.39cd9"
-      ]
-    ]
-  },
-  {
-    "id": "4ffb7265.aead1c",
-    "type": "other",
-    "name": "outcome Null",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1769.4548988342285,
-    "y": 447.1110875606537,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "81b94f7b.60cfe"
-      ]
-    ]
-  },
-  {
-    "id": "e7073ffc.39cd9",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1723.4549293518066,
-    "y": 480.11110854148865,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "b0120e6d.fd62b"
-      ]
-    ]
-  },
-  {
-    "id": "d951934c.04645",
-    "type": "switchNode",
-    "name": "switch networkid found",
-    "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2483.1694145202637,
-    "y": 479.789781332016,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c85e865f.6c4118"
-      ]
-    ]
-  },
-  {
-    "id": "c85e865f.6c4118",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2672.121768951416,
-    "y": 480.68251967430115,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "28d9a085.7b353"
-      ]
-    ]
-  },
-  {
-    "id": "28d9a085.7b353",
-    "type": "set",
-    "name": "set tmp.nidx and network-data",
-    "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
-    "comments": "",
-    "x": 2905.653537750244,
-    "y": 479.4325273036957,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "5286bff0.28cfd",
-    "type": "comment",
-    "name": "Find the index to service data for this network - save id in tmp.nidx, save service-data",
-    "info": "",
-    "comments": "",
-    "x": 1649.5660438537598,
-    "y": 414.1111009120941,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "94a02e8f.672a9",
-    "type": "comment",
-    "name": "service-data  will not be stored until we have a network-id",
-    "info": "",
-    "comments": "",
-    "x": 1188.6772003173828,
-    "y": 42.99999976158142,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "81b94f7b.60cfe",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
-    "comments": "",
-    "x": 1961.2324562072754,
-    "y": 445.0000855922699,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "b0120e6d.fd62b",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1890.724895477295,
-    "y": 479.66568541526794,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "487e294c.601868",
-        "8b184c42.8ea"
-      ]
-    ]
-  },
-  {
-    "id": "8b184c42.8ea",
-    "type": "switchNode",
-    "name": "switch tmp.nidx ",
-    "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2119.792407989502,
-    "y": 530.022896528244,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "6f1188e.df71378",
-        "4941aa7.ba31254"
-      ]
-    ]
-  },
-  {
-    "id": "5f4d6f01.eacb6",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
-    "comments": "",
-    "x": 2472.6493911743164,
-    "y": 525.7371385097504,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "6f1188e.df71378",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2291.2209434509277,
-    "y": 528.59428191185,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "5f4d6f01.eacb6"
-      ]
-    ]
-  },
-  {
-    "id": "d3301b58.914a58",
-    "type": "switchNode",
-    "name": "switch network-level-oper-status",
-    "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1541.0385665893555,
-    "y": 942.3363893032074,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "df23fde1.eee29",
-        "e3ffbfd1.5bf58"
-      ]
-    ]
-  },
-  {
-    "id": "df23fde1.eee29",
-    "type": "outcome",
-    "name": "outcome PendingCreate",
-    "xml": "<outcome value='PendingCreate'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1906.0385462443028,
-    "y": 942.3363740444183,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c9165975.2c8ce8"
-      ]
-    ]
-  },
-  {
-    "id": "e3ffbfd1.5bf58",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1856.0385932922363,
-    "y": 982.3364045619965,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "e72a7431.e545a8"
-      ]
-    ]
-  },
-  {
-    "id": "e72a7431.e545a8",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
-    "comments": "",
-    "x": 2026.0385932922363,
-    "y": 982.3364045619965,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "21cf404.360a8c",
-    "type": "switchNode",
-    "name": "switch network-level-oper-status",
-    "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1530.6415786743164,
-    "y": 1137.4891602993011,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "7d4ba4c2.0667bc",
-        "4d4bd64c.75d9f8",
-        "3e2015ec.34c4aa"
-      ]
-    ]
-  },
-  {
-    "id": "7d4ba4c2.0667bc",
-    "type": "outcome",
-    "name": "outcome PendingCreate",
-    "xml": "<outcome value='PendingCreate'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1890.6415481567383,
-    "y": 1137.4891908168793,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c95f430.de215c"
-      ]
-    ]
-  },
-  {
-    "id": "4d4bd64c.75d9f8",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1846.391471862793,
-    "y": 1208.9892537593842,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "7523d96d.5d1058"
-      ]
-    ]
-  },
-  {
-    "id": "7523d96d.5d1058",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Network is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
-    "comments": "",
-    "x": 2037.7248916625977,
-    "y": 1207.6558825969696,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "3e2015ec.34c4aa",
-    "type": "outcome",
-    "name": "outcome PendingDelete",
-    "xml": "<outcome value='PendingDelete'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1893.8717727661133,
-    "y": 1175.3363587856293,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c95f430.de215c"
-      ]
-    ]
-  },
-  {
-    "id": "7130c8aa.c3e608",
-    "type": "other",
-    "name": "changeassign",
-    "xml": "<outcome value='changeassign'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 683.0104789733887,
-    "y": 488.77777075767517,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "8681ccd2.61776"
-      ]
-    ]
-  },
-  {
-    "id": "8681ccd2.61776",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1055.2604179382324,
-    "y": 485.7777621746063,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "62930298.0b2a1c",
-        "755b61e1.5599c"
-      ]
-    ]
-  },
-  {
-    "id": "8551ad66.6b965",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:network-topology-operation-assign",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1824.0106010437012,
-    "y": 183.77776312828064,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "b2a344c1.b2b118",
-    "type": "switchNode",
-    "name": "switch network-level-oper-status",
-    "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1119.9786567687988,
-    "y": 121.72915434837341,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "3cdc8b88.b67114",
-        "9df378e0.5934d8",
-        "6224bc8a.6b7094",
-        "bdfd9d9f.89385"
-      ]
-    ]
-  },
-  {
-    "id": "3cdc8b88.b67114",
-    "type": "outcome",
-    "name": "outcome PendingCreate",
-    "xml": "<outcome value='PendingCreate'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1505.978702545166,
-    "y": 141.7291362285614,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "903012af.85f85"
-      ]
-    ]
-  },
-  {
-    "id": "9df378e0.5934d8",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1453.9786987304688,
-    "y": 183.72916769981384,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "8551ad66.6b965"
-      ]
-    ]
-  },
-  {
-    "id": "903012af.85f85",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Network is not in appropriate state for assign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
-    "comments": "",
-    "x": 1780.9789237976074,
-    "y": 137.72918486595154,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "bdfd9d9f.89385",
-    "type": "outcome",
-    "name": "outcome PendingDelete",
-    "xml": "<outcome value='PendingDelete'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1504.010440826416,
-    "y": 106.77775168418884,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "903012af.85f85"
-      ]
-    ]
-  },
-  {
-    "id": "6224bc8a.6b7094",
-    "type": "outcome",
-    "name": "outcome Created",
-    "xml": "<outcome value='Created'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1484.0104789733887,
-    "y": 71.77775359153748,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "903012af.85f85"
-      ]
-    ]
-  },
-  {
-    "id": "755b61e1.5599c",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:network-topology-operation-changeassign",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-changeassign' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1633.2568130493164,
-    "y": 874.2738797664642,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "c908bff.a5def4",
-    "type": "set",
-    "name": "set object-path",
-    "xml": "<set>\n<parameter name='network-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $networkId\n + '/network-data/network-topology/'` \" />\n \n",
-    "comments": "",
-    "x": 469.5113830566406,
-    "y": 1152.5287148952484,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "7e1abfb0.77caa",
-    "type": "set",
-    "name": "set networkId",
-    "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
-    "comments": "",
-    "x": 463.7970161437988,
-    "y": 1115.3858230113983,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "57827229.6b2abc",
-    "type": "set",
-    "name": "set network-level-oper-status",
-    "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n",
-    "comments": "",
-    "x": 511.7970771789551,
-    "y": 1197.9571883678436,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "fb007c4b.5179",
-    "type": "switchNode",
-    "name": "switch network-information.network-instance-group-id",
-    "xml": "<switch test='`$network-topology-operation-input.network-information.network-instance-group-id`'>\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1545.4490547180176,
-    "y": 706.2787663936615,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "9d79b615.01e948",
-        "249b5309.c2bf1c"
-      ]
-    ]
-  },
-  {
-    "id": "9d79b615.01e948",
-    "type": "other",
-    "name": "Other",
-    "xml": "<outcome value='Other'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1832.1989364624023,
-    "y": 744.4454333782196,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "6a373b7d.6814a4"
-      ]
-    ]
-  },
-  {
-    "id": "249b5309.c2bf1c",
-    "type": "other",
-    "name": "NULL",
-    "xml": "<outcome value=''>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1829.8658332824707,
-    "y": 711.4453074932098,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "a9c385b1.781fe8"
-      ]
-    ]
-  },
-  {
-    "id": "a9c385b1.781fe8",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n<parameter name='' value='' />\n",
-    "comments": "",
-    "x": 1990.199062347412,
-    "y": 708.4453647136688,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "c0c595e2.aa8d28",
-    "type": "switchNode",
-    "name": "service-data.network-instance-groups.network-instance-group_length",
-    "xml": "<switch test='`$service-data.network-instance-groups.network-instance-group_length`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2325.2746772766113,
-    "y": 737.7111823558807,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "f9db9f35.7e7",
-        "581dba4.d6ec244"
-      ]
-    ]
-  },
-  {
-    "id": "f9db9f35.7e7",
-    "type": "other",
-    "name": "outcome Null",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2684.524368286133,
-    "y": 694.7111852169037,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "5de331e2.b21f2"
-      ]
-    ]
-  },
-  {
-    "id": "581dba4.d6ec244",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2664.524368286133,
-    "y": 729.7111852169037,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c0ff470a.8d1c68"
-      ]
-    ]
-  },
-  {
-    "id": "6a373b7d.6814a4",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1966.3101921081543,
-    "y": 744.8898379802704,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c0c595e2.aa8d28"
-      ]
-    ]
-  },
-  {
-    "id": "7d8245f1.d453ec",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4088.5181846618652,
-    "y": 672.921788930893,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "1e1e6239.fb4e8e"
-      ]
-    ]
-  },
-  {
-    "id": "fbc8dfca.d5c4e",
-    "type": "set",
-    "name": "set tmp.ngidx and ctx.network-instance-group-data",
-    "xml": "<set>\n<parameter name='tmp.ngidx' value='`$ngidx`' />\n<parameter name='ctx.network-instance-group-data.' value='`$service-data.network-instance-groups.network-instance-group[$ngidx].`' />\n",
-    "comments": "",
-    "x": 4531.050151824951,
-    "y": 672.6718137264252,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "1e1e6239.fb4e8e",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 4237.136623382568,
-    "y": 672.7789742946625,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "fbc8dfca.d5c4e"
-      ]
-    ]
-  },
-  {
-    "id": "c50d7ac.b94b688",
-    "type": "for",
-    "name": "for ngidx..service-data.network-instance-groups.network-instance-group[]",
-    "xml": "<for index='ngidx' start='0' end='`$service-data.network-instance-groups.network-instance-_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3271.386589050293,
-    "y": 733.0287616252899,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "6bc50ed2.e98f"
-      ]
-    ]
-  },
-  {
-    "id": "6bc50ed2.e98f",
-    "type": "switchNode",
-    "name": "switch network-instance-group-id found",
-    "xml": "<switch test=\"`$service-data.network-instance-groups.network-instance-group[$nidx].network-instance-group-id == $network-topology-operation-input.network-information.network-instance-group-id`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3716.815185546875,
-    "y": 732.7789304256439,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "7d8245f1.d453ec"
-      ]
-    ]
-  },
-  {
-    "id": "c0ff470a.8d1c68",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 2883.3704681396484,
-    "y": 730.9046866893768,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c50d7ac.b94b688"
-      ]
-    ]
-  },
-  {
-    "id": "5de331e2.b21f2",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"network-topology-operation-input.network-request-input.network-instance-group-id not found in service-data\" />\n",
-    "comments": "",
-    "x": 2876.074020385742,
-    "y": 694.2787520885468,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "4941aa7.ba31254",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2290.7565956115723,
-    "y": 559.5238645076752,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c2ba8bb7.5d1488"
-      ]
-    ]
-  },
-  {
-    "id": "c2ba8bb7.5d1488",
-    "type": "set",
-    "name": "set nidx",
-    "xml": "<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n",
-    "comments": "",
-    "x": 2447.7565956115723,
-    "y": 560.5238645076752,
-    "z": "2db908be.484d28",
-    "wires": []
-  },
-  {
-    "id": "28e87a49.f59c96",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 872.1215934753418,
-    "y": 346.2326762676239,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "32d531df.85499e",
-        "4bb6e988.fe7c58",
-        "e792c2b8.ea131",
-        "960249a0.73e4e8"
-      ]
-    ]
-  },
-  {
-    "id": "32d531df.85499e",
-    "type": "outcome",
-    "name": "ActivateDCINetworkInstance",
-    "xml": "<outcome value='ActivateDCINetworkInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1132.4548149108887,
-    "y": 291.23249220848083,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "b83bfcdc.13d1a"
-      ]
-    ]
-  },
-  {
-    "id": "b83bfcdc.13d1a",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-activate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-activate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1578.4549140930176,
-    "y": 292.89932227134705,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "4bb6e988.fe7c58",
-    "type": "outcome",
-    "name": "other",
-    "xml": "<outcome value='other'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1068.454833984375,
-    "y": 384.89923071861267,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "389876cb.1e467a"
-      ]
-    ]
-  },
-  {
-    "id": "8e1c520d.d2576",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 876.6771430969238,
-    "y": 587.6770570278168,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "5eb403c4.8c424c",
-        "124ca478.59aa4c",
-        "49021010.79466",
-        "2ff099ca.196ee6"
-      ]
-    ]
-  },
-  {
-    "id": "5eb403c4.8c424c",
-    "type": "outcome",
-    "name": "DeactivateSOTNConnectivityInstance",
-    "xml": "<outcome value='DeactivateSOTNConnectivityInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1166.455020904541,
-    "y": 531.8991944789886,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "152c7bc7.994c24"
-      ]
-    ]
-  },
-  {
-    "id": "124ca478.59aa4c",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1074.8999862670898,
-    "y": 679.5907685756683,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c28aa9c7.571d18"
-      ]
-    ]
-  },
-  {
-    "id": "152c7bc7.994c24",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sotn-network-topology-operation-deactivate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-deactivate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1626.8121376037598,
-    "y": 533.1825215816498,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "1591e42d.e2cabc",
-    "type": "other",
-    "name": "create",
-    "xml": "<outcome value='create'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 662.3439102172852,
-    "y": 927.010596036911,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "a09e2b38.714a58"
-      ]
-    ]
-  },
-  {
-    "id": "a09e2b38.714a58",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 862.6577301025391,
-    "y": 926.7882688045502,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "123388e8.cc22d7",
-        "e823c269.0d884",
-        "fe173c3b.37ab5"
-      ]
-    ]
-  },
-  {
-    "id": "d1b59f6c.66aa3",
-    "type": "other",
-    "name": "delete",
-    "xml": "<outcome value='delete'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 660.3439140319824,
-    "y": 1004.0105998516083,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "f91ae971.a2f4f8"
-      ]
-    ]
-  },
-  {
-    "id": "f91ae971.a2f4f8",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 862.6321716308594,
-    "y": 1005.0714004039764,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "81ef432e.c5cd2",
-        "dac05fa.465e7a",
-        "ad7b9fb5.8def5"
-      ]
-    ]
-  },
-  {
-    "id": "4debc446.71044c",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1606.4551811218262,
-    "y": 1361.8993880748749,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "a33b166a.24fd28"
-      ]
-    ]
-  },
-  {
-    "id": "21f7416d.44262e",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1578.8996543884277,
-    "y": 1560.4549124240875,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c3e850c.08aaab"
-      ]
-    ]
-  },
-  {
-    "id": "a33b166a.24fd28",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:network-topology-operation-create",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1971.1216773986816,
-    "y": 1361.3440101146698,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "c3e850c.08aaab",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:network-topology-operation-delete",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1943.8995780944824,
-    "y": 1559.4548408985138,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "123388e8.cc22d7",
-    "type": "outcome",
-    "name": "other",
-    "xml": "<outcome value='other'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1424.65771484375,
-    "y": 1363.6770017147064,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "4debc446.71044c"
-      ]
-    ]
-  },
-  {
-    "id": "e823c269.0d884",
-    "type": "outcome",
-    "name": "CreateSOTNConnectivityInstance",
-    "xml": "<outcome value='CreateSOTNConnectivityInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1504.3244438171387,
-    "y": 1264.4549030223861,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "f75de23d.a281"
-      ]
-    ]
-  },
-  {
-    "id": "f75de23d.a281",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sotn-network-topology-operation-create",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-create' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1983.2132606506348,
-    "y": 1266.6770852962509,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "dac05fa.465e7a",
-    "type": "outcome",
-    "name": "DeleteSOTNConnectivityInstance",
-    "xml": "<outcome value='DeleteSOTNConnectivityInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1501.7435417175293,
-    "y": 1457.6269524097443,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "37fda84e.b42608"
-      ]
-    ]
-  },
-  {
-    "id": "37fda84e.b42608",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sotn-network-topology-operation-delete",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-delete' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1968.6323585510254,
-    "y": 1459.849134683609,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "81ef432e.c5cd2",
-    "type": "outcome",
-    "name": "other",
-    "xml": "<outcome value='other'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1421.0767822265625,
-    "y": 1564.848998785019,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "21f7416d.44262e"
-      ]
-    ]
-  },
-  {
-    "id": "e792c2b8.ea131",
-    "type": "outcome",
-    "name": "ActivateSOTNConnectivityInstance",
-    "xml": "<outcome value='ActivateSOTNConnectivityInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1155.4548530578613,
-    "y": 246.01040053367615,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "284dd097.c8e25"
-      ]
-    ]
-  },
-  {
-    "id": "284dd097.c8e25",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sotn-network-topology-operation-activate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-activate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1580.6770095825195,
-    "y": 242.24494303856045,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "49021010.79466",
-    "type": "outcome",
-    "name": "DeActivateDCINetworkInstance",
-    "xml": "<outcome value='DeActivateDCINetworkInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1146.5555610656738,
-    "y": 574.9999940395355,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "8f0d395a.fe6d58"
-      ]
-    ]
-  },
-  {
-    "id": "8f0d395a.fe6d58",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-deactivate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-deactivate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1621.5557823181152,
-    "y": 573.6668121814728,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "960249a0.73e4e8",
-    "type": "outcome",
-    "name": "ActivateSDWANConnectivityInstance",
-    "xml": "<outcome value='ActivateSDWANConnectivityInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1152.0000228881836,
-    "y": 341.00001883506775,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "8e724d0c.12ad"
-      ]
-    ]
-  },
-  {
-    "id": "8e724d0c.12ad",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-network-topology-operation-activate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-activate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1595.0002136230469,
-    "y": 338.6668474674225,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "2ff099ca.196ee6",
-    "type": "outcome",
-    "name": "DeactivateSDWANConnectivityInstance",
-    "xml": "<outcome value='DeactivateSDWANConnectivityInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1164,
-    "y": 627.9999997615814,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "5313db5b.ba3784"
-      ]
-    ]
-  },
-  {
-    "id": "5313db5b.ba3784",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-network-topology-operation-deactivate",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-deactivate' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1607.0001907348633,
-    "y": 625.6668283939362,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "fe173c3b.37ab5",
-    "type": "outcome",
-    "name": "CreateSDWANConnectivityInstance",
-    "xml": "<outcome value='CreateSDWANConnectivityInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1510,
-    "y": 1312.9999997615814,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "55f558b0.f98bd8"
-      ]
-    ]
-  },
-  {
-    "id": "55f558b0.f98bd8",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-network-topology-operation-create",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-create' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1953.0001907348633,
-    "y": 1310.6668283939362,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "ad7b9fb5.8def5",
-    "type": "outcome",
-    "name": "DeleteSDWANConnectivityInstance",
-    "xml": "<outcome value='DeleteSDWANConnectivityInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1503,
-    "y": 1507.9999997615814,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "483a39e2.dfbcc8"
-      ]
-    ]
-  },
-  {
-    "id": "483a39e2.dfbcc8",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sdwan-network-topology-operation-delete",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-delete' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1969.888816833496,
-    "y": 1510.2221820354462,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "3a527742.291048",
-    "type": "other",
-    "name": "reoptimize",
-    "xml": "<outcome value='reoptimize'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 653,
-    "y": 1074,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "8989e10f.fcf5f"
-      ]
-    ]
-  },
-  {
-    "id": "8989e10f.fcf5f",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 842,
-    "y": 1076,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "c0517ae5.fea898"
-      ]
-    ]
-  },
-  {
-    "id": "c0517ae5.fea898",
-    "type": "outcome",
-    "name": "ReoptimizeSOTNInstance",
-    "xml": "<outcome value='ReoptimizeSOTNInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1472,
-    "y": 1641,
-    "z": "2db908be.484d28",
-    "wires": [
-      [
-        "70bb459.77727bc"
-      ]
-    ]
-  },
-  {
-    "id": "70bb459.77727bc",
-    "type": "call",
-    "name": "call GENERIC-RESOURCE-API:sotn-network-topology-operation-reoptimize",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-reoptimize' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1913,
-    "y": 1636,
-    "z": "2db908be.484d28",
-    "wires": [
-      []
-    ]
-  }
-]
+[{
+       "id": "cda9cb25.008878",
+       "type": "dgstart",
+       "name": "DGSTART",
+       "outputs": 1,
+       "x": 116.00390625,
+       "y": 127.00390625,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["62bd4bd7.3ee3c4"]
+       ]
+}, {
+       "id": "62bd4bd7.3ee3c4",
+       "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": 197.95626831054688,
+       "y": 167.242018699646,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["92bec9ff.3ca028"]
+       ]
+}, {
+       "id": "92bec9ff.3ca028",
+       "type": "method",
+       "name": "network-topology-operation",
+       "xml": "<method rpc='network-topology-operation' mode='sync'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 177.4325408935547,
+       "y": 218.0039119720459,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["787d9954.38bba8"]
+       ]
+}, {
+       "id": "648b626a.56b11c",
+       "type": "comment",
+       "name": " NETWORK-TOPOLOGY-OPERATION ",
+       "info": "",
+       "comments": "",
+       "x": 510.34876251220703,
+       "y": 74.59025001525879,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "787d9954.38bba8",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 230.00393676757812,
+       "y": 290.44738960266113,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["fa0c17ce.6e7bc8", "fadbb13.7d2dd5", "dc48dc75.75815", "7270aff7.976ff"]
+       ]
+}, {
+       "id": "fa0c17ce.6e7bc8",
+       "type": "returnSuccess",
+       "name": "return success",
+       "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+       "comments": "",
+       "x": 434.0873107910156,
+       "y": 1316.5400428771973,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "fadbb13.7d2dd5",
+       "type": "switchNode",
+       "name": "switch svc-action",
+       "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 456.7181701660156,
+       "y": 520.861083984375,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["c05cc8a9.a87538", "8c9c980d.ccc4f8", "8bf526ae.923e18", "7de8f4ae.cff8ac", "26afc371.40355c", "bb05b811.ebde68", "1a44c3fe.115f5c", "315bf1cb.32141e"]
+       ]
+}, {
+       "id": "c05cc8a9.a87538",
+       "type": "other",
+       "name": "assign",
+       "xml": "<outcome value='assign'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 671.194408416748,
+       "y": 293.1467628479004,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["5bf1acae.be9164"]
+       ]
+}, {
+       "id": "5bf1acae.be9164",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 843.4325790405273,
+       "y": 291.1468915939331,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["e342989e.94fd28"]
+       ]
+}, {
+       "id": "dc48dc75.75815",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:validate-network-input",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 567.0038948059082,
+       "y": 231.0039131641388,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "8c9c980d.ccc4f8",
+       "type": "other",
+       "name": "activate",
+       "xml": "<outcome value='activate'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 674.0039482116699,
+       "y": 383.0039005279541,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["e028738c.44a5e"]
+       ]
+}, {
+       "id": "647e7eaa.31279",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 1129.2422637939453,
+       "y": 468.00415229797363,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["794617b.1131ce8", "ba635494.f7cda8", "5f3efec5.a1f4d"]
+       ]
+}, {
+       "id": "b8d794c5.efea38",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:network-topology-operation-activate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2321.063835144043,
+       "y": 971.6111488342285,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "8bf526ae.923e18",
+       "type": "other",
+       "name": "deactivate",
+       "xml": "<outcome value='deactivate'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 668.0039405822754,
+       "y": 615.0038986206055,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["cf3c1895.618e38"]
+       ]
+}, {
+       "id": "55cb30ff.95ca3",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 1105.2422409057617,
+       "y": 855.0042123794556,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["794617b.1131ce8", "7bec74e2.e8459c", "5f3efec5.a1f4d"]
+       ]
+}, {
+       "id": "7bec74e2.e8459c",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:network-topology-operation-deactivate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1649.2304382324219,
+       "y": 1059.8611965179443,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "7de8f4ae.cff8ac",
+       "type": "other",
+       "name": "unassign",
+       "xml": "<outcome value='unassign'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 665.0039596557617,
+       "y": 867.0039482116699,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["cc00dd86.d7918"]
+       ]
+}, {
+       "id": "cc00dd86.d7918",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 846.2421188354492,
+       "y": 868.0040702819824,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["794617b.1131ce8", "8d92f87.3b71108", "5f3efec5.a1f4d"]
+       ]
+}, {
+       "id": "7ba153c5.8b3f2c",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:network-topology-operation-unassign",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2316.8136978149414,
+       "y": 1165.1111183166504,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "26afc371.40355c",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 649.0039596557617,
+       "y": 1122.0039448738098,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["14623740.584dd9"]
+       ]
+}, {
+       "id": "14623740.584dd9",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"sdnc-request-header.svc-action is a required input\" />\n",
+       "comments": "",
+       "x": 831.0039558410645,
+       "y": 1121.003954410553,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "7270aff7.976ff",
+       "type": "set",
+       "name": "Set final indicator to Y",
+       "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
+       "comments": "",
+       "x": 453.11500549316406,
+       "y": 1275.6983814239502,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "c06efb45.ffaa78",
+       "type": "for",
+       "name": "for nidx..service-data.networks.network[]",
+       "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2185.734363555908,
+       "y": 509.7658576965332,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["c1a437ff.1b7718"]
+       ]
+}, {
+       "id": "794617b.1131ce8",
+       "type": "switchNode",
+       "name": "switch service-data.networks.network_length",
+       "xml": "<switch test='`$service-data.networks.network_length`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1463.1985206604004,
+       "y": 478.0872497558594,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["26994831.0e1298", "ecf2ea88.0ee378"]
+       ]
+}, {
+       "id": "26994831.0e1298",
+       "type": "other",
+       "name": "outcome Null",
+       "xml": "<outcome value=''>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1762.448398590088,
+       "y": 476.33724784851074,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["55f21fbf.094db"]
+       ]
+}, {
+       "id": "ecf2ea88.0ee378",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1716.448429107666,
+       "y": 509.3372688293457,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["b06a60a0.ec18c"]
+       ]
+}, {
+       "id": "c1a437ff.1b7718",
+       "type": "switchNode",
+       "name": "switch networkid found",
+       "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2476.162914276123,
+       "y": 509.01594161987305,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["dc253be8.d2cc08"]
+       ]
+}, {
+       "id": "dc253be8.d2cc08",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2665.1152687072754,
+       "y": 509.9086799621582,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["db34e276.b7ef7"]
+       ]
+}, {
+       "id": "db34e276.b7ef7",
+       "type": "set",
+       "name": "set tmp.nidx and network-data",
+       "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
+       "comments": "",
+       "x": 2898.6470375061035,
+       "y": 508.65868759155273,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "810ee0f6.12029",
+       "type": "comment",
+       "name": "Find the index to service data for this network - save id in tmp.nidx, save service-data",
+       "info": "",
+       "comments": "",
+       "x": 1613.559814453125,
+       "y": 443.33726978302,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "faca6d42.ad164",
+       "type": "comment",
+       "name": "service-data  will not be stored until we have a network-id",
+       "info": "",
+       "comments": "",
+       "x": 1181.6707000732422,
+       "y": 72.22616004943848,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "55f21fbf.094db",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
+       "comments": "",
+       "x": 1954.2259559631348,
+       "y": 474.22624588012695,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "b06a60a0.ec18c",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 1883.7183952331543,
+       "y": 508.891845703125,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["c06efb45.ffaa78", "56e75e01.1337c"]
+       ]
+}, {
+       "id": "56e75e01.1337c",
+       "type": "switchNode",
+       "name": "switch tmp.nidx ",
+       "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2112.7859077453613,
+       "y": 559.2490568161011,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["c0593450.c30c98", "2cfecf83.4d66"]
+       ]
+}, {
+       "id": "38dfaef5.ab0d82",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
+       "comments": "",
+       "x": 2465.642890930176,
+       "y": 554.9632987976074,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "c0593450.c30c98",
+       "type": "outcome",
+       "name": "NULL",
+       "xml": "<outcome value=''>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2284.214443206787,
+       "y": 557.820442199707,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["38dfaef5.ab0d82"]
+       ]
+}, {
+       "id": "ba635494.f7cda8",
+       "type": "switchNode",
+       "name": "switch network-level-oper-status",
+       "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1534.0320663452148,
+       "y": 971.5625495910645,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["f777a5ff.1ff918", "65fed18b.d3691"]
+       ]
+}, {
+       "id": "f777a5ff.1ff918",
+       "type": "outcome",
+       "name": "outcome PendingCreate",
+       "xml": "<outcome value='PendingCreate'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1899.0320460001622,
+       "y": 971.5625343322754,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["b8d794c5.efea38"]
+       ]
+}, {
+       "id": "65fed18b.d3691",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1849.0320930480957,
+       "y": 1011.5625648498535,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["ad2b7f81.8f2fa"]
+       ]
+}, {
+       "id": "ad2b7f81.8f2fa",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
+       "comments": "",
+       "x": 2019.0320930480957,
+       "y": 1011.5625648498535,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "8d92f87.3b71108",
+       "type": "switchNode",
+       "name": "switch network-level-oper-status",
+       "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1523.6350784301758,
+       "y": 1166.7153205871582,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["2bf6a461.e029dc", "1dc42825.9e33e8", "3c21ea48.9e0a06"]
+       ]
+}, {
+       "id": "2bf6a461.e029dc",
+       "type": "outcome",
+       "name": "outcome PendingCreate",
+       "xml": "<outcome value='PendingCreate'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1883.6350479125977,
+       "y": 1166.7153511047363,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["7ba153c5.8b3f2c"]
+       ]
+}, {
+       "id": "1dc42825.9e33e8",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1839.3849716186523,
+       "y": 1238.2154140472412,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["77f1e70c.bfe408"]
+       ]
+}, {
+       "id": "77f1e70c.bfe408",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Network is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
+       "comments": "",
+       "x": 2030.718391418457,
+       "y": 1236.8820428848267,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "3c21ea48.9e0a06",
+       "type": "outcome",
+       "name": "outcome PendingDelete",
+       "xml": "<outcome value='PendingDelete'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1886.8652725219727,
+       "y": 1204.5625190734863,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["7ba153c5.8b3f2c"]
+       ]
+}, {
+       "id": "bb05b811.ebde68",
+       "type": "other",
+       "name": "changeassign",
+       "xml": "<outcome value='changeassign'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 676.003978729248,
+       "y": 518.0039310455322,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["8f942ed8.86388"]
+       ]
+}, {
+       "id": "8f942ed8.86388",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 1048.2539176940918,
+       "y": 515.0039224624634,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["794617b.1131ce8", "66843091.29a36"]
+       ]
+}, {
+       "id": "42b0a6db.432d98",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:network-topology-operation-assign",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1817.0041007995605,
+       "y": 213.0039234161377,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "e342989e.94fd28",
+       "type": "switchNode",
+       "name": "switch network-level-oper-status",
+       "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1112.9721565246582,
+       "y": 150.95531463623047,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["40bb733e.dd6f7c", "b0f9b859.068648", "593782df.da509c", "387e750f.af463a"]
+       ]
+}, {
+       "id": "40bb733e.dd6f7c",
+       "type": "outcome",
+       "name": "outcome PendingCreate",
+       "xml": "<outcome value='PendingCreate'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1498.9722023010254,
+       "y": 170.95529651641846,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["511a23b5.730e6c"]
+       ]
+}, {
+       "id": "b0f9b859.068648",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1446.9721984863281,
+       "y": 212.9553279876709,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["42b0a6db.432d98"]
+       ]
+}, {
+       "id": "511a23b5.730e6c",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Network is not in appropriate state for assign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
+       "comments": "",
+       "x": 1773.9724235534668,
+       "y": 166.9553451538086,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "387e750f.af463a",
+       "type": "outcome",
+       "name": "outcome PendingDelete",
+       "xml": "<outcome value='PendingDelete'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1497.0039405822754,
+       "y": 136.0039119720459,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["511a23b5.730e6c"]
+       ]
+}, {
+       "id": "593782df.da509c",
+       "type": "outcome",
+       "name": "outcome Created",
+       "xml": "<outcome value='Created'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1477.003978729248,
+       "y": 101.00391387939453,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["511a23b5.730e6c"]
+       ]
+}, {
+       "id": "66843091.29a36",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:network-topology-operation-changeassign",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-changeassign' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1626.2503128051758,
+       "y": 903.5000400543213,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "5f3efec5.a1f4d",
+       "type": "switchNode",
+       "name": "switch network-information.network-instance-group-id",
+       "xml": "<switch test='`$network-topology-operation-input.network-information.network-instance-group-id`'>\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1538.442554473877,
+       "y": 735.5049266815186,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["284c8b6d.7f3634", "7a92615c.c2127"]
+       ]
+}, {
+       "id": "284c8b6d.7f3634",
+       "type": "other",
+       "name": "Other",
+       "xml": "<outcome value='Other'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1825.1924362182617,
+       "y": 773.6715936660767,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["a50032f5.72a83"]
+       ]
+}, {
+       "id": "7a92615c.c2127",
+       "type": "other",
+       "name": "NULL",
+       "xml": "<outcome value=''>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1822.85933303833,
+       "y": 740.6714677810669,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["b4f37512.d70bb8"]
+       ]
+}, {
+       "id": "b4f37512.d70bb8",
+       "type": "returnSuccess",
+       "name": "return success",
+       "xml": "<return status='success'>\n",
+       "comments": "",
+       "x": 1983.1925621032715,
+       "y": 737.6715250015259,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "fe324586.0b55a8",
+       "type": "switchNode",
+       "name": "service-data.network-instance-groups.network-instance-group_length",
+       "xml": "<switch test='`$service-data.network-instance-groups.network-instance-group_length`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2318.2681770324707,
+       "y": 766.9373426437378,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["e21d92d1.3db16", "3beb03c.3e8d3fc"]
+       ]
+}, {
+       "id": "e21d92d1.3db16",
+       "type": "other",
+       "name": "outcome Null",
+       "xml": "<outcome value=''>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2677.517868041992,
+       "y": 723.9373455047607,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["b8fb72eb.e727c"]
+       ]
+}, {
+       "id": "3beb03c.3e8d3fc",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2657.517868041992,
+       "y": 758.9373455047607,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["48f28981.9aa598"]
+       ]
+}, {
+       "id": "a50032f5.72a83",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 1959.3036918640137,
+       "y": 774.1159982681274,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["fe324586.0b55a8"]
+       ]
+}, {
+       "id": "7d5793c9.a9443c",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 4081.5116844177246,
+       "y": 702.14794921875,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["a95997cc.c83c08"]
+       ]
+}, {
+       "id": "15a71d4.a9638e3",
+       "type": "set",
+       "name": "set tmp.ngidx and ctx.network-instance-group-data",
+       "xml": "<set>\n<parameter name='tmp.ngidx' value='`$ngidx`' />\n<parameter name='ctx.network-instance-group-data.' value='`$service-data.network-instance-groups.network-instance-group[$ngidx].`' />\n",
+       "comments": "",
+       "x": 4524.043651580811,
+       "y": 701.8979740142822,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "a95997cc.c83c08",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 4230.130123138428,
+       "y": 702.0051345825195,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["15a71d4.a9638e3"]
+       ]
+}, {
+       "id": "a82beca.188501",
+       "type": "for",
+       "name": "for ngidx..service-data.network-instance-groups.network-instance-group[]",
+       "xml": "<for index='ngidx' start='0' end='`$service-data.network-instance-groups.network-instance-_length`' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 3264.3800888061523,
+       "y": 762.254921913147,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["14adc4b7.e22c9b"]
+       ]
+}, {
+       "id": "14adc4b7.e22c9b",
+       "type": "switchNode",
+       "name": "switch network-instance-group-id found",
+       "xml": "<switch test=\"`$service-data.network-instance-groups.network-instance-group[$nidx].network-instance-group-id == $network-topology-operation-input.network-information.network-instance-group-id`\">\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 3709.8086853027344,
+       "y": 762.005090713501,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["7d5793c9.a9443c"]
+       ]
+}, {
+       "id": "48f28981.9aa598",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 2876.363967895508,
+       "y": 760.1308469772339,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["a82beca.188501"]
+       ]
+}, {
+       "id": "b8fb72eb.e727c",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"network-topology-operation-input.network-request-input.network-instance-group-id not found in service-data\" />\n",
+       "comments": "",
+       "x": 2869.0675201416016,
+       "y": 723.5049123764038,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "2cfecf83.4d66",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2283.7500953674316,
+       "y": 588.7500247955322,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["46a8714e.72c73"]
+       ]
+}, {
+       "id": "46a8714e.72c73",
+       "type": "set",
+       "name": "set nidx",
+       "xml": "<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n",
+       "comments": "",
+       "x": 2440.7500953674316,
+       "y": 589.7500247955322,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "e028738c.44a5e",
+       "type": "switchNode",
+       "name": "switch request-action",
+       "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 865.1150932312012,
+       "y": 375.45883655548096,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["4b5ff3a1.79dd3c", "7a80b9c3.a5dcb8", "c5dccdb2.4a1d2", "6dd58869.b5c168"]
+       ]
+}, {
+       "id": "4b5ff3a1.79dd3c",
+       "type": "outcome",
+       "name": "ActivateDCINetworkInstance",
+       "xml": "<outcome value='ActivateDCINetworkInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1161.4483184814453,
+       "y": 320.4586658477783,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["67b5a7fb.45ef88"]
+       ]
+}, {
+       "id": "67b5a7fb.45ef88",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-activate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-activate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1676.4483947753906,
+       "y": 320.12549781799316,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "7a80b9c3.a5dcb8",
+       "type": "outcome",
+       "name": "other",
+       "xml": "<outcome value='other'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 998.4484367370605,
+       "y": 425.12542152404785,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["bf8db20a.91bed"]
+       ]
+}, {
+       "id": "cf3c1895.618e38",
+       "type": "switchNode",
+       "name": "switch request-action",
+       "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 869.6706428527832,
+       "y": 616.9032173156738,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["cbdbb0cc.f0331", "5badbdc.f46d244", "7e6d0610.2563c8", "13b9136d.b8ff1d"]
+       ]
+}, {
+       "id": "cbdbb0cc.f0331",
+       "type": "outcome",
+       "name": "DeactivateSOTNConnectivityInstance",
+       "xml": "<outcome value='DeactivateSOTNConnectivityInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1159.4485206604004,
+       "y": 561.1253547668457,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["49a424cb.12dbec"]
+       ]
+}, {
+       "id": "5badbdc.f46d244",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1018.8936080932617,
+       "y": 707.8169631958008,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["e396e5dc.9253f8"]
+       ]
+}, {
+       "id": "49a424cb.12dbec",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:sotn-network-topology-operation-deactivate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-deactivate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1650.8057861328125,
+       "y": 559.408727645874,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "1a44c3fe.115f5c",
+       "type": "other",
+       "name": "create",
+       "xml": "<outcome value='create'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 655.3374099731445,
+       "y": 956.2367563247681,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["45693d0f.b52f34"]
+       ]
+}, {
+       "id": "45693d0f.b52f34",
+       "type": "switchNode",
+       "name": "switch request-action",
+       "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 855.6512298583984,
+       "y": 956.0144290924072,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["779b6195.9f707", "620d8e1f.fb138", "3ab6b5e.164cc4a"]
+       ]
+}, {
+       "id": "315bf1cb.32141e",
+       "type": "other",
+       "name": "delete",
+       "xml": "<outcome value='delete'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 653.3374137878418,
+       "y": 1033.2367601394653,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["93e17ab4.f42768"]
+       ]
+}, {
+       "id": "93e17ab4.f42768",
+       "type": "switchNode",
+       "name": "switch request-action",
+       "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 855.6256713867188,
+       "y": 1034.2975606918335,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["bead6e63.0cea2", "2c6e7786.59c9d8", "dd8b829c.98de2"]
+       ]
+}, {
+       "id": "f074082c.642148",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 1587.4487915039062,
+       "y": 1447.1256427764893,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["e2f268db.e09cb8"]
+       ]
+}, {
+       "id": "273eee3d.625232",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 1553.8930892944336,
+       "y": 1742.681453704834,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["26e1cb1f.5ee944"]
+       ]
+}, {
+       "id": "e2f268db.e09cb8",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:network-topology-operation-create",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1953.115234375,
+       "y": 1443.5702953338623,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "26e1cb1f.5ee944",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:network-topology-operation-delete",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1918.8930130004883,
+       "y": 1741.6813821792603,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "779b6195.9f707",
+       "type": "outcome",
+       "name": "other",
+       "xml": "<outcome value='other'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1417.6512145996094,
+       "y": 1392.9031620025635,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["2bb8422a.2e625e"]
+       ]
+}, {
+       "id": "620d8e1f.fb138",
+       "type": "outcome",
+       "name": "CreateSOTNConnectivityInstance",
+       "xml": "<outcome value='CreateSOTNConnectivityInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1497.317943572998,
+       "y": 1293.6810633102432,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["cd4e7eb6.ff6ff"]
+       ]
+}, {
+       "id": "cd4e7eb6.ff6ff",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:sotn-network-topology-operation-create",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-create' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1976.2067604064941,
+       "y": 1295.903245584108,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "2c6e7786.59c9d8",
+       "type": "outcome",
+       "name": "DeleteSOTNConnectivityInstance",
+       "xml": "<outcome value='DeleteSOTNConnectivityInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1490.7371063232422,
+       "y": 1550.85329246521,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["19f1388e.0fadf7"]
+       ]
+}, {
+       "id": "19f1388e.0fadf7",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:sotn-network-topology-operation-delete",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-delete' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1957.6259231567383,
+       "y": 1553.0754747390747,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "bead6e63.0cea2",
+       "type": "outcome",
+       "name": "other",
+       "xml": "<outcome value='other'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1409.0702438354492,
+       "y": 1662.0754313468933,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["1fe426ab.fd1089"]
+       ]
+}, {
+       "id": "c5dccdb2.4a1d2",
+       "type": "outcome",
+       "name": "ActivateSOTNConnectivityInstance",
+       "xml": "<outcome value='ActivateSOTNConnectivityInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1181.4484100341797,
+       "y": 271.23657417297363,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["2dd1b08b.8bc5e"]
+       ]
+}, {
+       "id": "2dd1b08b.8bc5e",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:sotn-network-topology-operation-activate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-activate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1635.6706237792969,
+       "y": 272.4711055755615,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "7e6d0610.2563c8",
+       "type": "outcome",
+       "name": "DeActivateDCINetworkInstance",
+       "xml": "<outcome value='DeActivateDCINetworkInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1139.5490608215332,
+       "y": 604.2261543273926,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["39e58430.1a297c"]
+       ]
+}, {
+       "id": "39e58430.1a297c",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-deactivate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-deactivate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1679.5494384765625,
+       "y": 607.8929653167725,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "6dd58869.b5c168",
+       "type": "outcome",
+       "name": "ActivateSDWANConnectivityInstance",
+       "xml": "<outcome value='ActivateSDWANConnectivityInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1182.9935455322266,
+       "y": 371.2261791229248,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["9662796.a381e88"]
+       ]
+}, {
+       "id": "9662796.a381e88",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:sdwan-network-topology-operation-activate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-activate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1702.9937438964844,
+       "y": 365.89303398132324,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "13b9136d.b8ff1d",
+       "type": "outcome",
+       "name": "DeactivateSDWANConnectivityInstance",
+       "xml": "<outcome value='DeactivateSDWANConnectivityInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1156.9934997558594,
+       "y": 657.2261600494385,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["407f818a.a3f1e"]
+       ]
+}, {
+       "id": "407f818a.a3f1e",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:sdwan-network-topology-operation-deactivate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-deactivate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1670.9937744140625,
+       "y": 654.893012046814,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "3ab6b5e.164cc4a",
+       "type": "outcome",
+       "name": "CreateSDWANConnectivityInstance",
+       "xml": "<outcome value='CreateSDWANConnectivityInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1502.9934997558594,
+       "y": 1342.2261600494385,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["26a8274b.85d1f8"]
+       ]
+}, {
+       "id": "26a8274b.85d1f8",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:sdwan-network-topology-operation-create",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-create' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1945.9936904907227,
+       "y": 1339.8929886817932,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "dd8b829c.98de2",
+       "type": "outcome",
+       "name": "DeleteSDWANConnectivityInstance",
+       "xml": "<outcome value='DeleteSDWANConnectivityInstance'>",
+       "comments": "",
+       "outputs": 1,
+       "x": 1491.993564605713,
+       "y": 1601.2263398170471,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["a36aa3d0.1a854"]
+       ]
+}, {
+       "id": "a36aa3d0.1a854",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:sdwan-network-topology-operation-delete",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-delete' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1958.882381439209,
+       "y": 1603.4485220909119,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "bf8db20a.91bed",
+       "type": "execute",
+       "name": "contains wan-connection",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.service-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"wan-connection\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1188.8993453979492,
+       "y": 410.2326798439026,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["a4b8222c.37fd2", "f38dc6c7.31f8f8"]
+       ]
+}, {
+       "id": "a4b8222c.37fd2",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1394.899398803711,
+       "y": 405.34375190734863,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["cfa31.bc3ac5cf8"]
+       ]
+}, {
+       "id": "cfa31.bc3ac5cf8",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:wan-connection-topology-operation-activate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='wan-connection-topology-operation-activate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1779.8994979858398,
+       "y": 407.34376525878906,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "f38dc6c7.31f8f8",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 967.1215209960938,
+       "y": 472.2326354980469,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["647e7eaa.31279"]
+       ]
+}, {
+       "id": "e396e5dc.9253f8",
+       "type": "execute",
+       "name": "contains wan-connection",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.service-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"wan-connection\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1204.6771087646484,
+       "y": 698.4548931121826,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["16dbb839.f33278", "5d50fb2f.744eb4"]
+       ]
+}, {
+       "id": "16dbb839.f33278",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1405.6772651672363,
+       "y": 697.5659255981445,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["db483123.c7a64"]
+       ]
+}, {
+       "id": "db483123.c7a64",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:wan-connection-topology-operation-deactivate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='wan-connection-topology-operation-deactivate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1771.677230834961,
+       "y": 694.5659408569336,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "5d50fb2f.744eb4",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1051.677158355713,
+       "y": 761.3437719345093,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["55cb30ff.95ca3"]
+       ]
+}, {
+       "id": "2bb8422a.2e625e",
+       "type": "execute",
+       "name": "contains wan-connection",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.service-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"wan-connection\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1602.899398803711,
+       "y": 1398.899284362793,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["f0fc160f.719fc8", "19b66d7a.3c5d03"]
+       ]
+}, {
+       "id": "19b66d7a.3c5d03",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1409.8993377685547,
+       "y": 1445.7882862091064,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["f074082c.642148"]
+       ]
+}, {
+       "id": "f0fc160f.719fc8",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1808.899471282959,
+       "y": 1391.010341644287,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["b831c9c0.001f08"]
+       ]
+}, {
+       "id": "b831c9c0.001f08",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:wan-connection-topology-operation-create",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='wan-connection-topology-operation-create' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2167.899398803711,
+       "y": 1392.0103950500488,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "1fe426ab.fd1089",
+       "type": "execute",
+       "name": "contains wan-connection",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.service-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"wan-connection\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1615.56591796875,
+       "y": 1670.232666015625,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["ff1ea989.df69b8", "d8afda97.54c288"]
+       ]
+}, {
+       "id": "d8afda97.54c288",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1400.565933227539,
+       "y": 1746.1215896606445,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["273eee3d.625232"]
+       ]
+}, {
+       "id": "ff1ea989.df69b8",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1816.566074371338,
+       "y": 1669.343698501587,
+       "z": "6262cf90.82826",
+       "wires": [
+               ["bae544d2.711e28"]
+       ]
+}, {
+       "id": "bae544d2.711e28",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:wan-connection-topology-operation-deactivate",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='wan-connection-topology-operation-deactivate' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 2182.5660400390625,
+       "y": 1666.343713760376,
+       "z": "6262cf90.82826",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "8343f26d.19336",
+       "type": "set",
+       "name": "set network-level-oper-status",
+       "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n",
+       "comments": "",
+       "x": 504.79057693481445,
+       "y": 1227.1833486557007,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "fc4f404.28de9c",
+       "type": "set",
+       "name": "set object-path",
+       "xml": "<set>\n<parameter name='network-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $networkId\n + '/network-data/network-topology/'` \" />\n \n",
+       "comments": "",
+       "x": 462.5048828125,
+       "y": 1181.7548751831055,
+       "z": "6262cf90.82826",
+       "wires": []
+}, {
+       "id": "b8117e21.6ea85",
+       "type": "set",
+       "name": "set networkId",
+       "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
+       "comments": "",
+       "x": 456.7905158996582,
+       "y": 1144.6119832992554,
+       "z": "6262cf90.82826",
+       "wires": []
+}]
\ No newline at end of file
index af80473..62fa434 100644 (file)
@@ -1,1607 +1 @@
-[
-  {
-    "id": "d3e08805.9611b8",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 83,
-    "y": 24,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "f7dace5a.d2c9a"
-      ]
-    ]
-  },
-  {
-    "id": "f7dace5a.d2c9a",
-    "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": 214.2856903076172,
-    "y": 73.23810863494873,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "83935545.c771a8"
-      ]
-    ]
-  },
-  {
-    "id": "83935545.c771a8",
-    "type": "method",
-    "name": "method sdwan-vnf-topology-operation-wanport-activate",
-    "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 217.42861938476562,
-    "y": 158.00003242492676,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "5c798a65.20eb74"
-      ]
-    ]
-  },
-  {
-    "id": "5c798a65.20eb74",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 280.66675567626953,
-    "y": 763.666989326477,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "71d2a775.99ccc8",
-        "86f28d21.8ff7e",
-        "1d544933.c7e8c7",
-        "50fcdc11.a23244",
-        "a2033bb8.c74a28",
-        "f2405d05.22028",
-        "ec56abe8.7b3a98",
-        "c179291d.00bde8",
-        "c25408f5.164608",
-        "7e3b6576.8de5bc",
-        "e9a4c8c8.051068",
-        "9ac8f49c.624348",
-        "20fab8b2.cf42c8",
-        "833ee131.2bc86",
-        "37df268d.80523a",
-        "d3956bf2.5c5588",
-        "6f1e3f39.5773",
-        "f462086d.871178",
-        "47d46647.d7f098",
-        "24dcefec.86843",
-        "589c7732.243f08"
-      ]
-    ]
-  },
-  {
-    "id": "71d2a775.99ccc8",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
-    "comments": "",
-    "x": 605.3345069885254,
-    "y": 1561.334532737732,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "7e3b6576.8de5bc",
-    "type": "execute",
-    "name": "execute RestApiCallNode device port create",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 695.3341102600098,
-    "y": 758.889497756958,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "68948952.c50068",
-        "b1429997.066598"
-      ]
-    ]
-  },
-  {
-    "id": "68948952.c50068",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 944.3341693878174,
-    "y": 772.8897037506104,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "4a0bff89.5f70e"
-      ]
-    ]
-  },
-  {
-    "id": "b1429997.066598",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 944.3341693878174,
-    "y": 734.8895392417908,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "3a88421d.260dee"
-      ]
-    ]
-  },
-  {
-    "id": "3a88421d.260dee",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create device port rest api\" />\n",
-    "comments": "",
-    "x": 1088.3345031738281,
-    "y": 733.8895387649536,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "4a0bff89.5f70e",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1091.3341808319092,
-    "y": 773.8895425796509,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "e9a4c8c8.051068",
-    "type": "execute",
-    "name": "execute RestApiCallNode get transport network info",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"transportNetworksResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 718.0004615783691,
-    "y": 938.0006031990051,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "2354042c.5855cc",
-        "d065ad9e.5a092"
-      ]
-    ]
-  },
-  {
-    "id": "20fab8b2.cf42c8",
-    "type": "execute",
-    "name": "execute RestApiCallNode wan port create",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"wanPortResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 691.0005531311035,
-    "y": 1175.000651359558,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "55b035dc.e280bc",
-        "317ef84d.a3fa48"
-      ]
-    ]
-  },
-  {
-    "id": "86f28d21.8ff7e",
-    "type": "switchNode",
-    "name": "switch service-data.vnfs.vnf_length",
-    "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 677.0209350585938,
-    "y": 102.02091217041016,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "63db3e02.79edb",
-        "4a9b0d37.8bb004",
-        "a6fa95c8.c66c58"
-      ]
-    ]
-  },
-  {
-    "id": "63db3e02.79edb",
-    "type": "other",
-    "name": "Null",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 929.0209693908691,
-    "y": 103.02099323272705,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "9de50dea.b6dd6"
-      ]
-    ]
-  },
-  {
-    "id": "9de50dea.b6dd6",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return 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.vnf-request-input.vnf-id not found in service-data\" />\n",
-    "comments": "",
-    "x": 1090.7987174987793,
-    "y": 82.90994024276733,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "4a9b0d37.8bb004",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 922.0213775634766,
-    "y": 136.02099704742432,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "debc8f64.af94a"
-      ]
-    ]
-  },
-  {
-    "id": "debc8f64.af94a",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 945.2908935546875,
-    "y": 234.57559204101562,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "7c8738b1.877ca8",
-        "943a7232.2883e",
-        "b75d8380.35bfa",
-        "13bc1f79.03e581",
-        "53d7471c.3e1cc8"
-      ]
-    ]
-  },
-  {
-    "id": "7c8738b1.877ca8",
-    "type": "for",
-    "name": "for vidx..service-data.vnfs.vnf_length[]",
-    "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1225.3070373535156,
-    "y": 128.44955825805664,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "c2d9f7f0.e01aa8"
-      ]
-    ]
-  },
-  {
-    "id": "943a7232.2883e",
-    "type": "switchNode",
-    "name": "switch tmp.vidx ",
-    "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1151.608341217041,
-    "y": 274.43279361724854,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "ea056417.1dc458"
-      ]
-    ]
-  },
-  {
-    "id": "ea056417.1dc458",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1299.0369834899902,
-    "y": 274.0042037963867,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "b740de23.ab078"
-      ]
-    ]
-  },
-  {
-    "id": "8f939166.1a702",
-    "type": "switchNode",
-    "name": "switch vnfid found",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1598.7362670898438,
-    "y": 127.69972038269043,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "32b14615.3ef46a"
-      ]
-    ]
-  },
-  {
-    "id": "b740de23.ab078",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return 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.vnf-request-input.vnf-id not found in service-data\" />\n",
-    "comments": "",
-    "x": 1448.4657096862793,
-    "y": 275.14712142944336,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "32b14615.3ef46a",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1753.6882591247559,
-    "y": 128.59239959716797,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "d8c80e8.07446f"
-      ]
-    ]
-  },
-  {
-    "id": "bf24dea8.ee4f4",
-    "type": "set",
-    "name": "set tmp.vidx and ctx.vnf-data",
-    "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
-    "comments": "",
-    "x": 2161.220344543457,
-    "y": 38.34245777130127,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "a6fa95c8.c66c58",
-    "type": "outcome",
-    "name": "0",
-    "xml": "<outcome value='0'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 930.9897193908691,
-    "y": 66.98967933654785,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "9de50dea.b6dd6"
-      ]
-    ]
-  },
-  {
-    "id": "833ee131.2bc86",
-    "type": "set",
-    "name": "set device PortId to service data",
-    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='devicePortId' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$prop.wan.devicePortId`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n\n\n\n\n",
-    "comments": "",
-    "x": 657.9908981323242,
-    "y": 1297.991030216217,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "3f244f2b.bb62c",
-    "type": "comment",
-    "name": "Get siteId from site resource created for this service",
-    "info": "",
-    "comments": "",
-    "x": 702.9899826049805,
-    "y": 287.32321643829346,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "c2d9f7f0.e01aa8",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1444.6566696166992,
-    "y": 127.98963832855225,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "8f939166.1a702"
-      ]
-    ]
-  },
-  {
-    "id": "1d544933.c7e8c7",
-    "type": "set",
-    "name": "set vnfId and vnf-object-path",
-    "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",
-    "comments": "",
-    "x": 638.5462112426758,
-    "y": 1440.2129440307617,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "50fcdc11.a23244",
-    "type": "set",
-    "name": "set vnf-level-oper-status to Active",
-    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
-    "comments": "",
-    "x": 655.9906730651855,
-    "y": 1479.990779876709,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "24dcefec.86843",
-    "type": "update",
-    "name": "update SDWAN wan port instance configuration in AAI",
-    "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n      key='wan-port-config.wan-port-config-id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name=\"wan-port-config-id\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name='operational-status' value='Active' />\n<parameter name='device-port-id' value='`$prop.wan.devicePortId`' />\n<parameter name='wan-port-id' value='`$prop.wan.wanPortId`' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 718.6535987854004,
-    "y": 1519.1382417678833,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "d2796204.52637",
-    "type": "set",
-    "name": "set prop.wan.transportNetworkId",
-    "xml": "<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\n",
-    "comments": "",
-    "x": 1472.991542816162,
-    "y": 1014.9906749725342,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "47d46647.d7f098",
-    "type": "for",
-    "name": "for loop sidx - Get siteId from servicedata",
-    "xml": "<for index=\"sidx\" start=\"0\" end=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 682.9900054931641,
-    "y": 437.9898729324341,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "76cf61ce.029d7"
-      ]
-    ]
-  },
-  {
-    "id": "86accd11.8f202",
-    "type": "switchNode",
-    "name": "switch siteId",
-    "xml": "<switch test=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1113.990333557129,
-    "y": 438.99000358581543,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "381535ee.b503aa"
-      ]
-    ]
-  },
-  {
-    "id": "381535ee.b503aa",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1251.9907913208008,
-    "y": 436.98998832702637,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "c7f6c6b6.dd3458"
-      ]
-    ]
-  },
-  {
-    "id": "c7f6c6b6.dd3458",
-    "type": "set",
-    "name": "set prop.wan.siteId",
-    "xml": "<set>\n<parameter name='prop.wan.siteId' value='`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n\n\n",
-    "comments": "",
-    "x": 1415.9908256530762,
-    "y": 438.58984184265137,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "9ac8f49c.624348",
-    "type": "execute",
-    "name": "execute split ip and mask",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.wan.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 641.9903297424316,
-    "y": 1083.3236436843872,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "341a4e7a.2ecb22",
-        "9814af82.14df1"
-      ]
-    ]
-  },
-  {
-    "id": "9814af82.14df1",
-    "type": "failure",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 842.990348815918,
-    "y": 1061.3236351013184,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "5982d587.5c09fc"
-      ]
-    ]
-  },
-  {
-    "id": "341a4e7a.2ecb22",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 842.9903526306152,
-    "y": 1102.3236389160156,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "4b6a103e.cf1d"
-      ]
-    ]
-  },
-  {
-    "id": "5982d587.5c09fc",
-    "type": "set",
-    "name": "set ipAddress prefixLength",
-    "xml": "<set>\n<parameter name='prop.wan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.wan.prefixLength' value='`$ipandMask[1]`' />",
-    "comments": "",
-    "x": 1039.9903678894043,
-    "y": 1059.3236351013184,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "4b6a103e.cf1d",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
-    "comments": "",
-    "x": 997.9903602600098,
-    "y": 1099.3236379623413,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "c179291d.00bde8",
-    "type": "get-resource",
-    "name": "get-resource esr-thirdparty-sdnc",
-    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 657.4901733398438,
-    "y": 535.9899291992188,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "53c5bb3d.7c4004",
-        "c92ee85c.183de8",
-        "7eccd819.0a52e8"
-      ]
-    ]
-  },
-  {
-    "id": "53c5bb3d.7c4004",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 889.4902572631836,
-    "y": 499.98995208740234,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "2956fb6f.87c064"
-      ]
-    ]
-  },
-  {
-    "id": "c92ee85c.183de8",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 891.9811401367188,
-    "y": 535.5639886856079,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "a9b78a3a.3499a8"
-      ]
-    ]
-  },
-  {
-    "id": "7eccd819.0a52e8",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 887.3141479492188,
-    "y": 571.8973474502563,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "47394338.72386c"
-      ]
-    ]
-  },
-  {
-    "id": "47394338.72386c",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
-    "comments": "",
-    "x": 1041.0866394042969,
-    "y": 569.3364343643188,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "a9b78a3a.3499a8",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
-    "comments": "",
-    "x": 1037.5525360107422,
-    "y": 533.8496761322021,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "2956fb6f.87c064",
-    "type": "set",
-    "name": "set controller data",
-    "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
-    "comments": "",
-    "x": 1049.9903678894043,
-    "y": 497.9898920059204,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "a2033bb8.c74a28",
-    "type": "record",
-    "name": "record",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-wanport-vnf-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 595.0000953674316,
-    "y": 158.00003004074097,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "f2405d05.22028",
-    "type": "execute",
-    "name": "execute Properties",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 631.3022193908691,
-    "y": 193.00007390975952,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "c25408f5.164608",
-    "type": "execute",
-    "name": "execute RestApiCallNode Get token",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
-    "comments": "",
-    "outputs": 1,
-    "x": 672.0003051757812,
-    "y": 623.6669311523438,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "5b62dba.23a6724",
-        "b4713e29.c43a8"
-      ]
-    ]
-  },
-  {
-    "id": "5b62dba.23a6724",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 907.000431060791,
-    "y": 609.666919708252,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "c924c712.8a8378"
-      ]
-    ]
-  },
-  {
-    "id": "c924c712.8a8378",
-    "type": "set",
-    "name": "set token-id",
-    "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
-    "comments": "",
-    "x": 1049.0004386901855,
-    "y": 608.6669206619263,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "8c376d8d.f2769",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
-    "comments": "",
-    "x": 1055.0004386901855,
-    "y": 646.0599088668823,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "b4713e29.c43a8",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 906.250431060791,
-    "y": 645.3098268508911,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "8c376d8d.f2769"
-      ]
-    ]
-  },
-  {
-    "id": "332a8bf5.782ff4",
-    "type": "switchNode",
-    "name": "switch transportNetworkName same",
-    "xml": "<switch test=\"`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1112.0011558532715,
-    "y": 972.6670732498169,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "e5f6f7b4.354b98"
-      ]
-    ]
-  },
-  {
-    "id": "e5f6f7b4.354b98",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1325.0006065368652,
-    "y": 972.6669912338257,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "d2796204.52637"
-      ]
-    ]
-  },
-  {
-    "id": "7105dd86.af6c34",
-    "type": "switchNode",
-    "name": "switch ActivateSDWANDeviceInstance",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1539.3336029052734,
-    "y": 205.00005722045898,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "dd40279f.8eeea8"
-      ]
-    ]
-  },
-  {
-    "id": "dd40279f.8eeea8",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1762.3336124420166,
-    "y": 205.00005722045898,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "12149667.72f80a"
-      ]
-    ]
-  },
-  {
-    "id": "c1942dca.f90c1",
-    "type": "set",
-    "name": "set tmp.devicevidx",
-    "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$vidx`' />\n\n",
-    "comments": "",
-    "x": 2727.3329467773438,
-    "y": 636.0000820159912,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "53d7471c.3e1cc8",
-    "type": "switchNode",
-    "name": "switch tmp.devicevidx",
-    "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1192.3335304260254,
-    "y": 363.0001196861267,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "4602555f.435cec"
-      ]
-    ]
-  },
-  {
-    "id": "4602555f.435cec",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1376.7620964050293,
-    "y": 363.57155656814575,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "5520e03f.96b18"
-      ]
-    ]
-  },
-  {
-    "id": "5520e03f.96b18",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"ActivateSDWANDeviceInstance not found in service-data\" />\n",
-    "comments": "",
-    "x": 1517.1908378601074,
-    "y": 363.71443605422974,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "6f8cf23f.0209dc",
-    "type": "comment",
-    "name": "Get deviceId from device resource created for this service",
-    "info": "",
-    "comments": "",
-    "x": 2176.6668853759766,
-    "y": 302.33333587646484,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "489eb82a.f952c8",
-    "type": "for",
-    "name": "for loop didx - Get deviceId from servicedata",
-    "xml": "<for index=\"didx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2162.667095184326,
-    "y": 225.99997997283936,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "a840f568.e72fe8"
-      ]
-    ]
-  },
-  {
-    "id": "b3441b30.aa4ab8",
-    "type": "switchNode",
-    "name": "switch name (DeviceName)",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'name'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2180.667694091797,
-    "y": 364.0002250671387,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "fc0b9b1d.28c708"
-      ]
-    ]
-  },
-  {
-    "id": "fc0b9b1d.28c708",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2382.668186187744,
-    "y": 358.0002851486206,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "b4f179c9.a214f8"
-      ]
-    ]
-  },
-  {
-    "id": "76cf61ce.029d7",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 945.0001983642578,
-    "y": 438.66669750213623,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "86accd11.8f202"
-      ]
-    ]
-  },
-  {
-    "id": "a840f568.e72fe8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1954.999984741211,
-    "y": 362.6667261123657,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "b3441b30.aa4ab8"
-      ]
-    ]
-  },
-  {
-    "id": "556d9445.4f2e4c",
-    "type": "switchNode",
-    "name": "switch deviceId",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3026.0011444091797,
-    "y": 576.6670227050781,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "4439d129.bb0b6"
-      ]
-    ]
-  },
-  {
-    "id": "4439d129.bb0b6",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3179.0015144348145,
-    "y": 577.6670999526978,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "8f56b9b3.9c5728"
-      ]
-    ]
-  },
-  {
-    "id": "8f56b9b3.9c5728",
-    "type": "set",
-    "name": "set prop.wan.deviceId",
-    "xml": "<set>\n<parameter name='prop.wan.deviceId' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n",
-    "comments": "",
-    "x": 3348.0021209716797,
-    "y": 576.2671346664429,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "12149667.72f80a",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1903.6669311523438,
-    "y": 227.00007724761963,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "489eb82a.f952c8"
-      ]
-    ]
-  },
-  {
-    "id": "b4f179c9.a214f8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 2201.0012283325195,
-    "y": 441.0002546310425,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "41b636f7.4605d8"
-      ]
-    ]
-  },
-  {
-    "id": "3c83342b.bff06c",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2590.0019340515137,
-    "y": 444.00037956237793,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "d216e689.2df0f8"
-      ]
-    ]
-  },
-  {
-    "id": "d8c80e8.07446f",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 1892.3337783813477,
-    "y": 129.00003337860107,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "bf24dea8.ee4f4",
-        "b88755ee.f99b38",
-        "be26bd6d.b6d6a",
-        "d34abb03.648a78"
-      ]
-    ]
-  },
-  {
-    "id": "6f1e3f39.5773",
-    "type": "set",
-    "name": "set prop.wan.wanPortId",
-    "xml": "<set>\n<parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\n",
-    "comments": "",
-    "x": 639.3246231079102,
-    "y": 1239.6573944091797,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "37df268d.80523a",
-    "type": "set",
-    "name": "set prop.wan.devicePortId",
-    "xml": "<set>\n<parameter name='prop.wan.devicePortId' value='`$portResp.success[0].id`' />\n",
-    "comments": "",
-    "x": 649.9913177490234,
-    "y": 820.9906539916992,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "99c82c97.d67a7",
-    "type": "comment",
-    "name": "Create port",
-    "info": "",
-    "comments": "",
-    "x": 597.0000495910645,
-    "y": 725.3335218429565,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "5cfea39.096ff5c",
-    "type": "comment",
-    "name": "Get network id",
-    "info": "",
-    "comments": "",
-    "x": 648.0001220703125,
-    "y": 903.3334802985191,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "d44c9330.7b098",
-    "type": "comment",
-    "name": "Create wan port",
-    "info": "",
-    "comments": "",
-    "x": 615.0002059936523,
-    "y": 1036.3336935043335,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "317ef84d.a3fa48",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 977.0001220703125,
-    "y": 1135.0002393722534,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "12534eac.cdc831"
-      ]
-    ]
-  },
-  {
-    "id": "55b035dc.e280bc",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 977.0001182556152,
-    "y": 1175.0004043579102,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "9238f861.a33ef8"
-      ]
-    ]
-  },
-  {
-    "id": "9238f861.a33ef8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1121.0001335144043,
-    "y": 1174.000241279602,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "12534eac.cdc831",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create wan port rest api\" />\n",
-    "comments": "",
-    "x": 1119.0004539489746,
-    "y": 1134.0002393722534,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "d065ad9e.5a092",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1024.0000495910645,
-    "y": 886.0001783370972,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "1b98a4a8.664bdb"
-      ]
-    ]
-  },
-  {
-    "id": "2354042c.5855cc",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1024.0000457763672,
-    "y": 926.0003433227539,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "8ba4e30f.14b38"
-      ]
-    ]
-  },
-  {
-    "id": "8ba4e30f.14b38",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "comments": "",
-    "outputs": 1,
-    "x": 1168.0000610351562,
-    "y": 925.0001802444458,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "1b98a4a8.664bdb",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Get transport network info rest api\" />\n",
-    "comments": "",
-    "x": 1166.0003814697266,
-    "y": 885.0001783370972,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "be26bd6d.b6d6a",
-    "type": "call",
-    "name": "call sdwan-get-wan-param",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2164.666633605957,
-    "y": 135.0000762939453,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "b88755ee.f99b38",
-    "type": "set",
-    "name": "set vnf-request-input.",
-    "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
-    "comments": "",
-    "x": 2133.666633605957,
-    "y": 85.00009346008301,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "bb494b87.830e28",
-    "type": "comment",
-    "name": "This is also required for template parameters update",
-    "info": "",
-    "comments": "",
-    "x": 2529.0003967285156,
-    "y": 181.00003623962402,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "c939644e.f0b858",
-    "type": "switchNode",
-    "name": "switch ActivateSiteInstance",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1502.0004425048828,
-    "y": 170.00004959106445,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "89f80af3.346938"
-      ]
-    ]
-  },
-  {
-    "id": "89f80af3.346938",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1698.0006256103516,
-    "y": 171.00004959106445,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "5dd3893f.4a7ea8"
-      ]
-    ]
-  },
-  {
-    "id": "5dd3893f.4a7ea8",
-    "type": "set",
-    "name": "set tmp.siteVidx",
-    "xml": "<set>\n<parameter name='tmp.siteVidx' value='`$vidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vidx].`' />\n\n",
-    "comments": "",
-    "x": 1883.9999237060547,
-    "y": 168.00005340576172,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "13bc1f79.03e581",
-    "type": "switchNode",
-    "name": "switch tmp.siteVidx",
-    "xml": "<switch test=\"`$tmp.siteVidx`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1175.6667518615723,
-    "y": 312.00007009506226,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "e4930b56.8a59f8"
-      ]
-    ]
-  },
-  {
-    "id": "e4930b56.8a59f8",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1350.0954627990723,
-    "y": 312.5715217590332,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "a5febd63.c2db7"
-      ]
-    ]
-  },
-  {
-    "id": "a5febd63.c2db7",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"ActivateSiteInstance not found in service-data\" />\n",
-    "comments": "",
-    "x": 1492.5241813659668,
-    "y": 311.71438455581665,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "41b636f7.4605d8",
-    "type": "switchNode",
-    "name": "switch deviceName match",
-    "xml": "<switch test=\"`$prop.wan.deviceName == $service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].value`\">\n\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2406.667953491211,
-    "y": 442.0003185272217,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "3c83342b.bff06c"
-      ]
-    ]
-  },
-  {
-    "id": "d216e689.2df0f8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 2489.3338928222656,
-    "y": 516.0001621246338,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "93f36ff6.faafe",
-        "c1942dca.f90c1"
-      ]
-    ]
-  },
-  {
-    "id": "93f36ff6.faafe",
-    "type": "for",
-    "name": "for loop deviceidx - Get deviceId from servicedata",
-    "xml": "<for index=\"deviceidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2769.5310440063477,
-    "y": 511.03135108947754,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "e2b7f439.b0d4b8"
-      ]
-    ]
-  },
-  {
-    "id": "e2b7f439.b0d4b8",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 2846.5317764282227,
-    "y": 575.0314502716064,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "556d9445.4f2e4c"
-      ]
-    ]
-  },
-  {
-    "id": "d34abb03.648a78",
-    "type": "record",
-    "name": "record",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\".....\"/>\n<parameter name=\"field3\" value=\"prop.wan.deviceName\"/>\n<parameter name=\"field4\" value='`$prop.wan.deviceName`'/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2092.531379699707,
-    "y": 183.0312671661377,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "b75d8380.35bfa",
-    "type": "for",
-    "name": "for vidx..service-data.vnfs.vnf_length[]",
-    "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1218.000072479248,
-    "y": 206.0000171661377,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "7105dd86.af6c34",
-        "c939644e.f0b858"
-      ]
-    ]
-  },
-  {
-    "id": "ec56abe8.7b3a98",
-    "type": "set",
-    "name": "copy input data to service data",
-    "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",
-    "comments": "",
-    "x": 651.0312652587891,
-    "y": 1394.5312538146973,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "fdc70d4e.6c354",
-    "type": "comment",
-    "name": "TODO: split ip/mask",
-    "info": "",
-    "comments": "",
-    "x": 1039,
-    "y": 1021.5039072036743,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "cb21e48e.93ff78",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 891.0008735656738,
-    "y": 974.3337669372559,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "332a8bf5.782ff4"
-      ]
-    ]
-  },
-  {
-    "id": "d3956bf2.5c5588",
-    "type": "for",
-    "name": "for loop tidx - Get transportNetwork ID",
-    "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 675.0004920959473,
-    "y": 973.3335227966309,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      [
-        "cb21e48e.93ff78"
-      ]
-    ]
-  },
-  {
-    "id": "f462086d.871178",
-    "type": "set",
-    "name": "set wan portId to service data",
-    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='wanPortId' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$prop.wan.wanPortId`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n\n\n\n\n",
-    "comments": "",
-    "x": 651.9999923706055,
-    "y": 1344.2500953674316,
-    "z": "c5494b7.49969b8",
-    "wires": []
-  },
-  {
-    "id": "589c7732.243f08",
-    "type": "call",
-    "name": "call sdwan-get-tenant-auth",
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 647,
-    "y": 679,
-    "z": "c5494b7.49969b8",
-    "wires": [
-      []
-    ]
-  }
-]
+[{"id":"46d6fdfc.0d3d74","type":"dgstart","name":"DGSTART","outputs":1,"x":142.00390625,"y":70.00390625,"z":"941656e1.8095c8","wires":[["3dff9ac3.bb3cb6"]]},{"id":"3dff9ac3.bb3cb6","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":273.2895965576172,"y":119.24201488494873,"z":"941656e1.8095c8","wires":[["2ef3e2.eacdfc1e"]]},{"id":"2ef3e2.eacdfc1e","type":"method","name":"method sdwan-vnf-topology-operation-wanport-activate","xml":"<method rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync'>\n","comments":"","outputs":1,"x":276.4325256347656,"y":204.00393867492676,"z":"941656e1.8095c8","wires":[["4424dee4.7277c"]]},{"id":"4424dee4.7277c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":339.67066192626953,"y":809.670895576477,"z":"941656e1.8095c8","wires":[["6e86cc91.e0dec4","5bdbf2ca.b4e3dc","151081d2.0192fe","c29d81d2.26164","a2e7cf45.ff9e2","38e08d51.507ad2","94bebe02.1a335","a5bbfdf4.35473","a43c9c13.d97cd","32a8d1f7.681cde","92918d15.6311e","11b93136.6ca9cf","539afc44.b0e354","141979cd.9670c6","b7e436fa.b674a8","1b1c84a1.cf917b","c375f7fa.294358","811217d2.ba2838","d9fd9ca8.ebcd1","626cbb77.e952f4"]]},{"id":"6e86cc91.e0dec4","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n","comments":"","x":666.338436126709,"y":1541.3386178016663,"z":"941656e1.8095c8","wires":[]},{"id":"32a8d1f7.681cde","type":"execute","name":"execute RestApiCallNode device port create","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />","comments":"","outputs":1,"x":754.3380165100098,"y":804.893404006958,"z":"941656e1.8095c8","wires":[["5cc9a68e.86df28","fed901a6.fef5b"]]},{"id":"5cc9a68e.86df28","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1003.3380756378174,"y":818.8936100006104,"z":"941656e1.8095c8","wires":[["19629438.2f203c"]]},{"id":"fed901a6.fef5b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1003.3380756378174,"y":780.8934454917908,"z":"941656e1.8095c8","wires":[["b43125d5.1cbe28"]]},{"id":"b43125d5.1cbe28","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create device port rest api\" />\n","comments":"","x":1147.3384094238281,"y":779.8934450149536,"z":"941656e1.8095c8","wires":[]},{"id":"19629438.2f203c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1150.3380870819092,"y":819.8934488296509,"z":"941656e1.8095c8","wires":[[]]},{"id":"92918d15.6311e","type":"execute","name":"execute RestApiCallNode get transport network info","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"transportNetworksResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />","comments":"","outputs":1,"x":777.0043678283691,"y":984.0045094490051,"z":"941656e1.8095c8","wires":[["3327c1fb.4d24fe","c55988fe.a0e798"]]},{"id":"539afc44.b0e354","type":"execute","name":"execute RestApiCallNode wan port create","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"wanPortResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />","comments":"","outputs":1,"x":750.0044593811035,"y":1221.004557609558,"z":"941656e1.8095c8","wires":[["ad0f8d25.41a07","6aa8a6c5.0c81c8"]]},{"id":"5bdbf2ca.b4e3dc","type":"switchNode","name":"switch service-data.vnfs.vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":736.0248413085938,"y":148.02481842041016,"z":"941656e1.8095c8","wires":[["a576fae9.715c48","c3727d96.694c","c11796b3.901648"]]},{"id":"a576fae9.715c48","type":"other","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":988.0248756408691,"y":149.02489948272705,"z":"941656e1.8095c8","wires":[["5f0271db.92f1e"]]},{"id":"5f0271db.92f1e","type":"returnFailure","name":"return failure","xml":"<return 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.vnf-request-input.vnf-id not found in service-data\" />\n","comments":"","x":1149.8026237487793,"y":128.91384649276733,"z":"941656e1.8095c8","wires":[]},{"id":"c3727d96.694c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":981.0252838134766,"y":182.02490329742432,"z":"941656e1.8095c8","wires":[["dfdaa60f.2c4798"]]},{"id":"dfdaa60f.2c4798","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1004.2947998046875,"y":280.5794982910156,"z":"941656e1.8095c8","wires":[["29ab81e8.aad05e","1ff5f2ad.bd779d","d40815b2.6f0e48","ae71fbba.546708","cda43949.a48508"]]},{"id":"29ab81e8.aad05e","type":"for","name":"for vidx..service-data.vnfs.vnf_length[]","xml":"<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1284.3109436035156,"y":174.45346450805664,"z":"941656e1.8095c8","wires":[["27d5ec0c.5024d4"]]},{"id":"1ff5f2ad.bd779d","type":"switchNode","name":"switch tmp.vidx ","xml":"<switch test=\"`$tmp.vidx`\">\n\n","comments":"","outputs":1,"x":1210.612247467041,"y":320.43669986724854,"z":"941656e1.8095c8","wires":[["e7d084a0.2326d8"]]},{"id":"e7d084a0.2326d8","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1358.0408897399902,"y":320.0081100463867,"z":"941656e1.8095c8","wires":[["2ada3281.d776de"]]},{"id":"d3e4c80f.d09fa8","type":"switchNode","name":"switch vnfid found","xml":"<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n","comments":"","outputs":1,"x":1657.7401733398438,"y":173.70362663269043,"z":"941656e1.8095c8","wires":[["2986fb68.2295a4"]]},{"id":"2ada3281.d776de","type":"returnFailure","name":"return failure","xml":"<return 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.vnf-request-input.vnf-id not found in service-data\" />\n","comments":"","x":1507.4696159362793,"y":321.15102767944336,"z":"941656e1.8095c8","wires":[]},{"id":"2986fb68.2295a4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1812.6921653747559,"y":174.59630584716797,"z":"941656e1.8095c8","wires":[["18f7dec7.63c771"]]},{"id":"c972958e.ff1258","type":"set","name":"set tmp.vidx and ctx.vnf-data","xml":"<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n","comments":"","x":2220.224250793457,"y":84.34636402130127,"z":"941656e1.8095c8","wires":[]},{"id":"c11796b3.901648","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":989.9936256408691,"y":112.99358558654785,"z":"941656e1.8095c8","wires":[["5f0271db.92f1e"]]},{"id":"141979cd.9670c6","type":"set","name":"set device PortId to service data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='devicePortId' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$prop.wan.devicePortId`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n\n\n\n\n","comments":"","x":718.9948272705078,"y":1277.9951152801514,"z":"941656e1.8095c8","wires":[]},{"id":"40c1c1e5.e807e","type":"comment","name":"Get siteId from site resource created for this service","info":"","comments":"","x":761.9938888549805,"y":333.32712268829346,"z":"941656e1.8095c8","wires":[]},{"id":"27d5ec0c.5024d4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1503.6605758666992,"y":173.99354457855225,"z":"941656e1.8095c8","wires":[["d3e4c80f.d09fa8"]]},{"id":"151081d2.0192fe","type":"set","name":"set vnfId and vnf-object-path","xml":"<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />","comments":"","x":699.5501403808594,"y":1420.217029094696,"z":"941656e1.8095c8","wires":[]},{"id":"c29d81d2.26164","type":"set","name":"set vnf-level-oper-status to Active","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n","comments":"","x":716.9946022033691,"y":1459.9948649406433,"z":"941656e1.8095c8","wires":[]},{"id":"d9fd9ca8.ebcd1","type":"update","name":"update SDWAN wan port instance configuration in AAI","xml":"<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n      key='wan-port-config.wan-port-config-id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name=\"wan-port-config-id\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name='operational-status' value='Active' />\n<parameter name='device-port-id' value='`$prop.wan.devicePortId`' />\n<parameter name='wan-port-id' value='`$prop.wan.wanPortId`' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n","comments":"","outputs":1,"x":779.657527923584,"y":1499.1423268318176,"z":"941656e1.8095c8","wires":[[]]},{"id":"540113a8.f6e3bc","type":"set","name":"set prop.wan.transportNetworkId","xml":"<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\n","comments":"","x":1531.995449066162,"y":1060.9945812225342,"z":"941656e1.8095c8","wires":[]},{"id":"811217d2.ba2838","type":"for","name":"for loop sidx - Get siteId from servicedata","xml":"<for index=\"sidx\" start=\"0\" end=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":741.9939117431641,"y":483.9937791824341,"z":"941656e1.8095c8","wires":[["5a526d31.0941f4"]]},{"id":"eb17c95f.c77458","type":"switchNode","name":"switch siteId","xml":"<switch test=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n","comments":"","outputs":1,"x":1172.994239807129,"y":484.99390983581543,"z":"941656e1.8095c8","wires":[["fec4cb2a.2c7e38"]]},{"id":"fec4cb2a.2c7e38","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1310.9946975708008,"y":482.99389457702637,"z":"941656e1.8095c8","wires":[["b43cbcc4.04945"]]},{"id":"b43cbcc4.04945","type":"set","name":"set prop.wan.siteId","xml":"<set>\n<parameter name='prop.wan.siteId' value='`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n\n\n","comments":"","x":1474.9947319030762,"y":484.59374809265137,"z":"941656e1.8095c8","wires":[]},{"id":"11b93136.6ca9cf","type":"execute","name":"execute split ip and mask","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.wan.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n","comments":"","outputs":1,"x":700.9942359924316,"y":1129.3275499343872,"z":"941656e1.8095c8","wires":[["8bee1efd.9d6b2","15fadf5a.5c3931"]]},{"id":"15fadf5a.5c3931","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":901.994255065918,"y":1107.3275413513184,"z":"941656e1.8095c8","wires":[["8296d7d6.8486f8"]]},{"id":"8bee1efd.9d6b2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":901.9942588806152,"y":1148.3275451660156,"z":"941656e1.8095c8","wires":[["202ce5b1.58685a"]]},{"id":"8296d7d6.8486f8","type":"set","name":"set ipAddress prefixLength","xml":"<set>\n<parameter name='prop.wan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.wan.prefixLength' value='`$ipandMask[1]`' />","comments":"","x":1098.9942741394043,"y":1105.3275413513184,"z":"941656e1.8095c8","wires":[]},{"id":"202ce5b1.58685a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n","comments":"","x":1056.9942665100098,"y":1145.3275442123413,"z":"941656e1.8095c8","wires":[]},{"id":"a5bbfdf4.35473","type":"get-resource","name":"get-resource esr-thirdparty-sdnc","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n","comments":"","outputs":1,"x":716.4940795898438,"y":581.9938354492188,"z":"941656e1.8095c8","wires":[["a1fae638.ce0e38","c7e4f763.873648","695a6a89.62d134"]]},{"id":"a1fae638.ce0e38","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":948.4941635131836,"y":545.9938583374023,"z":"941656e1.8095c8","wires":[["43c09877.81b248"]]},{"id":"c7e4f763.873648","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":950.9850463867188,"y":581.5678949356079,"z":"941656e1.8095c8","wires":[["7bb99ede.125ea"]]},{"id":"695a6a89.62d134","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":946.3180541992188,"y":617.9012537002563,"z":"941656e1.8095c8","wires":[["7755af9b.62a34"]]},{"id":"7755af9b.62a34","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n","comments":"","x":1100.0905456542969,"y":615.3403406143188,"z":"941656e1.8095c8","wires":[]},{"id":"7bb99ede.125ea","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n","comments":"","x":1096.5564422607422,"y":579.8535823822021,"z":"941656e1.8095c8","wires":[]},{"id":"43c09877.81b248","type":"set","name":"set controller data","xml":"<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n","comments":"","x":1108.9942741394043,"y":543.9937982559204,"z":"941656e1.8095c8","wires":[]},{"id":"a2e7cf45.ff9e2","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-wanport-vnf-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n","comments":"","outputs":1,"x":654.0040016174316,"y":204.00393629074097,"z":"941656e1.8095c8","wires":[[]]},{"id":"38e08d51.507ad2","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":690.3061256408691,"y":239.00398015975952,"z":"941656e1.8095c8","wires":[[]]},{"id":"a43c9c13.d97cd","type":"execute","name":"execute RestApiCallNode Get token","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>","comments":"","outputs":1,"x":731.0042114257812,"y":669.6708374023438,"z":"941656e1.8095c8","wires":[["7b139fe2.0d3ea","5f5e8987.ed1188"]]},{"id":"7b139fe2.0d3ea","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":966.004337310791,"y":655.670825958252,"z":"941656e1.8095c8","wires":[["64afeedb.7ff63"]]},{"id":"64afeedb.7ff63","type":"set","name":"set token-id","xml":"<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n","comments":"","x":1108.0043449401855,"y":654.6708269119263,"z":"941656e1.8095c8","wires":[]},{"id":"8c817f35.4dc83","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n","comments":"","x":1114.0043449401855,"y":692.0638151168823,"z":"941656e1.8095c8","wires":[]},{"id":"5f5e8987.ed1188","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":965.254337310791,"y":691.3137331008911,"z":"941656e1.8095c8","wires":[["8c817f35.4dc83"]]},{"id":"550c76f1.771f98","type":"switchNode","name":"switch transportNetworkName same","xml":"<switch test=\"`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n","comments":"","outputs":1,"x":1171.0050621032715,"y":1018.6709794998169,"z":"941656e1.8095c8","wires":[["32465786.9bb1f8"]]},{"id":"32465786.9bb1f8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1384.0045127868652,"y":1018.6708974838257,"z":"941656e1.8095c8","wires":[["540113a8.f6e3bc"]]},{"id":"f0dc5ee5.ceaf8","type":"switchNode","name":"switch ActivateSDWANDeviceInstance","xml":"<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n","comments":"","outputs":1,"x":1598.3375091552734,"y":251.00396347045898,"z":"941656e1.8095c8","wires":[["f3b0bb97.35fe78"]]},{"id":"f3b0bb97.35fe78","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1821.3375186920166,"y":251.00396347045898,"z":"941656e1.8095c8","wires":[["8f1b5c96.10d07"]]},{"id":"9ea18cc5.bcded","type":"set","name":"set tmp.devicevidx","xml":"<set>\n<parameter name='tmp.devicevidx' value='`$vidx`' />\n\n","comments":"","x":2786.3368530273438,"y":682.0039882659912,"z":"941656e1.8095c8","wires":[]},{"id":"cda43949.a48508","type":"switchNode","name":"switch tmp.devicevidx","xml":"<switch test=\"`$tmp.devicevidx`\">\n\n","comments":"","outputs":1,"x":1251.3374366760254,"y":409.0040259361267,"z":"941656e1.8095c8","wires":[["cab806dc.723728"]]},{"id":"cab806dc.723728","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1435.7660026550293,"y":409.57546281814575,"z":"941656e1.8095c8","wires":[["ce137ba4.ab4808"]]},{"id":"ce137ba4.ab4808","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"ActivateSDWANDeviceInstance not found in service-data\" />\n","comments":"","x":1576.1947441101074,"y":409.71834230422974,"z":"941656e1.8095c8","wires":[]},{"id":"273aead0.9eb3a6","type":"comment","name":"Get deviceId from device resource created for this service","info":"","comments":"","x":2235.6707916259766,"y":348.33724212646484,"z":"941656e1.8095c8","wires":[]},{"id":"4e13b56.4d1d64c","type":"for","name":"for loop didx - Get deviceId from servicedata","xml":"<for index=\"didx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2221.671001434326,"y":272.00388622283936,"z":"941656e1.8095c8","wires":[["92766af3.12d248"]]},{"id":"c477fc4d.b0d32","type":"switchNode","name":"switch name (DeviceName)","xml":"<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'name'`\">\n","comments":"","outputs":1,"x":2239.671600341797,"y":410.0041313171387,"z":"941656e1.8095c8","wires":[["41bc9702.e49d18"]]},{"id":"41bc9702.e49d18","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2441.672092437744,"y":404.0041913986206,"z":"941656e1.8095c8","wires":[["2a414e7.1dfdeb2"]]},{"id":"5a526d31.0941f4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1004.0041046142578,"y":484.67060375213623,"z":"941656e1.8095c8","wires":[["eb17c95f.c77458"]]},{"id":"92766af3.12d248","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2014.003890991211,"y":408.6706323623657,"z":"941656e1.8095c8","wires":[["c477fc4d.b0d32"]]},{"id":"300379eb.34eba6","type":"switchNode","name":"switch deviceId","xml":"<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n","comments":"","outputs":1,"x":3085.0050506591797,"y":622.6709289550781,"z":"941656e1.8095c8","wires":[["1e04fb03.c02275"]]},{"id":"1e04fb03.c02275","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3238.0054206848145,"y":623.6710062026978,"z":"941656e1.8095c8","wires":[["febe1667.67dc28"]]},{"id":"febe1667.67dc28","type":"set","name":"set prop.wan.deviceId","xml":"<set>\n<parameter name='prop.wan.deviceId' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n","comments":"","x":3407.0060272216797,"y":622.2710409164429,"z":"941656e1.8095c8","wires":[]},{"id":"8f1b5c96.10d07","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1962.6708374023438,"y":273.00398349761963,"z":"941656e1.8095c8","wires":[["4e13b56.4d1d64c"]]},{"id":"2a414e7.1dfdeb2","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2260.0051345825195,"y":487.0041608810425,"z":"941656e1.8095c8","wires":[["97c6ed04.8c4b6"]]},{"id":"7cbc77f3.7157c8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2649.0058403015137,"y":490.00428581237793,"z":"941656e1.8095c8","wires":[["fc9feae5.213678"]]},{"id":"18f7dec7.63c771","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1951.3376846313477,"y":175.00393962860107,"z":"941656e1.8095c8","wires":[["c972958e.ff1258","20413b2e.a4e934","d5207b14.483ab8","4003ca14.00a3a4"]]},{"id":"54164621.634478","type":"set","name":"set prop.wan.wanPortId","xml":"<set>\n<parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\n","comments":"","x":1326.3287029266357,"y":1239.6612844467163,"z":"941656e1.8095c8","wires":[]},{"id":"b7e436fa.b674a8","type":"set","name":"set prop.wan.devicePortId","xml":"<set>\n<parameter name='prop.wan.devicePortId' value='`$portResp.success[0].id`' />\n","comments":"","x":708.9952239990234,"y":866.9945602416992,"z":"941656e1.8095c8","wires":[]},{"id":"147912c.8f205ed","type":"comment","name":"Create port","info":"","comments":"","x":656.0039558410645,"y":771.3374280929565,"z":"941656e1.8095c8","wires":[]},{"id":"f901209e.dc4fb","type":"comment","name":"Get network id","info":"","comments":"","x":707.0040283203125,"y":949.3373865485191,"z":"941656e1.8095c8","wires":[]},{"id":"166789be.de4306","type":"comment","name":"Create wan port","info":"","comments":"","x":674.0041122436523,"y":1082.3375997543335,"z":"941656e1.8095c8","wires":[]},{"id":"6aa8a6c5.0c81c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":986.0041160583496,"y":1207.0041790008545,"z":"941656e1.8095c8","wires":[["c6f20e4e.e6f5"]]},{"id":"ad0f8d25.41a07","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":990.0040855407715,"y":1241.004285812378,"z":"941656e1.8095c8","wires":[["4d940881.eaca88"]]},{"id":"4d940881.eaca88","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1134.0041007995605,"y":1240.0041227340698,"z":"941656e1.8095c8","wires":[["54164621.634478"]]},{"id":"93fe9fd5.c023","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create wan port rest api\" />\n","comments":"","x":1308.004482269287,"y":1206.004210472107,"z":"941656e1.8095c8","wires":[]},{"id":"c55988fe.a0e798","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1083.0039558410645,"y":932.0040845870972,"z":"941656e1.8095c8","wires":[["3bae7b03.73d364"]]},{"id":"3327c1fb.4d24fe","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1083.0039520263672,"y":972.0042495727539,"z":"941656e1.8095c8","wires":[["f0b104fa.c0deb8"]]},{"id":"f0b104fa.c0deb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1227.0039672851562,"y":971.0040864944458,"z":"941656e1.8095c8","wires":[[]]},{"id":"3bae7b03.73d364","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Get transport network info rest api\" />\n","comments":"","x":1225.0042877197266,"y":931.0040845870972,"z":"941656e1.8095c8","wires":[]},{"id":"d5207b14.483ab8","type":"call","name":"call sdwan-get-wan-param","xml":"<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n","comments":"","outputs":1,"x":2223.670539855957,"y":181.0039825439453,"z":"941656e1.8095c8","wires":[[]]},{"id":"20413b2e.a4e934","type":"set","name":"set vnf-request-input.","xml":"<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n","comments":"","x":2192.670539855957,"y":131.003999710083,"z":"941656e1.8095c8","wires":[]},{"id":"5b0f6055.7179","type":"comment","name":"This is also required for template parameters update","info":"","comments":"","x":2588.0043029785156,"y":227.00394248962402,"z":"941656e1.8095c8","wires":[]},{"id":"50e23754.b09268","type":"switchNode","name":"switch ActivateSiteInstance","xml":"<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n","comments":"","outputs":1,"x":1561.0043487548828,"y":216.00395584106445,"z":"941656e1.8095c8","wires":[["97fa566d.a78ef8"]]},{"id":"97fa566d.a78ef8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1757.0045318603516,"y":217.00395584106445,"z":"941656e1.8095c8","wires":[["f588a589.b88298"]]},{"id":"f588a589.b88298","type":"set","name":"set tmp.siteVidx","xml":"<set>\n<parameter name='tmp.siteVidx' value='`$vidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vidx].`' />\n\n","comments":"","x":1943.0038299560547,"y":214.00395965576172,"z":"941656e1.8095c8","wires":[]},{"id":"ae71fbba.546708","type":"switchNode","name":"switch tmp.siteVidx","xml":"<switch test=\"`$tmp.siteVidx`\">\n\n","comments":"","outputs":1,"x":1234.6706581115723,"y":358.00397634506226,"z":"941656e1.8095c8","wires":[["3f02b2e3.e5e5ae"]]},{"id":"3f02b2e3.e5e5ae","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1409.0993690490723,"y":358.5754280090332,"z":"941656e1.8095c8","wires":[["54b3eb72.36f954"]]},{"id":"54b3eb72.36f954","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"ActivateSiteInstance not found in service-data\" />\n","comments":"","x":1551.5280876159668,"y":357.71829080581665,"z":"941656e1.8095c8","wires":[]},{"id":"97c6ed04.8c4b6","type":"switchNode","name":"switch deviceName match","xml":"<switch test=\"`$prop.wan.deviceName == $service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].value`\">\n\n\n","comments":"","outputs":1,"x":2465.671859741211,"y":488.0042247772217,"z":"941656e1.8095c8","wires":[["7cbc77f3.7157c8"]]},{"id":"fc9feae5.213678","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2548.3377990722656,"y":562.0040683746338,"z":"941656e1.8095c8","wires":[["6c43560b.6674b8","9ea18cc5.bcded"]]},{"id":"6c43560b.6674b8","type":"for","name":"for loop deviceidx - Get deviceId from servicedata","xml":"<for index=\"deviceidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2828.5349502563477,"y":557.0352573394775,"z":"941656e1.8095c8","wires":[["95b06241.a3403"]]},{"id":"95b06241.a3403","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2905.5356826782227,"y":621.0353565216064,"z":"941656e1.8095c8","wires":[["300379eb.34eba6"]]},{"id":"4003ca14.00a3a4","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\".....\"/>\n<parameter name=\"field3\" value=\"prop.wan.deviceName\"/>\n<parameter name=\"field4\" value='`$prop.wan.deviceName`'/>\n","comments":"","outputs":1,"x":2151.535285949707,"y":229.0351734161377,"z":"941656e1.8095c8","wires":[[]]},{"id":"d40815b2.6f0e48","type":"for","name":"for vidx..service-data.vnfs.vnf_length[]","xml":"<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1277.003978729248,"y":252.0039234161377,"z":"941656e1.8095c8","wires":[["f0dc5ee5.ceaf8","50e23754.b09268"]]},{"id":"94bebe02.1a335","type":"set","name":"copy input data to service data","xml":"<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />","comments":"","x":712.0351943969727,"y":1374.5353388786316,"z":"941656e1.8095c8","wires":[]},{"id":"83fdb698.dfc008","type":"comment","name":"TODO: split ip/mask","info":"","comments":"","x":1098.00390625,"y":1067.5078134536743,"z":"941656e1.8095c8","wires":[]},{"id":"538e6756.86b638","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":950.0047798156738,"y":1020.3376731872559,"z":"941656e1.8095c8","wires":[["550c76f1.771f98"]]},{"id":"1b1c84a1.cf917b","type":"for","name":"for loop tidx - Get transportNetwork ID","xml":"<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n    \n    \n","comments":"","outputs":1,"x":734.0043983459473,"y":1019.3374290466309,"z":"941656e1.8095c8","wires":[["538e6756.86b638"]]},{"id":"c375f7fa.294358","type":"set","name":"set wan portId to service data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='wanPortId' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$prop.wan.wanPortId`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n\n\n\n\n","comments":"","x":713.0039215087891,"y":1324.254180431366,"z":"941656e1.8095c8","wires":[]},{"id":"626cbb77.e952f4","type":"call","name":"call sdwan-get-tenant-auth","xml":"<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n","comments":"","outputs":1,"x":706.00390625,"y":725.00390625,"z":"941656e1.8095c8","wires":[[]]},{"id":"c6f20e4e.e6f5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1130.0079612731934,"y":1205.5078706741333,"z":"941656e1.8095c8","wires":[[]]}]
\ No newline at end of file
index d90a5cc..f6eb610 100644 (file)
@@ -1,4059 +1 @@
-[
-  {
-    "id": "8722df6b.da333",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 118,
-    "y": 57,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "5f0a72e7.8810fc"
-      ]
-    ]
-  },
-  {
-    "id": "5f0a72e7.8810fc",
-    "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": 234.2856903076172,
-    "y": 108.23810768127441,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "a6501208.be07a"
-      ]
-    ]
-  },
-  {
-    "id": "a6501208.be07a",
-    "type": "method",
-    "name": "method sdwan-wanport-vnf-topology-operation-underlay",
-    "xml": "<method rpc='sdwan-wanport-vnf-topology-operation-underlay' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 237.42861938476562,
-    "y": 193.00003147125244,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "fbe9ed1f.31b14"
-      ]
-    ]
-  },
-  {
-    "id": "fbe9ed1f.31b14",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
-    "outputs": 1,
-    "x": 169.66668701171875,
-    "y": 301.66673278808594,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "ba308345.6a0be",
-        "723ddf07.218d1",
-        "431fc2f2.17609c",
-        "38f6b67d.380b9a",
-        "32bd7569.5de31a"
-      ]
-    ]
-  },
-  {
-    "id": "ba308345.6a0be",
-    "type": "for",
-    "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
-    "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 604.000431060791,
-    "y": 440.6668539047241,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "88f8bb94.113e88"
-      ]
-    ]
-  },
-  {
-    "id": "2cdd7d19.2083a2",
-    "type": "set",
-    "name": "set prop.ar.allotted-resource-id",
-    "xml": "<set>\n<parameter name='prop.ar.allotted-resource-id' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id`' />\n",
-    "comments": "",
-    "x": 1394.0013427734375,
-    "y": 129.9687786102295,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "f2739d06.3f82a",
-    "type": "comment",
-    "name": "Query MDSAL for AR",
-    "info": "",
-    "comments": "",
-    "x": 1719.3340148925781,
-    "y": 153.96864795684814,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "4600defb.d9dc1",
-    "type": "comment",
-    "name": "Query MDSAL to get parent service based on service instance id from AR",
-    "info": "",
-    "comments": "",
-    "x": 2189.334873199463,
-    "y": 172.96862697601318,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "2398fd5d.dbac12",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1968.66841506958,
-    "y": 208.63526725769043,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "179e1db5.4a8f02"
-      ]
-    ]
-  },
-  {
-    "id": "179e1db5.4a8f02",
-    "type": "block",
-    "name": "block: atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2123.668254852295,
-    "y": 208.13510036468506,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "35d0f2e8.ed82ae"
-      ]
-    ]
-  },
-  {
-    "id": "f8dd83a.151c88",
-    "type": "other",
-    "name": "outcome 1",
-    "xml": "<outcome value='1'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2447.3587913513184,
-    "y": 204.75424098968506,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "2218a177.4e456e"
-      ]
-    ]
-  },
-  {
-    "id": "7900e8ec.0ba228",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Connection attachement resource not found\" />\n    \n",
-    "comments": "",
-    "x": 2593.1275672912598,
-    "y": 244.20122909545898,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "7edde1df.f81a4",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1961.5201416015625,
-    "y": 255.70127391815186,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "ae127aa8.bf8958"
-      ]
-    ]
-  },
-  {
-    "id": "ae127aa8.bf8958",
-    "type": "block",
-    "name": "block: atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2111.5199851989746,
-    "y": 256.36782932281494,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "c86b6674.f9da58"
-      ]
-    ]
-  },
-  {
-    "id": "735fee8b.f10fd",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2435.6867446899414,
-    "y": 242.03460121154785,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "7900e8ec.0ba228"
-      ]
-    ]
-  },
-  {
-    "id": "35d0f2e8.ed82ae",
-    "type": "switchNode",
-    "name": "switch cr length",
-    "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2287.668430328369,
-    "y": 208.6352834701538,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "f8dd83a.151c88",
-        "735fee8b.f10fd"
-      ]
-    ]
-  },
-  {
-    "id": "99f51e24.95bbd",
-    "type": "set",
-    "name": "set parent-service-instance-id",
-    "xml": "<set>\n<parameter name='prop.parent-service-instance-id' value='`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id`' />\n\n",
-    "comments": "",
-    "x": 2843.0020294189453,
-    "y": 205.63526439666748,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "2218a177.4e456e",
-    "type": "block",
-    "name": "block: atomic",
-    "xml": "<block atomic='true'>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2597.4778213500977,
-    "y": 204.80180072784424,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "99f51e24.95bbd",
-        "87284033.76d89"
-      ]
-    ]
-  },
-  {
-    "id": "c86b6674.f9da58",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Connection attachement resource not found\" />\n    \n",
-    "comments": "",
-    "x": 2279.001438140869,
-    "y": 254.63520526885986,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "3ba72ba0.13a9f4",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2066.303554534912,
-    "y": 526.7709312438965,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "3c18f953.7698e6"
-      ]
-    ]
-  },
-  {
-    "id": "b947c854.e35438",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2058.15535736084,
-    "y": 561.8370161056519,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "5f7ffb48.00ef54"
-      ]
-    ]
-  },
-  {
-    "id": "5f7ffb48.00ef54",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
-    "comments": "",
-    "x": 2204.304130554199,
-    "y": 562.1045122146606,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "3c18f953.7698e6",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2186.3038024902344,
-    "y": 526.771014213562,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "9ef76182.7b173",
-    "type": "for",
-    "name": "for pnidx.. mdsal-psd.networks.network_length[]",
-    "xml": "<for index='pnidx' start='0' end='`$mdsal-psd.service-data.networks.network_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1749.6683502197266,
-    "y": 626.3028893470764,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e38b67ea.4c8758"
-      ]
-    ]
-  },
-  {
-    "id": "348ba1e1.19e85e",
-    "type": "switchNode",
-    "name": "switch ActivateSDWANConnectivityInstance",
-    "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.request-information.request-action == 'ActivateSDWANConnectivityInstance'`\">\n    \n    \n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2279.3349838256836,
-    "y": 595.3028907775879,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "27c81bce.91e324"
-      ]
-    ]
-  },
-  {
-    "id": "27c81bce.91e324",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2531.334518432617,
-    "y": 596.3028283119202,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "917509ae.cf1bf8"
-      ]
-    ]
-  },
-  {
-    "id": "917509ae.cf1bf8",
-    "type": "set",
-    "name": "set tmp.pnidx ",
-    "xml": "<set>\n<parameter name='tmp.pnidx' value='`$pnidx`' />\n\n",
-    "comments": "",
-    "x": 2687.3342056274414,
-    "y": 596.3028283119202,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "1fd45985.393f26",
-    "type": "for",
-    "name": "for loop paramidx - Get topology from servicedata",
-    "xml": "<for index=\"paramidx\" start=\"0\" end=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1681.3351593017578,
-    "y": 711.3025188446045,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "4ebf01e5.37d06"
-      ]
-    ]
-  },
-  {
-    "id": "8d7971fd.c23e3",
-    "type": "switchNode",
-    "name": "switch topology",
-    "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2133.335250854492,
-    "y": 690.3024244308472,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e336f6e8.a1adc8"
-      ]
-    ]
-  },
-  {
-    "id": "e336f6e8.a1adc8",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2284.335262298584,
-    "y": 688.3024663925171,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "f2813d3e.d5ec3"
-      ]
-    ]
-  },
-  {
-    "id": "f2813d3e.d5ec3",
-    "type": "set",
-    "name": "set topology",
-    "xml": "<set>\n<parameter name='prop.topology' value='`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
-    "comments": "",
-    "x": 2425.334991455078,
-    "y": 687.9024000167847,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "4a7f65c3.11a50c",
-    "type": "switchNode",
-    "name": "switch tmp.pnidx ",
-    "xml": "<switch test=\"`$tmp.pnidx`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1652.334976196289,
-    "y": 670.9690914154053,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "42c35e07.6414a"
-      ]
-    ]
-  },
-  {
-    "id": "42c35e07.6414a",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1807.7636489868164,
-    "y": 669.5404710769653,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "79c31704.e1ea48"
-      ]
-    ]
-  },
-  {
-    "id": "79c31704.e1ea48",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return 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.vnf-request-input.vnf-id not found in service-data\" />\n",
-    "comments": "",
-    "x": 1948.1922721862793,
-    "y": 670.6835603713989,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "d058b4fc.a3d908",
-    "type": "switchNode",
-    "name": "switch topology hub-spoke",
-    "xml": "<switch test=\"`$prop.topology == 'hub-spoke'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1560.3348426818848,
-    "y": 773.3023405075073,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "80132a76.17bcc8",
-        "f4211b87.94b798"
-      ]
-    ]
-  },
-  {
-    "id": "80132a76.17bcc8",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1750.334529876709,
-    "y": 798.3028259277344,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "7df004fc.b974bc"
-      ]
-    ]
-  },
-  {
-    "id": "f4211b87.94b798",
-    "type": "outcomeTrue",
-    "name": "false",
-    "xml": "<outcome value='false'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1744.3354568481445,
-    "y": 759.3024883270264,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "f043ab05.abcb68"
-      ]
-    ]
-  },
-  {
-    "id": "f043ab05.abcb68",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1880.3354606628418,
-    "y": 759.3024272918701,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "7df004fc.b974bc",
-    "type": "block",
-    "name": "block: atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1755.66748046875,
-    "y": 866.3020601272583,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "f2cfe93e.7237b8"
-      ]
-    ]
-  },
-  {
-    "id": "f2cfe93e.7237b8",
-    "type": "for",
-    "name": "for ppidx.. mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
-    "xml": "<for index='ppidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2163.000732421875,
-    "y": 866.6356782913208,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "de6797a2.586c78"
-      ]
-    ]
-  },
-  {
-    "id": "ffb0cb19.6bd078",
-    "type": "set",
-    "name": "set prop.ar.provided-allotted-resource-id",
-    "xml": "<set>\n<parameter name='prop.ar.provided-allotted-resource-id' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$ppidx].allotted-resource-id`' />\n\n",
-    "comments": "",
-    "x": 2254.0018463134766,
-    "y": 944.6359763145447,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "7d29151f.aff58c",
-    "type": "for",
-    "name": "for loop aridx - Get role from allotted resource",
-    "xml": "<for index=\"aridx\" start=\"0\" end=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2272.0025482177734,
-    "y": 1055.302767753601,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "99b001da.0efb4"
-      ]
-    ]
-  },
-  {
-    "id": "175772d7.f9d53d",
-    "type": "switchNode",
-    "name": "switch Role",
-    "xml": "<switch test=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].name == 'Role'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2681.002658843994,
-    "y": 1058.3028545379639,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "d13f62a9.a25bd"
-      ]
-    ]
-  },
-  {
-    "id": "d13f62a9.a25bd",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2822.0029907226562,
-    "y": 1057.3028535842896,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "63261a78.0b6344"
-      ]
-    ]
-  },
-  {
-    "id": "63261a78.0b6344",
-    "type": "set",
-    "name": "set prop.role",
-    "xml": "<set>\n<parameter name='prop.role' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].value`' />\n",
-    "comments": "",
-    "x": 2963.0030250549316,
-    "y": 1058.9027452468872,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "63613798.d70908",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2758.0020446777344,
-    "y": 961.969269990921,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "18ba51e1.01a3be"
-      ]
-    ]
-  },
-  {
-    "id": "9fe7ff8.35548",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2754.8537673950195,
-    "y": 1016.0353531837463,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "2fd2f3c1.09b97c"
-      ]
-    ]
-  },
-  {
-    "id": "8ad9ee53.6aa87",
-    "type": "switchNode",
-    "name": "switch role hub",
-    "xml": "<switch test=\"`$prop.role == hub`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2138.3351821899414,
-    "y": 1120.6358079910278,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "6011fd41.335614",
-        "472beb8.34ca814"
-      ]
-    ]
-  },
-  {
-    "id": "890f782e.076f68",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2454.3345680236816,
-    "y": 1096.6354112625122,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "aa2b8cd4.2f9ae",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2864.3042030334473,
-    "y": 1192.1045179367065,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "4765f05a.45c5e"
-      ]
-    ]
-  },
-  {
-    "id": "1bed61f6.90e36e",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2866.155773162842,
-    "y": 1252.170599937439,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "151f6728.afe339"
-      ]
-    ]
-  },
-  {
-    "id": "151f6728.afe339",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SDWAN service-data not found\" />\n    \n",
-    "comments": "",
-    "x": 3010.304546356201,
-    "y": 1214.4380140304565,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "4765f05a.45c5e",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2994.3042221069336,
-    "y": 1181.1046781539917,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "f7f9e60d.d46178",
-    "type": "set",
-    "name": "set prop.ar-service-instance-id",
-    "xml": "<set>\n<parameter name='prop.ar-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n",
-    "comments": "",
-    "x": 2466.3356018066406,
-    "y": 1180.6360107660294,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "f464743.4983e88",
-    "type": "for",
-    "name": "for arvidx.. mdsal-arsd.service-data.vnfs.vnf_length[]",
-    "xml": "<for index='arvidx' start='0' end='`$mdsal-arsd.service-data.vnfs.vnf_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2510.0020751953125,
-    "y": 1302.6358003616333,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "535fb492.abce2c"
-      ]
-    ]
-  },
-  {
-    "id": "535fb492.abce2c",
-    "type": "block",
-    "name": "block atmoic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2856.6683959960938,
-    "y": 1292.6357765197754,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "b26020e0.3a846",
-        "5e2a4404.59208c",
-        "858743af.15464"
-      ]
-    ]
-  },
-  {
-    "id": "b26020e0.3a846",
-    "type": "switchNode",
-    "name": "switch ActivateSDWANPortInstance",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n    \n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3118.668504714966,
-    "y": 1263.6367359161377,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "6b78409.f5b87c"
-      ]
-    ]
-  },
-  {
-    "id": "dde2f6f9.3c1848",
-    "type": "switchNode",
-    "name": "switch tmp.portvidx ",
-    "xml": "<switch test=\"`$tmp.portvidx`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2591.668212890625,
-    "y": 1347.3024454116821,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "58f23c0f.4a7544"
-      ]
-    ]
-  },
-  {
-    "id": "3d280456.864e3c",
-    "type": "for",
-    "name": "for loop wportidx - Get wan port ID from servicedata",
-    "xml": "<for index=\"wportidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2516.6688232421875,
-    "y": 1502.6367044448853,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "3b6a88cf.f649b8"
-      ]
-    ]
-  },
-  {
-    "id": "58f23c0f.4a7544",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2752.0966777801514,
-    "y": 1346.8739652633667,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "6637a392.65819c"
-      ]
-    ]
-  },
-  {
-    "id": "6637a392.65819c",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return 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.vnf-request-input.vnf-id (port) not found in service-data\" />\n",
-    "comments": "",
-    "x": 2889.525634765625,
-    "y": 1347.0173768997192,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "6b78409.f5b87c",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3346.66819190979,
-    "y": 1261.636736869812,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "11f23b34.c014d5"
-      ]
-    ]
-  },
-  {
-    "id": "3b6a88cf.f649b8",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2859.669807434082,
-    "y": 1505.6369543075562,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "9eb62557.123aa8",
-        "6f944994.65d2c8",
-        "b81eb9e0.1976f8",
-        "3235095c.ee2c06"
-      ]
-    ]
-  },
-  {
-    "id": "9eb62557.123aa8",
-    "type": "switchNode",
-    "name": "switch transportNetworkName",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'transportNetworkName'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3154.670757293701,
-    "y": 1444.6374912261963,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "a7e30f58.58c4"
-      ]
-    ]
-  },
-  {
-    "id": "11f23b34.c014d5",
-    "type": "set",
-    "name": "set tmp.portvidx ",
-    "xml": "<set>\n<parameter name='tmp.portvidx' value='`$arvidx`' />\n\n",
-    "comments": "",
-    "x": 3501.667875289917,
-    "y": 1261.6367359161377,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "a7e30f58.58c4",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3347.6707725524902,
-    "y": 1444.63765335083,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "9cf2c3d4.0b4b5"
-      ]
-    ]
-  },
-  {
-    "id": "9cf2c3d4.0b4b5",
-    "type": "set",
-    "name": "set prop.hub.transportNetworkName",
-    "xml": "<set>\n<parameter name='prop.hub.transportNetworkName' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
-    "comments": "",
-    "x": 3565.6707801818848,
-    "y": 1443.23823928833,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "6f944994.65d2c8",
-    "type": "switchNode",
-    "name": "switch wanPortId",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'wanPortId'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3116.003490447998,
-    "y": 1478.6371002197266,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "b31bd9b2.46c7d8"
-      ]
-    ]
-  },
-  {
-    "id": "b31bd9b2.46c7d8",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3277.003818511963,
-    "y": 1479.6371803283691,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "d3357919.f54078"
-      ]
-    ]
-  },
-  {
-    "id": "d3357919.f54078",
-    "type": "set",
-    "name": "set prop.hub.wanPortId",
-    "xml": "<set>\n<parameter name='prop.hub.wanPortId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
-    "comments": "",
-    "x": 3467.004280090332,
-    "y": 1479.2374563217163,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "2c43f3c.460060c",
-    "type": "switchNode",
-    "name": "switch  prop.hub.transportNetworkName==prop.spoke.transportNetworkName",
-    "xml": "<switch test=\"`$prop.hub.transportNetworkName == $prop.spoke.transportNetworkName`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2594.004150390625,
-    "y": 1605.304440498352,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "cf49239.d51bfe",
-        "c6577e7a.d8dfd"
-      ]
-    ]
-  },
-  {
-    "id": "cf49239.d51bfe",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2940.0036811828613,
-    "y": 1642.3045144081116,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "c20a45c1.991ea8"
-      ]
-    ]
-  },
-  {
-    "id": "c6577e7a.d8dfd",
-    "type": "outcomeTrue",
-    "name": "false",
-    "xml": "<outcome value='false'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2944.0041694641113,
-    "y": 1577.3041467666626,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "7523e16b.4849a"
-      ]
-    ]
-  },
-  {
-    "id": "7523e16b.4849a",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3084.0040969848633,
-    "y": 1605.304271697998,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "de6797a2.586c78",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1905.0322265625,
-    "y": 975.8333101272583,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "ffb0cb19.6bd078",
-        "9b080888.c9b298",
-        "1ff59188.ff36ae",
-        "8ad9ee53.6aa87",
-        "7d29151f.aff58c"
-      ]
-    ]
-  },
-  {
-    "id": "524b783f.8c1128",
-    "type": "switchNode",
-    "name": "switch vpnId",
-    "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpn-id'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2123.001266479492,
-    "y": 734.6354351043701,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "6c47f41b.3d3cac"
-      ]
-    ]
-  },
-  {
-    "id": "6c47f41b.3d3cac",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2267.001277923584,
-    "y": 734.6354761123657,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "9b1a7d07.58406"
-      ]
-    ]
-  },
-  {
-    "id": "9b1a7d07.58406",
-    "type": "set",
-    "name": "set prop.vpnId",
-    "xml": "<set>\n<parameter name='prop.vpnId' value='`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
-    "comments": "",
-    "x": 2425.0009994506836,
-    "y": 733.2354106903076,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "c93e7e34.eb504",
-    "type": "set",
-    "name": "Set prop.hubTnpId",
-    "xml": "<set>\n<parameter name='prop.hubTnpId' value='$prop.hub.wanPortId' />\n\n",
-    "comments": "",
-    "x": 2631.336555480957,
-    "y": 1731.6363048553467,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "33961398.8b885c",
-    "type": "execute",
-    "name": "execute RestApiCallNode underlay route",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"underlayHubResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 3463.33624458313,
-    "y": 2602.9708592891693,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "54355641.66e388",
-        "a6852c79.79538"
-      ]
-    ]
-  },
-  {
-    "id": "a6852c79.79538",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3730.3361530303955,
-    "y": 2630.970888853073,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "54355641.66e388",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3728.335832595825,
-    "y": 2586.97087931633,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e784c17f.677b5"
-      ]
-    ]
-  },
-  {
-    "id": "e784c17f.677b5",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing sdwan hub route underlay rest api\" />\n",
-    "comments": "",
-    "x": 3870.336519241333,
-    "y": 2584.9709622859955,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "45a08ea1.9e3d3",
-    "type": "set",
-    "name": "Add prop.hub.route",
-    "xml": "<set>\n<parameter name='prop.route.id' value='`$prop.hubRouteId`' />\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.hub.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.hub.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.hub.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.spoke.wanPortId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.hub.ipAddress`' />\n\n\n",
-    "comments": "",
-    "x": 3407.6696243286133,
-    "y": 2559.637367248535,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "5e2b5a00.fe4964",
-    "type": "execute",
-    "name": "execute RestApiCallNode underlay route",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"underlayspokeResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 3482.6696243286133,
-    "y": 2701.637832403183,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e568918e.3bed",
-        "6ef02e4e.06cc1"
-      ]
-    ]
-  },
-  {
-    "id": "6ef02e4e.06cc1",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3734.669771194458,
-    "y": 2730.6381289958954,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "e568918e.3bed",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3732.6694507598877,
-    "y": 2686.638119459152,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "43fb9f64.6e794"
-      ]
-    ]
-  },
-  {
-    "id": "43fb9f64.6e794",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing sdwan spoke route underlay rest api\" />\n",
-    "comments": "",
-    "x": 3874.6701374053955,
-    "y": 2684.6382024288177,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "5e2a4404.59208c",
-    "type": "switchNode",
-    "name": "switch ActivateSDWANDeviceInstance",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3129.532081604004,
-    "y": 1296.8336944580078,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "355d1cb7.8466e4"
-      ]
-    ]
-  },
-  {
-    "id": "85c67b27.be5eb8",
-    "type": "switchNode",
-    "name": "switch tmp.devicevidx ",
-    "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2597.5316314697266,
-    "y": 1389.4999265670776,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "188473e9.fdf33c"
-      ]
-    ]
-  },
-  {
-    "id": "188473e9.fdf33c",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2763.9600677490234,
-    "y": 1389.0714597702026,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "ec42dab0.d633d8"
-      ]
-    ]
-  },
-  {
-    "id": "ec42dab0.d633d8",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return 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.vnf-request-input.vnf-id (device) not found in service-data\" />\n",
-    "comments": "",
-    "x": 2904.388999938965,
-    "y": 1391.2144346237183,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "355d1cb7.8466e4",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3357.531768798828,
-    "y": 1294.8336954116821,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "73270e6c.070f4"
-      ]
-    ]
-  },
-  {
-    "id": "73270e6c.070f4",
-    "type": "set",
-    "name": "set tmp.devicevidx ",
-    "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$arvidx`' />\n\n",
-    "comments": "",
-    "x": 3512.531452178955,
-    "y": 1294.8336944580078,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "858743af.15464",
-    "type": "switchNode",
-    "name": "switch ActivateSiteInstance",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3092.5321521759033,
-    "y": 1330.833758354187,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "f6939cb3.d0942"
-      ]
-    ]
-  },
-  {
-    "id": "1e774611.be647a",
-    "type": "switchNode",
-    "name": "switch tmp.sitevidx ",
-    "xml": "<switch test=\"`$tmp.sitevidx`\">\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2596.5315017700195,
-    "y": 1427.4998044967651,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "bc02814a.d7499"
-      ]
-    ]
-  },
-  {
-    "id": "bc02814a.d7499",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2756.959966659546,
-    "y": 1427.0713243484497,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "d392366e.9150d8"
-      ]
-    ]
-  },
-  {
-    "id": "d392366e.9150d8",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return 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.vnf-request-input.vnf-id (site) not found in service-data\" />\n",
-    "comments": "",
-    "x": 2905.388921737671,
-    "y": 1429.2143306732178,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "f6939cb3.d0942",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3280.531717300415,
-    "y": 1330.833924293518,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "ab570b08.b1c7a8"
-      ]
-    ]
-  },
-  {
-    "id": "ab570b08.b1c7a8",
-    "type": "set",
-    "name": "set tmp.sitevidx ",
-    "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
-    "comments": "",
-    "x": 3435.531400680542,
-    "y": 1330.8339233398438,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "37339d04.d0e692",
-    "type": "for",
-    "name": "for loop deviceidx - Get wan port ID from servicedata",
-    "xml": "<for index=\"deviceidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2728.5331497192383,
-    "y": 1767.834059715271,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "fc5d79c.538d088"
-      ]
-    ]
-  },
-  {
-    "id": "29161345.19c04c",
-    "type": "switchNode",
-    "name": "switch deviceId",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3189.5345039367676,
-    "y": 1681.834927558899,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "cded98bd.ccea58"
-      ]
-    ]
-  },
-  {
-    "id": "cded98bd.ccea58",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3340.5348777770996,
-    "y": 1678.835171699524,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "d9cc984d.9f9d28"
-      ]
-    ]
-  },
-  {
-    "id": "d9cc984d.9f9d28",
-    "type": "set",
-    "name": "set prop.hub.deviceId",
-    "xml": "<set>\n<parameter name='prop.hub.deviceId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n",
-    "comments": "",
-    "x": 3515.535125732422,
-    "y": 1678.4356966018677,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "125c1fec.50ea4",
-    "type": "for",
-    "name": "for loop siteidx - Get site ID from servicedata",
-    "xml": "<for index=\"siteidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2703.0330352783203,
-    "y": 1824.83407497406,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "d543abbf.21d958"
-      ]
-    ]
-  },
-  {
-    "id": "e6b24865.170e78",
-    "type": "comment",
-    "name": "Add route src->dst, dst->src",
-    "info": "",
-    "comments": "",
-    "x": 2919.6687927246094,
-    "y": 1872.6359510421753,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "79cfeb5f.61b2e4",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2141.334228515625,
-    "y": 1252.968747138977,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "f464743.4983e88",
-        "3d280456.864e3c",
-        "2c43f3c.460060c",
-        "18153066.3dcbc",
-        "f7f9e60d.d46178",
-        "a780d837.5bb548",
-        "fcb5aaf7.a56738"
-      ]
-    ]
-  },
-  {
-    "id": "18153066.3dcbc",
-    "type": "block",
-    "name": "block atmoic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2396.333984375,
-    "y": 1389.3021211624146,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "dde2f6f9.3c1848",
-        "85c67b27.be5eb8",
-        "1e774611.be647a"
-      ]
-    ]
-  },
-  {
-    "id": "c20a45c1.991ea8",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2416.3350219726562,
-    "y": 1761.635643005371,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "c93e7e34.eb504",
-        "37339d04.d0e692",
-        "125c1fec.50ea4",
-        "f1944c46.f8a7e"
-      ]
-    ]
-  },
-  {
-    "id": "b81eb9e0.1976f8",
-    "type": "switchNode",
-    "name": "switch providerIpAddress",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'providerIpAddress'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3137.5319747924805,
-    "y": 1515.8334050178528,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "9a3783d0.0d525"
-      ]
-    ]
-  },
-  {
-    "id": "9a3783d0.0d525",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3313.532958984375,
-    "y": 1515.8335275650024,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "87437b42.24d3e8"
-      ]
-    ]
-  },
-  {
-    "id": "87437b42.24d3e8",
-    "type": "set",
-    "name": "set prop.hub.providerIpAddress",
-    "xml": "<set>\n<parameter name='prop.hub.providerIpAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
-    "comments": "",
-    "x": 3515.5329971313477,
-    "y": 1516.4334478378296,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "3235095c.ee2c06",
-    "type": "switchNode",
-    "name": "switch ipAddress",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'ipAddress'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3110.0320568084717,
-    "y": 1553.333490371704,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "901583b2.3d45c"
-      ]
-    ]
-  },
-  {
-    "id": "901583b2.3d45c",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3314.0329971313477,
-    "y": 1553.3334422111511,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "3c3cbc3f.366104"
-      ]
-    ]
-  },
-  {
-    "id": "3c3cbc3f.366104",
-    "type": "set",
-    "name": "set prop.hub.ipAddress",
-    "xml": "<set>\n<parameter name='prop.hub.ipAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
-    "comments": "",
-    "x": 3509.033000946045,
-    "y": 1552.9334177970886,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "3208baf8.6aed86",
-    "type": "set",
-    "name": "Add prop.spoke.route",
-    "xml": "<set>\n<parameter name='prop.route.id' value='`$prop.spokeRouteId`' />\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.spoke.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.spoke.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.spoke.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.hub.wanPortId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.spoke.ipAddress`' />\n\n\n\n\n",
-    "comments": "",
-    "x": 3417.533639907837,
-    "y": 2670.3345935344696,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "723ddf07.218d1",
-    "type": "returnSuccess",
-    "name": "return success",
-    "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
-    "comments": "",
-    "x": 366.3343048095703,
-    "y": 1127.3343391418457,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "428d17cf.9d4528",
-    "type": "execute",
-    "name": "generate connection attachment AR url ",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar.allotted-resource-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1415.6672058105469,
-    "y": 189.30183696746826,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "31785cb6.7e6854",
-    "type": "execute",
-    "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1542.667236328125,
-    "y": 237.3018274307251,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "2398fd5d.dbac12",
-        "7edde1df.f81a4"
-      ]
-    ]
-  },
-  {
-    "id": "8a7f6cb5.ac077",
-    "type": "execute",
-    "name": "execute RestApiCallNode - get parent service data",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-parent-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1767.0013885498047,
-    "y": 571.3021411895752,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "3ba72ba0.13a9f4",
-        "b947c854.e35438"
-      ]
-    ]
-  },
-  {
-    "id": "39b9e240.c55f5e",
-    "type": "execute",
-    "name": "generate connection attachment parent url ",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-parent-connection\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.parent-service-instance-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1744.0010375976562,
-    "y": 517.3020687103271,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "e2c10566.d14818",
-    "type": "comment",
-    "name": "full mesh do nothing",
-    "info": "",
-    "comments": "",
-    "x": 1578.667839050293,
-    "y": 728.3021068572998,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "3ed45cd4.e3df94",
-    "type": "comment",
-    "name": "hub-spoke",
-    "info": "",
-    "comments": "",
-    "x": 2579.6672401428223,
-    "y": 825.3019967079163,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "9b080888.c9b298",
-    "type": "execute",
-    "name": "generate connection attachment AR url ",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar.provided-allotted-resource-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2252.0003929138184,
-    "y": 976.3019919395447,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "1ff59188.ff36ae",
-    "type": "execute",
-    "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-providedAr\" />\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2383.000473022461,
-    "y": 1015.9686217308044,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "63613798.d70908",
-        "9fe7ff8.35548"
-      ]
-    ]
-  },
-  {
-    "id": "a780d837.5bb548",
-    "type": "execute",
-    "name": "generate service data url",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2433.504367828369,
-    "y": 1217.3058919906616,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "fcb5aaf7.a56738",
-    "type": "execute",
-    "name": "execute RestApiCallNode - get service data of allotted resource",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-arsd\" />\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2549.5045013427734,
-    "y": 1254.3057832717896,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "aa2b8cd4.2f9ae",
-        "1bed61f6.90e36e"
-      ]
-    ]
-  },
-  {
-    "id": "472beb8.34ca814",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2313.5000648498535,
-    "y": 1139.8018560409546,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "79cfeb5f.61b2e4"
-      ]
-    ]
-  },
-  {
-    "id": "6011fd41.335614",
-    "type": "outcomeFalse",
-    "name": "false",
-    "xml": "<outcome value='false'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2319.500312805176,
-    "y": 1096.801947593689,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "890f782e.076f68"
-      ]
-    ]
-  },
-  {
-    "id": "87284033.76d89",
-    "type": "for",
-    "name": "for loop roleidx - Get role from allotted resource",
-    "xml": "<for index=\"roleidx\" start=\"0\" end=\"`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2894.5008697509766,
-    "y": 244.30177307128906,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "73b90990.d19928"
-      ]
-    ]
-  },
-  {
-    "id": "73b90990.d19928",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3153.5011825561523,
-    "y": 243.3020887374878,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "8cac5932.b8b208"
-      ]
-    ]
-  },
-  {
-    "id": "8cac5932.b8b208",
-    "type": "switchNode",
-    "name": "switch Role",
-    "xml": "<switch test=\"`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$roleidx].name == 'role'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3302.501194000244,
-    "y": 244.3019256591797,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "bf369f65.c443d"
-      ]
-    ]
-  },
-  {
-    "id": "9b7f20f8.db3b3",
-    "type": "set",
-    "name": "set prop.spoke.role",
-    "xml": "<set>\n<parameter name='prop.spoke.role' value='`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$roleidx].value`' />\n",
-    "comments": "",
-    "x": 3607.501754760742,
-    "y": 241.90183353424072,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "bf369f65.c443d",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3438.00101852417,
-    "y": 241.30176544189453,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "9b7f20f8.db3b3"
-      ]
-    ]
-  },
-  {
-    "id": "8baae43.65cdc18",
-    "type": "switchNode",
-    "name": "switch spoke",
-    "xml": "<switch test=\"`$prop.spoke.role == 'spoke'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1330.000373840332,
-    "y": 388.301700592041,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "b158c146.c1f85"
-      ]
-    ]
-  },
-  {
-    "id": "b158c146.c1f85",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1471.000129699707,
-    "y": 389.30173778533936,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "67d378cf.68e458"
-      ]
-    ]
-  },
-  {
-    "id": "b0c4da2c.234108",
-    "type": "for",
-    "name": "for i.. service-data.vnfs.vnf_length[]",
-    "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1743.5006561279297,
-    "y": 443.3017330169678,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "63ff4ec5.ab647"
-      ]
-    ]
-  },
-  {
-    "id": "63ff4ec5.ab647",
-    "type": "block",
-    "name": "block atmoic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2077.166847229004,
-    "y": 387.3016633987427,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "84784063.67ffb",
-        "341080b7.07512",
-        "ed155104.c2191"
-      ]
-    ]
-  },
-  {
-    "id": "84784063.67ffb",
-    "type": "switchNode",
-    "name": "switch ActivateSDWANPortInstance",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n    \n    \n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2348.1668853759766,
-    "y": 333.3025498390198,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "126e021b.594fce"
-      ]
-    ]
-  },
-  {
-    "id": "126e021b.594fce",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2561.166648864746,
-    "y": 334.3025527000427,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "c1a0895d.a44898"
-      ]
-    ]
-  },
-  {
-    "id": "c1a0895d.a44898",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2710.0003929138184,
-    "y": 336.3017420768738,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "cad8cdd9.d6465"
-      ]
-    ]
-  },
-  {
-    "id": "cad8cdd9.d6465",
-    "type": "for",
-    "name": "for loop widx - Get wan port ID from servicedata",
-    "xml": "<for index=\"widx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2983.000343322754,
-    "y": 334.6689600944519,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e45e8fbc.86968"
-      ]
-    ]
-  },
-  {
-    "id": "e45e8fbc.86968",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3252.0012702941895,
-    "y": 333.66920614242554,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "bc53f544.71b638",
-        "25d65cd3.81eaf4",
-        "af8fabf7.c19df8",
-        "97c92085.94f67"
-      ]
-    ]
-  },
-  {
-    "id": "bc53f544.71b638",
-    "type": "switchNode",
-    "name": "switch transportNetworkName",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'transportNetworkName'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3495.0023040771484,
-    "y": 288.6697793006897,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "de0d2806.856438"
-      ]
-    ]
-  },
-  {
-    "id": "de0d2806.856438",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3695.0020790100098,
-    "y": 288.6699414253235,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "9a3c947a.1c5d88"
-      ]
-    ]
-  },
-  {
-    "id": "9a3c947a.1c5d88",
-    "type": "set",
-    "name": "set prop.spoke.transportNetworkName",
-    "xml": "<set>\n<parameter name='prop.spoke.transportNetworkName' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n",
-    "comments": "",
-    "x": 3922.002815246582,
-    "y": 290.2705235481262,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "67d378cf.68e458",
-    "type": "block",
-    "name": "block: atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1223.9694213867188,
-    "y": 699.2706489562988,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "b0c4da2c.234108",
-        "39b9e240.c55f5e",
-        "8a7f6cb5.ac077",
-        "9ef76182.7b173",
-        "1fd45985.393f26",
-        "d058b4fc.a3d908",
-        "4a7f65c3.11a50c",
-        "86cead5c.3dd72"
-      ]
-    ]
-  },
-  {
-    "id": "341080b7.07512",
-    "type": "switchNode",
-    "name": "switch ActivateSDWANDeviceInstance",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2340.5003204345703,
-    "y": 407.3017544746399,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "b16c0723.99d848"
-      ]
-    ]
-  },
-  {
-    "id": "b16c0723.99d848",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2559.5000705718994,
-    "y": 408.30173921585083,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "6b12cdd6.190a84"
-      ]
-    ]
-  },
-  {
-    "id": "6b12cdd6.190a84",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2710.3340606689453,
-    "y": 414.3009305000305,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "c142c3ae.d5baf"
-      ]
-    ]
-  },
-  {
-    "id": "c142c3ae.d5baf",
-    "type": "for",
-    "name": "for loop didx - Get device ID from servicedata",
-    "xml": "<for index=\"didx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2969.334312438965,
-    "y": 416.66822576522827,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "6fd86632.b15c78"
-      ]
-    ]
-  },
-  {
-    "id": "6fd86632.b15c78",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3255.334819793701,
-    "y": 449.66841077804565,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "4c164cba.1f51b4"
-      ]
-    ]
-  },
-  {
-    "id": "4c164cba.1f51b4",
-    "type": "switchNode",
-    "name": "switch deviceId",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'deviceId'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3438.3357315063477,
-    "y": 449.66902112960815,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "4e22d2eb.17a27c"
-      ]
-    ]
-  },
-  {
-    "id": "4e22d2eb.17a27c",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3638.335506439209,
-    "y": 449.66918325424194,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "bda2d14d.2382d"
-      ]
-    ]
-  },
-  {
-    "id": "bda2d14d.2382d",
-    "type": "set",
-    "name": "set prop.spoke.deviceId",
-    "xml": "<set>\n<parameter name='prop.spoke.deviceId' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].value`' />\n",
-    "comments": "",
-    "x": 3833.3361892700195,
-    "y": 446.26976442337036,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "ed155104.c2191",
-    "type": "switchNode",
-    "name": "switch ActivateSiteInstance",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2319.5004348754883,
-    "y": 468.30178594589233,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "3684ce31.756aa2"
-      ]
-    ]
-  },
-  {
-    "id": "3684ce31.756aa2",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2553.500072479248,
-    "y": 469.3017258644104,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "379dde17.f5f7e2"
-      ]
-    ]
-  },
-  {
-    "id": "379dde17.f5f7e2",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2705.3340606689453,
-    "y": 491.30096197128296,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "54ff4036.7eef1",
-        "dc7900f6.c1794"
-      ]
-    ]
-  },
-  {
-    "id": "54ff4036.7eef1",
-    "type": "for",
-    "name": "for loop widx - Get wan site ID from servicedata",
-    "xml": "<for index=\"sidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2986.3338928222656,
-    "y": 490.668164730072,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "53c73c75.c0fe44"
-      ]
-    ]
-  },
-  {
-    "id": "53c73c75.c0fe44",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3255.334819793701,
-    "y": 489.66841077804565,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "1d2d8e3b.d07092",
-        "812b076f.3b7138",
-        "8b3ca259.e59f8"
-      ]
-    ]
-  },
-  {
-    "id": "1d2d8e3b.d07092",
-    "type": "switchNode",
-    "name": "switch siteId",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3444.33602142334,
-    "y": 539.6690826416016,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "35fdfb9a.5d5ab4"
-      ]
-    ]
-  },
-  {
-    "id": "35fdfb9a.5d5ab4",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3644.3354988098145,
-    "y": 527.6691970825195,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "ea9da0a4.eb61c"
-      ]
-    ]
-  },
-  {
-    "id": "ea9da0a4.eb61c",
-    "type": "set",
-    "name": "set prop.spoke.siteId",
-    "xml": "<set>\n<parameter name='prop.spoke.siteId' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n",
-    "comments": "",
-    "x": 3837.336452484131,
-    "y": 534.2698273658752,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "25d65cd3.81eaf4",
-    "type": "switchNode",
-    "name": "switch wanPortId",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'wanPortId'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3468.5,
-    "y": 325.3018355369568,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "70f2426c.7fe2dc"
-      ]
-    ]
-  },
-  {
-    "id": "70f2426c.7fe2dc",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3698.5000038146973,
-    "y": 325.3019471168518,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "2a2fa3c7.e081ac"
-      ]
-    ]
-  },
-  {
-    "id": "2a2fa3c7.e081ac",
-    "type": "set",
-    "name": "set prop.spoke.wanPortId",
-    "xml": "<set>\n<parameter name='prop.spoke.wanPortId' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n",
-    "comments": "",
-    "x": 3925.5007400512695,
-    "y": 326.90252923965454,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "af8fabf7.c19df8",
-    "type": "switchNode",
-    "name": "switch providerIpAddress",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'providerIpAddress'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3486.500160217285,
-    "y": 369.30178594589233,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "b8a267e9.b9ee48"
-      ]
-    ]
-  },
-  {
-    "id": "b8a267e9.b9ee48",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3686.4999351501465,
-    "y": 369.3019480705261,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "1f49c17b.29132f"
-      ]
-    ]
-  },
-  {
-    "id": "1f49c17b.29132f",
-    "type": "set",
-    "name": "set prop.spoke.providerIpAddress",
-    "xml": "<set>\n<parameter name='prop.spoke.providerIpAddress' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n",
-    "comments": "",
-    "x": 3913.5006713867188,
-    "y": 370.90253019332886,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "97c92085.94f67",
-    "type": "switchNode",
-    "name": "switch ipAddress",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'ipAddress'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3466.499988555908,
-    "y": 408.30182218551636,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "f16f752f.3e9e18"
-      ]
-    ]
-  },
-  {
-    "id": "f16f752f.3e9e18",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3690.4998168945312,
-    "y": 408.3019394874573,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "ca30b35f.a1be"
-      ]
-    ]
-  },
-  {
-    "id": "ca30b35f.a1be",
-    "type": "set",
-    "name": "set prop.spoke.ipAddress",
-    "xml": "<set>\n<parameter name='prop.spoke.ipAddress' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n",
-    "comments": "",
-    "x": 3917.5005531311035,
-    "y": 409.90252161026,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "88f8bb94.113e88",
-    "type": "block",
-    "name": "block: atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1033.999900817871,
-    "y": 267.5000419616699,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "2cdd7d19.2083a2",
-        "428d17cf.9d4528",
-        "31785cb6.7e6854",
-        "8baae43.65cdc18"
-      ]
-    ]
-  },
-  {
-    "id": "47687d06.0a1964",
-    "type": "comment",
-    "name": "get spoke device,site,wanport info",
-    "info": "",
-    "comments": "",
-    "x": 1790.96875,
-    "y": 390.96874713897705,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "c21c0002.43242",
-    "type": "comment",
-    "name": "Add routes only on activation of spoke Attach site",
-    "info": "",
-    "comments": "",
-    "x": 1451.4999160766602,
-    "y": 334.00006103515625,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "7b6f0604.c9da18",
-    "type": "comment",
-    "name": "Loop for all the hub allotted resources, get respective service data and get vnfs info",
-    "info": "",
-    "comments": "",
-    "x": 2207.5,
-    "y": 829.500057220459,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "d543abbf.21d958",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2963.4997177124023,
-    "y": 1810.9999589920044,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "a19625ef.be4768",
-        "450fbdd4.50bf64"
-      ]
-    ]
-  },
-  {
-    "id": "fc5d79c.538d088",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3013.4997749328613,
-    "y": 1683.999843597412,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "29161345.19c04c"
-      ]
-    ]
-  },
-  {
-    "id": "a19625ef.be4768",
-    "type": "switchNode",
-    "name": "switch siteId",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'siteId'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3148.499641418457,
-    "y": 1821.9998016357422,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "fce00f2c.408f7"
-      ]
-    ]
-  },
-  {
-    "id": "fce00f2c.408f7",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3299.500011444092,
-    "y": 1820.999984741211,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "a6e04d71.45ffd"
-      ]
-    ]
-  },
-  {
-    "id": "a6e04d71.45ffd",
-    "type": "set",
-    "name": "set prop.hub.siteId",
-    "xml": "<set>\n<parameter name='prop.hub.siteId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n",
-    "comments": "",
-    "x": 3471.5000190734863,
-    "y": 1818.6005535125732,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "f1944c46.f8a7e",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2624.9997482299805,
-    "y": 2174.0004453659058,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "4a7669f9.690ed8",
-        "9523edcb.d7c9a"
-      ]
-    ]
-  },
-  {
-    "id": "4a7669f9.690ed8",
-    "type": "outcome",
-    "name": "ActivateSDWANAttachmentInstance",
-    "xml": "<outcome value='ActivateSDWANAttachmentInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 2895.0271530151367,
-    "y": 1985.0314779281616,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "5392f603.1e5608"
-      ]
-    ]
-  },
-  {
-    "id": "ed2e9b23.246118",
-    "type": "execute",
-    "name": "execute RestApiCallNode underlay route",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"underlayHubResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 3483.500099182129,
-    "y": 1914.0003824234009,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e1bfc10d.7f44e",
-        "523fbf6b.72c95"
-      ]
-    ]
-  },
-  {
-    "id": "523fbf6b.72c95",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3730.499927520752,
-    "y": 1893.0002145767212,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "e1bfc10d.7f44e",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3728.4996070861816,
-    "y": 1849.000205039978,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "5684be77.d184a"
-      ]
-    ]
-  },
-  {
-    "id": "5684be77.d184a",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing sdwan hub route underlay rest api\" />\n",
-    "comments": "",
-    "x": 3870.5002937316895,
-    "y": 1847.0002880096436,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "fc0a8ce8.4d15f",
-    "type": "set",
-    "name": "Add prop.hub.route",
-    "xml": "<set>\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.hub.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.hub.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.hub.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.spoke.wanPortId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.hub.ipAddress`' />\n\n\n",
-    "comments": "",
-    "x": 3418.8337020874023,
-    "y": 1884.666922569275,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "4be3d8b3.562cb8",
-    "type": "execute",
-    "name": "execute RestApiCallNode underlay route",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"underlayspokeResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 3500.834144592285,
-    "y": 2119.6675004959106,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "5f8c1bef.56c114",
-        "a3d1295e.fa6b28"
-      ]
-    ]
-  },
-  {
-    "id": "a3d1295e.fa6b28",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3752.83424949646,
-    "y": 2107.667459964752,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "5f8c1bef.56c114",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3750.8339290618896,
-    "y": 2063.667450428009,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e475f129.f6d52"
-      ]
-    ]
-  },
-  {
-    "id": "e475f129.f6d52",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing sdwan spoke route underlay rest api\" />\n",
-    "comments": "",
-    "x": 3892.8346157073975,
-    "y": 2061.6675333976746,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "9b5e472e.7046c8",
-    "type": "set",
-    "name": "Add prop.spoke.route",
-    "xml": "<set>\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.spoke.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.spoke.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.spoke.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.hub.wanPortId`' />                                                \n<parameter name='prop.route.ipAddress' value='`$prop.spoke.ipAddress`' />\n\n\n",
-    "comments": "",
-    "x": 3441.6980171203613,
-    "y": 2082.3642127513885,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "f4ba3683.379f28",
-    "type": "set",
-    "name": "set  prop.underlay.routeIds",
-    "xml": "<set>\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubSiteId' value='`$prop.hub.siteId`' />\n<!--parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].spokeSiteId' value='`$prop.spoke.siteId`' /-->\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubRouteId' value='`$underlayHubResp.success[0].id`' />\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].spokeRouteId' value='`$underlayspokeResp.success[0].id`' />\n\n\n\n",
-    "comments": "",
-    "x": 3451.665542602539,
-    "y": 2242.0309886932373,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "5392f603.1e5608",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3130.999671936035,
-    "y": 1982.4999113082886,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "fc0a8ce8.4d15f",
-        "9b5e472e.7046c8",
-        "f4ba3683.379f28",
-        "4be3d8b3.562cb8",
-        "ed2e9b23.246118",
-        "26c99249.a4074e",
-        "41b2e501.e4cadc",
-        "805d9d92.cb3bf",
-        "f41a7058.b220e",
-        "57accb29.01bb34"
-      ]
-    ]
-  },
-  {
-    "id": "cf3f5a97.bb53e8",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3162.9997749328613,
-    "y": 2624.5002613067627,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "45a08ea1.9e3d3",
-        "3208baf8.6aed86",
-        "33961398.8b885c",
-        "5e2b5a00.fe4964",
-        "3396ac88.cb4974",
-        "a8dab23b.85144",
-        "3c48a4f4.f048ec"
-      ]
-    ]
-  },
-  {
-    "id": "9523edcb.d7c9a",
-    "type": "outcome",
-    "name": "DeactivateSDWANAttachmentInstance",
-    "xml": "<outcome value='DeactivateSDWANAttachmentInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 2911.4998321533203,
-    "y": 2618.500072479248,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "cf3f5a97.bb53e8"
-      ]
-    ]
-  },
-  {
-    "id": "41b2e501.e4cadc",
-    "type": "set",
-    "name": "Add sites to list and update length",
-    "xml": "<set>\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].hubSiteName' value='`$prop.hub.siteName`' />\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].hubSiteId' value='`$prop.hub.siteId`' />\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].spokeSiteName' value='`$prop.spoke.siteName`' />\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].spokeSiteId' value='`$prop.spoke.siteId`' />\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
-    "comments": "",
-    "x": 3456.0318298339844,
-    "y": 2367.0318689346313,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "84283d54.1b30c",
-    "type": "comment",
-    "name": "save hubsiteIds and spoke siteIds for provision",
-    "info": "",
-    "comments": "",
-    "x": 3488.0322036743164,
-    "y": 2323.0317430496216,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "812b076f.3b7138",
-    "type": "switchNode",
-    "name": "switch name",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'name'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3445.031005859375,
-    "y": 489.03125,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e2b5302b.c9211"
-      ]
-    ]
-  },
-  {
-    "id": "e2b5302b.c9211",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3645.0307807922363,
-    "y": 489.0314121246338,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "3a42d854.33d438"
-      ]
-    ]
-  },
-  {
-    "id": "3a42d854.33d438",
-    "type": "set",
-    "name": "set prop.spoke.siteName",
-    "xml": "<set>\n<parameter name='prop.spoke.siteName' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n",
-    "comments": "",
-    "x": 3833.0315856933594,
-    "y": 487.63202571868896,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "450fbdd4.50bf64",
-    "type": "switchNode",
-    "name": "switch name",
-    "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'name'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3147.0310287475586,
-    "y": 1788.5311088562012,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "7d26f71b.6a9a68"
-      ]
-    ]
-  },
-  {
-    "id": "7d26f71b.6a9a68",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3298.0313987731934,
-    "y": 1787.53129196167,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "570427f3.ac5a28"
-      ]
-    ]
-  },
-  {
-    "id": "570427f3.ac5a28",
-    "type": "set",
-    "name": "set prop.hub.siteName",
-    "xml": "<set>\n<parameter name='prop.hub.siteName' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n",
-    "comments": "",
-    "x": 3470.031406402588,
-    "y": 1785.1318607330322,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "431fc2f2.17609c",
-    "type": "set",
-    "name": "set prop.provision.siteIds_length=0",
-    "xml": "<set>\n<parameter name='prop.provision.siteIds_length' value='0' />\n\n\n\n",
-    "comments": "",
-    "x": 470.03126525878906,
-    "y": 375.0312547683716,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "bebb2153.0e2a7",
-    "type": "execute",
-    "name": "execute RestApiCallNode site provision urls",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-site-provision.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/sites/provision-urls'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"provisionUrlRsp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
-    "comments": "",
-    "outputs": 1,
-    "x": 822.0312957763672,
-    "y": 807.0314712524414,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e47835d0.8f5408",
-        "8e71b3d6.afc8d"
-      ]
-    ]
-  },
-  {
-    "id": "8e71b3d6.afc8d",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1086.0315551757812,
-    "y": 829.0315160751343,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "e47835d0.8f5408",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1087.0313415527344,
-    "y": 786.0314540863037,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "610d5a0c.9e2794"
-      ]
-    ]
-  },
-  {
-    "id": "610d5a0c.9e2794",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing provision url rest api\" />\n",
-    "comments": "",
-    "x": 1266.0318984985352,
-    "y": 784.0315053462982,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "38f6b67d.380b9a",
-    "type": "for",
-    "name": "for providx..prop.provision.siteIds[]",
-    "xml": "<for index='providx' start='0' end='`$prop.provision.siteIds_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 463.0312957763672,
-    "y": 579.0312948226929,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "3da0634c.7d37dc"
-      ]
-    ]
-  },
-  {
-    "id": "3da0634c.7d37dc",
-    "type": "block",
-    "name": "block atmoic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 487.0313377380371,
-    "y": 789.031268119812,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "89ba9fe.36f7b6",
-        "bebb2153.0e2a7",
-        "ae5d2651.0df3f8"
-      ]
-    ]
-  },
-  {
-    "id": "89ba9fe.36f7b6",
-    "type": "set",
-    "name": "set prop.spoke.hubSiteId, spokeSiteId",
-    "xml": "<set>\n<parameter name='prop.provision.hubSitename' value='`$prop.provision.siteIds[$providx].hubSiteName`' />\n<parameter name='prop.provision.spokeSitename' value='`$prop.provision.siteIds[$providx].spokeSiteName`' />\n<parameter name='prop.provision.hubspokesite[0]' value='`$prop.provision.siteIds[$providx].hubSiteId`' />\n<parameter name='prop.provision.hubspokesite[1]' value='`$prop.provision.siteIds[$providx].spokeSiteId`' />\n<parameter name='prop.provision.hubspokesite_length' value='2' />\n",
-    "comments": "",
-    "x": 798.0339965820312,
-    "y": 665.6329832077026,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "ae5d2651.0df3f8",
-    "type": "record",
-    "name": "record provision url response to the file",
-    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`'/opt/opendaylight/current/data/log/' + 'HUB-' + $prop.provision.hubSitename + '-SPOKE-' + $prop.provision.spokeSitename + '-provisionUrl'`\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value='`$provisionUrlRsp.success[0].url`'/>\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 794.0313720703125,
-    "y": 901.0313358306885,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "99b001da.0efb4",
-    "type": "block",
-    "name": "block atmoic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2536.031482696533,
-    "y": 1056.0313262939453,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "175772d7.f9d53d"
-      ]
-    ]
-  },
-  {
-    "id": "e38b67ea.4c8758",
-    "type": "block",
-    "name": "block atmoic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2016.0311584472656,
-    "y": 619.0313091278076,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "348ba1e1.19e85e"
-      ]
-    ]
-  },
-  {
-    "id": "4ebf01e5.37d06",
-    "type": "block",
-    "name": "block atmoic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1960.0313262939453,
-    "y": 710.0312175750732,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "8d7971fd.c23e3",
-        "524b783f.8c1128"
-      ]
-    ]
-  },
-  {
-    "id": "26c99249.a4074e",
-    "type": "set",
-    "name": "set prop.underlay.routeIds_length++",
-    "xml": "<set>\n<parameter name='prop.underlay.routeIds_length' value='`$prop.underlay.routeIds_length + 1`' />\n\n\n\n\n",
-    "comments": "",
-    "x": 3481.0011596679688,
-    "y": 2278.250065803528,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "805d9d92.cb3bf",
-    "type": "set",
-    "name": "Update prop.provision.siteIds_length",
-    "xml": "<set>\n<parameter name='prop.provision.siteIds_length' value='`$prop.provision.siteIds_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
-    "comments": "",
-    "x": 3464.5009002685547,
-    "y": 2402.2501611709595,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "dc7900f6.c1794",
-    "type": "set",
-    "name": "set prop.spoke.siteidx",
-    "xml": "<set>\n<parameter name='prop.spoke.siteidx' value='`$i`' />\n\n",
-    "comments": "",
-    "x": 2904.7501907348633,
-    "y": 455.0000286102295,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "54fe9391.9e9afc",
-    "type": "set",
-    "name": "set  underlay route ids to service data",
-    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value=\"underlayRouteIds\" />\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$tmp.routeString`' />\n\n\n",
-    "comments": "",
-    "x": 1927.0006408691406,
-    "y": 1942.0003986358643,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "32bd7569.5de31a",
-    "type": "set",
-    "name": "set prop.underlay.routeIds_length=0",
-    "xml": "<set>\n<parameter name='prop.underlay.routeIds_length' value='0' />\n\n\n\n",
-    "comments": "",
-    "x": 474.9961242675781,
-    "y": 326.9961128234863,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "3396ac88.cb4974",
-    "type": "for",
-    "name": "for loop uidx - Get route Id from prop.underlay.routeIds",
-    "xml": "<for index=\"uidx\" start=\"0\" end=\"`$prop.underlay.routeIds_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3518.6630325317383,
-    "y": 2497.3295001983643,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "48bdd272.66024c"
-      ]
-    ]
-  },
-  {
-    "id": "48bdd272.66024c",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3810.3297271728516,
-    "y": 2497.3295001983643,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "164a1404.cbc8dc"
-      ]
-    ]
-  },
-  {
-    "id": "164a1404.cbc8dc",
-    "type": "switchNode",
-    "name": "switch prop.hub.siteId",
-    "xml": "<switch test=\"`$prop.underlay.routeIds[$uidx].hubSiteId == $prop.hub.siteId`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3999.3297424316406,
-    "y": 2497.3296632766724,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "beeec1da.addd9"
-      ]
-    ]
-  },
-  {
-    "id": "beeec1da.addd9",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4170.329177856445,
-    "y": 2497.329662322998,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "8b49993a.fe8e88"
-      ]
-    ]
-  },
-  {
-    "id": "8b49993a.fe8e88",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 4324.329177856445,
-    "y": 2501.3296699523926,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "ef00b5c0.d59378"
-      ]
-    ]
-  },
-  {
-    "id": "ef00b5c0.d59378",
-    "type": "set",
-    "name": "set prop.hubRouteId prop.spokeRouteId",
-    "xml": "<set>\n<parameter name='prop.hubRouteId' value='`$prop.underlay.routeIds[$uidx].hubRouteId`' />\n<parameter name='prop.spokeRouteId' value='`$prop.underlay.routeIds[$uidx].spokeRouteId`' />\n",
-    "comments": "",
-    "x": 4410.32918548584,
-    "y": 2573.32967376709,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "8b3ca259.e59f8",
-    "type": "switchNode",
-    "name": "switch underlayRouteIds",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'underlayRouteIds'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3449.99609375,
-    "y": 593.6627197265625,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "90960264.013bb"
-      ]
-    ]
-  },
-  {
-    "id": "90960264.013bb",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3649.9955711364746,
-    "y": 581.6628341674805,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "dec6d150.266b1"
-      ]
-    ]
-  },
-  {
-    "id": "f1e8e357.7d127",
-    "type": "set",
-    "name": "set prop.underlay.routeIds",
-    "xml": "<set>\n<parameter name='prop.underlay.routeIdsString' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n",
-    "comments": "",
-    "x": 4020.996971130371,
-    "y": 581.2635440826416,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "86cead5c.3dd72",
-    "type": "switchNode",
-    "name": "switch request-action",
-    "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1136.9963836669922,
-    "y": 2033.329628944397,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "d86f6d8b.19f1b",
-        "42a75c7f.9dc134"
-      ]
-    ]
-  },
-  {
-    "id": "d86f6d8b.19f1b",
-    "type": "outcome",
-    "name": "ActivateSDWANAttachmentInstance",
-    "xml": "<outcome value='ActivateSDWANAttachmentInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1400.9964294433594,
-    "y": 1988.329626083374,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "1dbe9d9f.7f9c82"
-      ]
-    ]
-  },
-  {
-    "id": "1dbe9d9f.7f9c82",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1642.9689407348633,
-    "y": 1984.7983770370483,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "54fe9391.9e9afc",
-        "5d55b77d.4fae98",
-        "59b1613.c1f67a",
-        "8abe0b00.ec56e8"
-      ]
-    ]
-  },
-  {
-    "id": "a9b02dc4.79bbe",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1646.9689292907715,
-    "y": 2068.7985458374023,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "ae1dbfd0.9ebac"
-      ]
-    ]
-  },
-  {
-    "id": "42a75c7f.9dc134",
-    "type": "outcome",
-    "name": "DeactivateSDWANAttachmentInstance",
-    "xml": "<outcome value='DeactivateSDWANAttachmentInstance'>",
-    "comments": "",
-    "outputs": 1,
-    "x": 1398.4690704345703,
-    "y": 2070.7983827590942,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "a9b02dc4.79bbe"
-      ]
-    ]
-  },
-  {
-    "id": "ae1dbfd0.9ebac",
-    "type": "set",
-    "name": "set input parameter length -1",
-    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length - 1`' />\n\n\n\n\n",
-    "comments": "",
-    "x": 1875.6626281738281,
-    "y": 2067.32963180542,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "4d624738.aa86f8",
-    "type": "comment",
-    "name": "Get route routes IDs",
-    "info": "",
-    "comments": "",
-    "x": 3418.3294982910156,
-    "y": 2458.6627368927,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "5d55b77d.4fae98",
-    "type": "set",
-    "name": "set  underlay route ids to service data",
-    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n\n\n\n\n",
-    "comments": "",
-    "x": 1916.329574584961,
-    "y": 2016.662672996521,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "59b1613.c1f67a",
-    "type": "for",
-    "name": "for jidx paramidx - Get topology from servicedata",
-    "xml": "<for index=\"jidx\" start=\"0\" end=\"`$prop.underlay.routeIds_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2005.3294982910156,
-    "y": 1563.329444885254,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "f4c8ed71.c2698"
-      ]
-    ]
-  },
-  {
-    "id": "3450a2a3.3f3b2e",
-    "type": "execute",
-    "name": "execute concat",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat1\"/>\n    <parameter name=\"target\" value='`$prop.underlay.routeIds[$jidx].hubRouteId`'/>\n\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2189.329833984375,
-    "y": 1696.9966478347778,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "5db41da3.1856f4",
-    "type": "execute",
-    "name": "execute concat",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$prop.underlay.routeIds[$jidx].hubSiteId`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat\"/>\n    <parameter name=\"target\" value=\",\"/>\n\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2199.3298263549805,
-    "y": 1649.6629858016968,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "f4c8ed71.c2698",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1912.329517364502,
-    "y": 1748.6627750396729,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "5db41da3.1856f4",
-        "3450a2a3.3f3b2e",
-        "46517f63.3d70e",
-        "74bf87c6.f701b8",
-        "ec44da8a.7837c8",
-        "f31858ee.e326d8"
-      ]
-    ]
-  },
-  {
-    "id": "46517f63.3d70e",
-    "type": "execute",
-    "name": "execute concat",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat1`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat2\"/>\n    <parameter name=\"target\" value=\",\"/>\n\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2196.3295364379883,
-    "y": 1736.6628789901733,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "74bf87c6.f701b8",
-    "type": "execute",
-    "name": "execute concat",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat2`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat3\"/>\n    <parameter name=\"target\" value='`$prop.underlay.routeIds[$jidx].spokeRouteId`'/>\n\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2196.3295364379883,
-    "y": 1772.6628789901733,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "ec44da8a.7837c8",
-    "type": "execute",
-    "name": "execute concat",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat3`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat4\"/>\n    <parameter name=\"target\" value=\" | \"/>\n\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2189.3295364379883,
-    "y": 1812.9962530136108,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "f31858ee.e326d8",
-    "type": "execute",
-    "name": "execute concat",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.routeString`'/>\n    <parameter name=\"outputPath\" value=\"tmp.routeString\"/>\n    <parameter name=\"target\" value='`$tmp.concat4`'/>\n\n\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 2192.329475402832,
-    "y": 1867.6627922058105,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "8abe0b00.ec56e8",
-    "type": "set",
-    "name": "Set tmp.routeString",
-    "xml": "<set>\n<parameter name='tmp.routeString' value=\"\" />\n\n",
-    "comments": "",
-    "x": 1909.3294982910156,
-    "y": 1504.6627759933472,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "dec6d150.266b1",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 3797.9963188171387,
-    "y": 627.9961318969727,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "f1e8e357.7d127",
-        "38377ec9.53b982"
-      ]
-    ]
-  },
-  {
-    "id": "38377ec9.53b982",
-    "type": "execute",
-    "name": "execute split |",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.underlay.routeIdsString`'/>\n<parameter name=\"regex\" value=\" | \"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.underlay.routeIdsValue\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 3975.9963302612305,
-    "y": 647.9961318969727,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "3268a5b9.fb215a",
-        "c3ab3d57.d9ba"
-      ]
-    ]
-  },
-  {
-    "id": "c3ab3d57.d9ba",
-    "type": "failure",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4152.9963455200195,
-    "y": 628.9961309432983,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "d7617cb0.7601e"
-      ]
-    ]
-  },
-  {
-    "id": "3268a5b9.fb215a",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4141.9963455200195,
-    "y": 676.996132850647,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "d317db0c.b51f88"
-      ]
-    ]
-  },
-  {
-    "id": "82fa522b.8f097",
-    "type": "set",
-    "name": "set ipAddress prefixLength",
-    "xml": "<set>\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubSiteId' value='`$prop.underlay.routeIdsValues[0]`' />\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubRouteId' value='`$prop.underlay.routeIdsValues[1]`' />\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].spokeRouteId' value='`$prop.underlay.routeIdsValues[2]`' />",
-    "comments": "",
-    "x": 5338.997211456299,
-    "y": 562.9963731765747,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "d317db0c.b51f88",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 4271.996349334717,
-    "y": 676.996132850647,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "d7617cb0.7601e",
-    "type": "for",
-    "name": "for loop ridx ",
-    "xml": "<for index=\"ridx\" start=\"0\" end=\"`$prop.underlay.routeIdsValue_length`\">\n    \n    \n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4298.996032714844,
-    "y": 626.9961309432983,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "bae53b24.86f3f8"
-      ]
-    ]
-  },
-  {
-    "id": "bae53b24.86f3f8",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 4477.329044342041,
-    "y": 623.9961318969727,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "95e8ce94.9a6d1"
-      ]
-    ]
-  },
-  {
-    "id": "95e8ce94.9a6d1",
-    "type": "execute",
-    "name": "execute split ,",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.underlay.routeIdsValue[$ridx]`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.underlay.routeIdsValues\"/>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4652.329055786133,
-    "y": 622.996129989624,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "17ee1f73.6ce3e1",
-        "32bb2edf.2bc022"
-      ]
-    ]
-  },
-  {
-    "id": "17ee1f73.6ce3e1",
-    "type": "failure",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4809.32905960083,
-    "y": 599.9961376190186,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "25d53393.ccdc7c"
-      ]
-    ]
-  },
-  {
-    "id": "32bb2edf.2bc022",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 4798.32905960083,
-    "y": 647.9961395263672,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "e299e773.789348"
-      ]
-    ]
-  },
-  {
-    "id": "e299e773.789348",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 4928.329063415527,
-    "y": 647.9961395263672,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "cee6dd44.82ca8",
-    "type": "block",
-    "name": "block atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 5131.661590576172,
-    "y": 578.9962916374207,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "82fa522b.8f097",
-        "e872fc0f.e3138"
-      ]
-    ]
-  },
-  {
-    "id": "e872fc0f.e3138",
-    "type": "set",
-    "name": "set ipAddress prefixLength",
-    "xml": "<set>\n<parameter name='prop.underlay.routeIds_length' value='`$prop.underlay.routeIds_length + 1`' />\n",
-    "comments": "",
-    "x": 5331.329250335693,
-    "y": 604.996169090271,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "25d53393.ccdc7c",
-    "type": "switchNode",
-    "name": "switch prop.underlay.routeIdsValues_length",
-    "xml": "<switch test='`$prop.underlay.routeIdsValues_length`'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5007.663215637207,
-    "y": 480.9961624145508,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "1988903d.6e7c9",
-        "31c7868c.1d918a"
-      ]
-    ]
-  },
-  {
-    "id": "1988903d.6e7c9",
-    "type": "outcome",
-    "name": "3",
-    "xml": "<outcome value='3'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5242.632148742676,
-    "y": 517.9648895263672,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "cee6dd44.82ca8"
-      ]
-    ]
-  },
-  {
-    "id": "31c7868c.1d918a",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 5259.663074493408,
-    "y": 399.99610328674316,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      [
-        "c3b9df69.c6c78"
-      ]
-    ]
-  },
-  {
-    "id": "c3b9df69.c6c78",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 5420.66259765625,
-    "y": 439.99609375,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "2fd2f3c1.09b97c",
-    "type": "returnFailure",
-    "name": "return failure",
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
-    "comments": "",
-    "x": 2900.002540588379,
-    "y": 1013.3028502464294,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "18ba51e1.01a3be",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 2886.0020484924316,
-    "y": 961.9692711830139,
-    "z": "afa42c56.2fe06",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "f41a7058.b220e",
-    "type": "set",
-    "name": "hardcode hub route",
-    "xml": "<set>\n<parameter name='prop.hub.ipAddress' value=\"10.2.0.2\" />\n<parameter name='prop.hub.providerIpAddress' value=\"10.2.0.0/16\" />\n\n\n",
-    "comments": "",
-    "x": 3420.0038681030273,
-    "y": 1853.0039892196655,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "57accb29.01bb34",
-    "type": "set",
-    "name": "hardcode spoke route",
-    "xml": "<set>\n<parameter name='prop.spoke.ipAddress' value=\"10.3.0.1\" />\n<parameter name='prop.spoke.providerIpAddress' value=\"10.3.0.0/16\" />",
-    "comments": "",
-    "x": 3435.004409790039,
-    "y": 2051.0039653778076,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "a8dab23b.85144",
-    "type": "set",
-    "name": "hardcode hub route",
-    "xml": "<set>\n<parameter name='prop.hub.ipAddress' value=\"10.2.0.2\" />\n<parameter name='prop.hub.providerIpAddress' value=\"10.2.0.0/16\" />\n\n\n",
-    "comments": "",
-    "x": 3470.333251953125,
-    "y": 2532,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  },
-  {
-    "id": "3c48a4f4.f048ec",
-    "type": "set",
-    "name": "hardcode spoke route",
-    "xml": "<set>\n<parameter name='prop.spoke.ipAddress' value=\"10.3.0.1\" />\n<parameter name='prop.spoke.providerIpAddress' value=\"10.3.0.0/16\" />",
-    "comments": "",
-    "x": 3476.333251953125,
-    "y": 2639,
-    "z": "afa42c56.2fe06",
-    "wires": []
-  }
-]
+[{"id":"587a4e4b.449f1","type":"dgstart","name":"DGSTART","outputs":1,"x":104.00390625,"y":51.99999871850014,"z":"b1d019b.6dbd8e8","wires":[["cf04b901.3d6f98"]]},{"id":"cf04b901.3d6f98","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":220.2895965576172,"y":103.23810639977455,"z":"b1d019b.6dbd8e8","wires":[["a2d12571.0378a8"]]},{"id":"a2d12571.0378a8","type":"method","name":"method sdwan-wanport-vnf-topology-operation-underlay","xml":"<method rpc='sdwan-wanport-vnf-topology-operation-underlay' mode='sync'>\n","comments":"","outputs":1,"x":223.43252563476562,"y":188.00003018975258,"z":"b1d019b.6dbd8e8","wires":[["a47337eb.18b358"]]},{"id":"a47337eb.18b358","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":155.67059326171875,"y":296.6667315065861,"z":"b1d019b.6dbd8e8","wires":[["718fab21.36f054","3f81fe79.041ff2","f5abf897.1c94a8","e484905a.ff144","e2e0c9ba.1ae298"]]},{"id":"718fab21.36f054","type":"for","name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":590.004337310791,"y":435.66685262322426,"z":"b1d019b.6dbd8e8","wires":[["95ab5318.2e5c4"]]},{"id":"8881f8e.5bc9208","type":"set","name":"set prop.ar.allotted-resource-id","xml":"<set>\n<parameter name='prop.ar.allotted-resource-id' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id`' />\n","comments":"","x":1380.0052490234375,"y":124.96877732872963,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"ca0bbb68.4e6518","type":"comment","name":"Query MDSAL for AR","info":"","comments":"","x":1705.3379211425781,"y":148.96864667534828,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"88a9e795.e489e8","type":"comment","name":"Query MDSAL to get parent service based on service instance id from AR","info":"","comments":"","x":2175.338779449463,"y":167.96862569451332,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"61804941.42b278","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1954.67232131958,"y":203.63526597619057,"z":"b1d019b.6dbd8e8","wires":[["b4949dcd.ebcd1"]]},{"id":"b4949dcd.ebcd1","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2109.672161102295,"y":203.1350990831852,"z":"b1d019b.6dbd8e8","wires":[["e88c8316.b28a7"]]},{"id":"4119fddc.bb6d24","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":2433.3626976013184,"y":199.7542397081852,"z":"b1d019b.6dbd8e8","wires":[["e113bdd7.9bdab"]]},{"id":"672a20f.a0083e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Connection attachement resource not found\" />\n    \n","comments":"","x":2579.1314735412598,"y":239.20122781395912,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"17977b69.262195","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1947.5240478515625,"y":250.701272636652,"z":"b1d019b.6dbd8e8","wires":[["4a7edd74.b9a034"]]},{"id":"4a7edd74.b9a034","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2097.5238914489746,"y":251.36782804131508,"z":"b1d019b.6dbd8e8","wires":[["889c4ad9.edb108"]]},{"id":"f51f9f7c.c2466","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2421.6906509399414,"y":237.034599930048,"z":"b1d019b.6dbd8e8","wires":[["672a20f.a0083e"]]},{"id":"e88c8316.b28a7","type":"switchNode","name":"switch cr length","xml":"<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n","comments":"","outputs":1,"x":2273.672336578369,"y":203.63528218865395,"z":"b1d019b.6dbd8e8","wires":[["4119fddc.bb6d24","f51f9f7c.c2466"]]},{"id":"ad5ef81b.eca5b8","type":"set","name":"set parent-service-instance-id","xml":"<set>\n<parameter name='prop.parent-service-instance-id' value='`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id`' />\n\n","comments":"","x":2829.0059356689453,"y":200.63526311516762,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"e113bdd7.9bdab","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":2583.4817276000977,"y":199.80179944634438,"z":"b1d019b.6dbd8e8","wires":[["ad5ef81b.eca5b8","5b3adfc2.d795f"]]},{"id":"889c4ad9.edb108","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Connection attachement resource not found\" />\n    \n","comments":"","x":2265.005344390869,"y":249.63520398736,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"936de3e0.c6a2e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2052.307460784912,"y":521.7709299623966,"z":"b1d019b.6dbd8e8","wires":[["2fdbbace.5a0386"]]},{"id":"56dafc4a.8aaae4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2044.1592636108398,"y":556.837014824152,"z":"b1d019b.6dbd8e8","wires":[["2a42a293.fba3ae"]]},{"id":"2a42a293.fba3ae","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n","comments":"","x":2190.308036804199,"y":557.1045109331608,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"2fdbbace.5a0386","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2172.3077087402344,"y":521.7710129320621,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"a13ee754.9515f8","type":"for","name":"for pnidx.. mdsal-psd.networks.network_length[]","xml":"<for index='pnidx' start='0' end='`$mdsal-psd.service-data.networks.network_length`' >\n","comments":"","outputs":1,"x":1735.6722564697266,"y":621.3028880655766,"z":"b1d019b.6dbd8e8","wires":[["684cbe0.d0ae544"]]},{"id":"9bdd2027.61dcf","type":"switchNode","name":"switch ActivateSDWANConnectivityInstance","xml":"<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.request-information.request-action == 'ActivateSDWANConnectivityInstance'`\">\n    \n    \n\n","comments":"","outputs":1,"x":2265.3388900756836,"y":590.302889496088,"z":"b1d019b.6dbd8e8","wires":[["4800da5e.9f4d14"]]},{"id":"4800da5e.9f4d14","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2517.338424682617,"y":591.3028270304203,"z":"b1d019b.6dbd8e8","wires":[["e64d626e.5a50e"]]},{"id":"e64d626e.5a50e","type":"set","name":"set tmp.pnidx ","xml":"<set>\n<parameter name='tmp.pnidx' value='`$pnidx`' />\n\n","comments":"","x":2673.3381118774414,"y":591.3028270304203,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"dd934675.d4e888","type":"for","name":"for loop paramidx - Get topology from servicedata","xml":"<for index=\"paramidx\" start=\"0\" end=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":1667.3390655517578,"y":706.3025175631046,"z":"b1d019b.6dbd8e8","wires":[["8db55ac9.a24998"]]},{"id":"62066499.8552ec","type":"switchNode","name":"switch topology","xml":"<switch test=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n","comments":"","outputs":1,"x":2119.339157104492,"y":685.3024231493473,"z":"b1d019b.6dbd8e8","wires":[["4f33474b.e43bc8"]]},{"id":"4f33474b.e43bc8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2270.339168548584,"y":683.3024651110172,"z":"b1d019b.6dbd8e8","wires":[["8246d892.e05918"]]},{"id":"8246d892.e05918","type":"set","name":"set topology","xml":"<set>\n<parameter name='prop.topology' value='`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n","comments":"","x":2411.338897705078,"y":682.9023987352848,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"88c5e553.ee7048","type":"switchNode","name":"switch tmp.pnidx ","xml":"<switch test=\"`$tmp.pnidx`\">\n\n","comments":"","outputs":1,"x":1638.338882446289,"y":665.9690901339054,"z":"b1d019b.6dbd8e8","wires":[["11715e8.eb7eca2"]]},{"id":"11715e8.eb7eca2","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1793.7675552368164,"y":664.5404697954655,"z":"b1d019b.6dbd8e8","wires":[["49bf685a.de5378"]]},{"id":"49bf685a.de5378","type":"returnFailure","name":"return failure","xml":"<return 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.vnf-request-input.vnf-id not found in service-data\" />\n","comments":"","x":1934.1961784362793,"y":665.6835590898991,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"de9858f.b81a8a8","type":"switchNode","name":"switch topology hub-spoke","xml":"<switch test=\"`$prop.topology == 'hub-spoke'`\">\n","comments":"","outputs":1,"x":1546.3387489318848,"y":768.3023392260075,"z":"b1d019b.6dbd8e8","wires":[["24d293b9.ebe98c","4bfa75a0.97649c"]]},{"id":"24d293b9.ebe98c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1736.338436126709,"y":793.3028246462345,"z":"b1d019b.6dbd8e8","wires":[["fc31272f.d20a28"]]},{"id":"4bfa75a0.97649c","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1730.3393630981445,"y":754.3024870455265,"z":"b1d019b.6dbd8e8","wires":[["a1325102.a1698"]]},{"id":"a1325102.a1698","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1866.3393669128418,"y":754.3024260103703,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"fc31272f.d20a28","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1741.67138671875,"y":861.3020588457584,"z":"b1d019b.6dbd8e8","wires":[["e126a9e.93d2358"]]},{"id":"e126a9e.93d2358","type":"for","name":"for ppidx.. mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]","xml":"<for index='ppidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n","comments":"","outputs":1,"x":2149.004638671875,"y":861.6356770098209,"z":"b1d019b.6dbd8e8","wires":[["a3874818.96b4a8"]]},{"id":"fafd1fed.9ce1b","type":"set","name":"set prop.ar.provided-allotted-resource-id","xml":"<set>\n<parameter name='prop.ar.provided-allotted-resource-id' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$ppidx].allotted-resource-id`' />\n\n","comments":"","x":2240.0057525634766,"y":939.6359750330448,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"8b5306cb.0a00b8","type":"for","name":"for loop aridx - Get role from allotted resource","xml":"<for index=\"aridx\" start=\"0\" end=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2258.0064544677734,"y":1050.3027664721012,"z":"b1d019b.6dbd8e8","wires":[["35d495b.f10696a"]]},{"id":"2ab4ecb3.a0e7b4","type":"switchNode","name":"switch Role","xml":"<switch test=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].name == 'Role'`\">\n","comments":"","outputs":1,"x":2667.006565093994,"y":1053.302853256464,"z":"b1d019b.6dbd8e8","wires":[["f82626a6.b9ef58"]]},{"id":"f82626a6.b9ef58","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2808.0068969726562,"y":1052.3028523027897,"z":"b1d019b.6dbd8e8","wires":[["7f118497.e5e81c"]]},{"id":"7f118497.e5e81c","type":"set","name":"set prop.role","xml":"<set>\n<parameter name='prop.role' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].value`' />\n","comments":"","x":2949.0069313049316,"y":1053.9027439653873,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"9f0875d3.47e2b8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2744.0059509277344,"y":956.9692687094212,"z":"b1d019b.6dbd8e8","wires":[["36139e8.434ce62"]]},{"id":"807962c4.90f77","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2740.8576736450195,"y":1011.0353519022465,"z":"b1d019b.6dbd8e8","wires":[["9edc0016.5374a"]]},{"id":"dbadbe13.1677b","type":"switchNode","name":"switch role hub","xml":"<switch test=\"`$prop.role == hub`\">\n","comments":"","outputs":1,"x":2124.3390884399414,"y":1115.635806709528,"z":"b1d019b.6dbd8e8","wires":[["dcf9daa3.e54cc8","5d1cf617.14b6b8"]]},{"id":"9271766e.fe0c48","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2440.3384742736816,"y":1091.6354099810123,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"6d9b82e0.ee0e5c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2850.3081092834473,"y":1187.1045166552067,"z":"b1d019b.6dbd8e8","wires":[["f48b85ad.740008"]]},{"id":"1f5ff987.3fd166","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2852.159679412842,"y":1247.170598655939,"z":"b1d019b.6dbd8e8","wires":[["f995184a.d07fa8"]]},{"id":"f995184a.d07fa8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SDWAN service-data not found\" />\n    \n","comments":"","x":2996.308452606201,"y":1209.4380127489567,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"f48b85ad.740008","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2980.3081283569336,"y":1176.1046768724918,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"928e3eb0.849cd","type":"set","name":"set prop.ar-service-instance-id","xml":"<set>\n<parameter name='prop.ar-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n","comments":"","x":2452.3395080566406,"y":1175.6360094845295,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"3730c8a.de81d38","type":"for","name":"for arvidx.. mdsal-arsd.service-data.vnfs.vnf_length[]","xml":"<for index='arvidx' start='0' end='`$mdsal-arsd.service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":2496.0059814453125,"y":1297.6357990801334,"z":"b1d019b.6dbd8e8","wires":[["993a1752.84b598"]]},{"id":"993a1752.84b598","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2842.6723022460938,"y":1287.6357752382755,"z":"b1d019b.6dbd8e8","wires":[["9bd685d3.b9a5b8","2be5604d.8b517","34da5cb3.ec0254"]]},{"id":"9bd685d3.b9a5b8","type":"switchNode","name":"switch ActivateSDWANPortInstance","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n    \n\n","comments":"","outputs":1,"x":3104.672410964966,"y":1258.6367346346378,"z":"b1d019b.6dbd8e8","wires":[["22ea8a6b.a17296"]]},{"id":"2f97be15.e601c2","type":"switchNode","name":"switch tmp.wanportvidx ","xml":"<switch test=\"`$tmp.wanportvidx`\">\n\n","comments":"","outputs":1,"x":2577.672119140625,"y":1342.3024441301823,"z":"b1d019b.6dbd8e8","wires":[["54e2ca7c.2e5f44"]]},{"id":"43b2a05a.a7d9b","type":"for","name":"for loop wportidx - Get wan port ID from servicedata","xml":"<for index=\"wportidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":3759.6728897094727,"y":1251.6369148790836,"z":"b1d019b.6dbd8e8","wires":[["bca2a06e.4f682"]]},{"id":"54e2ca7c.2e5f44","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2749.100841522217,"y":1345.8741499483585,"z":"b1d019b.6dbd8e8","wires":[["2f27c837.ae4c68"]]},{"id":"2f27c837.ae4c68","type":"returnFailure","name":"return failure","xml":"<return 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.vnf-request-input.vnf-id (port) not found in service-data\" />\n","comments":"","x":2893.529556274414,"y":1348.0174299776554,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"22ea8a6b.a17296","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3332.67209815979,"y":1256.6367355883121,"z":"b1d019b.6dbd8e8","wires":[["2c880b10.265824"]]},{"id":"bca2a06e.4f682","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3711.6741046905518,"y":1335.6374413073063,"z":"b1d019b.6dbd8e8","wires":[["960aea00.c2c228"]]},{"id":"960aea00.c2c228","type":"switchNode","name":"switch transportNetworkName","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'transportNetworkName'`\">\n","comments":"","outputs":1,"x":3929.6750202178955,"y":1333.6379295885563,"z":"b1d019b.6dbd8e8","wires":[["19a0a134.cbff5f"]]},{"id":"c82b1262.885e1","type":"set","name":"set tmp.portvidx ","xml":"<set>\n<parameter name='tmp.portvidx' value='`$arvidx`' />\n\n","comments":"","x":3656.671901702881,"y":1209.6369024813175,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"19a0a134.cbff5f","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4126.675447463989,"y":1332.6380983889103,"z":"b1d019b.6dbd8e8","wires":[["27cac422.cfe53c"]]},{"id":"b05226c4.bd3a28","type":"set","name":"set prop.hub.transportNetworkName","xml":"<set>\n<parameter name='prop.hub.transportNetworkName' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n","comments":"","x":4383.6772813797,"y":1532.2391153872013,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"f4c45443.bb3768","type":"switchNode","name":"switch  prop.hub.transportNetworkName==prop.spoke.transportNetworkName","xml":"<switch test=\"`$prop.hub.transportNetworkName == $prop.spoke.transportNetworkName`\">\n","comments":"","outputs":1,"x":2576.00821685791,"y":1492.3046661913395,"z":"b1d019b.6dbd8e8","wires":[["29701c33.546bc4","9d7af116.cbe09"]]},{"id":"29701c33.546bc4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2922.0077476501465,"y":1529.304740101099,"z":"b1d019b.6dbd8e8","wires":[["f21133c1.0bade"]]},{"id":"9d7af116.cbe09","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2916.008556365967,"y":1466.3046003878117,"z":"b1d019b.6dbd8e8","wires":[["35e3a287.99da5e"]]},{"id":"35e3a287.99da5e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3046.008743286133,"y":1466.3047529757023,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"a3874818.96b4a8","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1891.0361328125,"y":970.8333088457584,"z":"b1d019b.6dbd8e8","wires":[["fafd1fed.9ce1b","252298c8.827288","de70a181.95e65","dbadbe13.1677b","8b5306cb.0a00b8"]]},{"id":"40faa7d6.f30958","type":"switchNode","name":"switch vpnId","xml":"<switch test=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpn-id'`\">\n","comments":"","outputs":1,"x":2109.005172729492,"y":729.6354338228703,"z":"b1d019b.6dbd8e8","wires":[["244fa8f2.0e98c8"]]},{"id":"244fa8f2.0e98c8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2253.005184173584,"y":729.6354748308659,"z":"b1d019b.6dbd8e8","wires":[["542e22e9.06eebc"]]},{"id":"542e22e9.06eebc","type":"set","name":"set prop.vpnId","xml":"<set>\n<parameter name='prop.vpnId' value='`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n","comments":"","x":2411.0049057006836,"y":728.2354094088078,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"3945c5e7.6c14ea","type":"set","name":"Set prop.hubTnpId","xml":"<set>\n<parameter name='prop.hubTnpId' value='$prop.hub.wanPortId' />\n\n","comments":"","x":2628.3407135009766,"y":1765.636424690485,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"32aaac62.305534","type":"execute","name":"execute RestApiCallNode underlay route","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"underlayHubResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />","comments":"","outputs":1,"x":3449.34015083313,"y":2597.9708580076694,"z":"b1d019b.6dbd8e8","wires":[["89fb14c8.94ed18","c79239ca.a0f328"]]},{"id":"c79239ca.a0f328","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3716.3400592803955,"y":2625.9708875715733,"z":"b1d019b.6dbd8e8","wires":[["3b45764d.017e4a"]]},{"id":"89fb14c8.94ed18","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3714.339738845825,"y":2581.97087803483,"z":"b1d019b.6dbd8e8","wires":[["a62325e4.8d0b68"]]},{"id":"d9e2a3b8.be3d7","type":"set","name":"Add prop.hub.route","xml":"<set>\n<parameter name='prop.route.id' value='`$prop.hubRouteId`' />\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.hub.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.hub.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.hub.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.spoke.wanPortId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.hub.ipAddress`' />\n\n\n","comments":"","x":3393.6735305786133,"y":2554.6373659670353,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"b552a294.7e377","type":"execute","name":"execute RestApiCallNode underlay route","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"underlayspokeResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />","comments":"","outputs":1,"x":3468.6735305786133,"y":2696.637831121683,"z":"b1d019b.6dbd8e8","wires":[["a12e36eb.943458","ededbddd.7250a"]]},{"id":"ededbddd.7250a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3720.673677444458,"y":2725.6381277143955,"z":"b1d019b.6dbd8e8","wires":[["29ad144c.f2690c"]]},{"id":"a12e36eb.943458","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3718.6733570098877,"y":2681.6381181776524,"z":"b1d019b.6dbd8e8","wires":[["8c851f6f.caa55"]]},{"id":"92a20fbe.e0e62","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing sdwan spoke route underlay rest api\" />\n","comments":"","x":4008.6742248535156,"y":2675.6383101046085,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"2be5604d.8b517","type":"switchNode","name":"switch ActivateSDWANDeviceInstance","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n","comments":"","outputs":1,"x":3115.535987854004,"y":1291.833693176508,"z":"b1d019b.6dbd8e8","wires":[["46f77d85.1bbce4"]]},{"id":"75db0ba8.f32084","type":"switchNode","name":"switch tmp.devicevidx ","xml":"<switch test=\"`$tmp.devicevidx`\">\n\n","comments":"","outputs":1,"x":2583.5355377197266,"y":1384.4999252855778,"z":"b1d019b.6dbd8e8","wires":[["294637bf.dcbd08"]]},{"id":"294637bf.dcbd08","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2749.9639739990234,"y":1384.0714584887028,"z":"b1d019b.6dbd8e8","wires":[["a4ca51de.1aa11"]]},{"id":"a4ca51de.1aa11","type":"returnFailure","name":"return failure","xml":"<return 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.vnf-request-input.vnf-id (device) not found in service-data\" />\n","comments":"","x":2890.392906188965,"y":1386.2144333422184,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"46f77d85.1bbce4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3343.535675048828,"y":1289.8336941301823,"z":"b1d019b.6dbd8e8","wires":[["b2e4dc18.108ae"]]},{"id":"b2e4dc18.108ae","type":"set","name":"set tmp.devicevidx ","xml":"<set>\n<parameter name='tmp.devicevidx' value='`$arvidx`' />\n\n","comments":"","x":3498.535358428955,"y":1289.833693176508,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"34da5cb3.ec0254","type":"switchNode","name":"switch ActivateSiteInstance","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n","comments":"","outputs":1,"x":3078.5360584259033,"y":1325.8337570726871,"z":"b1d019b.6dbd8e8","wires":[["1e8bb4ff.b8f57b"]]},{"id":"c3aa018f.4dc1a","type":"switchNode","name":"switch tmp.sitevidx ","xml":"<switch test=\"`$tmp.sitevidx`\">\n\n","comments":"","outputs":1,"x":2582.5354080200195,"y":1422.4998032152653,"z":"b1d019b.6dbd8e8","wires":[["1f12a8eb.1a8507"]]},{"id":"1f12a8eb.1a8507","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2742.963872909546,"y":1422.0713230669498,"z":"b1d019b.6dbd8e8","wires":[["b92b68d7.8e4328"]]},{"id":"b92b68d7.8e4328","type":"returnFailure","name":"return failure","xml":"<return 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.vnf-request-input.vnf-id (site) not found in service-data\" />\n","comments":"","x":2891.392827987671,"y":1424.214329391718,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"1e8bb4ff.b8f57b","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3266.535623550415,"y":1325.8339230120182,"z":"b1d019b.6dbd8e8","wires":[["4cf0c35.9e60c3c"]]},{"id":"4cf0c35.9e60c3c","type":"set","name":"set tmp.sitevidx ","xml":"<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n","comments":"","x":3421.535306930542,"y":1325.833922058344,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"6de714ed.d3061c","type":"for","name":"for loop deviceidx - Get wan port ID from servicedata","xml":"<for index=\"deviceidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2715.5372161865234,"y":1807.8342405855656,"z":"b1d019b.6dbd8e8","wires":[["3adcf839.875688"]]},{"id":"e169850b.ca2b98","type":"switchNode","name":"switch deviceId","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n","comments":"","outputs":1,"x":3200.5384674072266,"y":1738.8350941240788,"z":"b1d019b.6dbd8e8","wires":[["7f1b4a03.77b0c4"]]},{"id":"7f1b4a03.77b0c4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3351.5388412475586,"y":1735.8353382647038,"z":"b1d019b.6dbd8e8","wires":[["8b5c9421.71a558"]]},{"id":"8b5c9421.71a558","type":"set","name":"set prop.hub.deviceId","xml":"<set>\n<parameter name='prop.hub.deviceId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n","comments":"","x":3526.539089202881,"y":1735.4358631670475,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"8506f90c.f30458","type":"for","name":"for loop siteidx - Get site ID from servicedata","xml":"<for index=\"siteidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2682.0370330810547,"y":1869.8342100679874,"z":"b1d019b.6dbd8e8","wires":[["ff9f298a.cca7f8"]]},{"id":"8d61be2.a51494","type":"comment","name":"Add route src->dst, dst->src","info":"","comments":"","x":3017.672622680664,"y":1886.6360289156437,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"e5d1673d.e9dbe8","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2127.338134765625,"y":1247.9687458574772,"z":"b1d019b.6dbd8e8","wires":[["3730c8a.de81d38","f4c45443.bb3768","3d7d87cf.2688a8","928e3eb0.849cd","e69efead.6b9ed","2aa6f09e.c6474"]]},{"id":"3d7d87cf.2688a8","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2382.337890625,"y":1384.3021198809147,"z":"b1d019b.6dbd8e8","wires":[["75db0ba8.f32084","c3aa018f.4dc1a","2f97be15.e601c2"]]},{"id":"f21133c1.0bade","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2402.3389282226562,"y":1756.6356417238712,"z":"b1d019b.6dbd8e8","wires":[["3945c5e7.6c14ea","6de714ed.d3061c","8506f90c.f30458","23a8e35f.4687ac","eb5f2e.bb7a50d"]]},{"id":"7877847f.fa07bc","type":"set","name":"Add prop.spoke.route","xml":"<set>\n<parameter name='prop.route.id' value='`$prop.spokeRouteId`' />\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.spoke.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.spoke.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.spoke.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.hub.wanPortId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.spoke.ipAddress`' />\n\n\n\n\n","comments":"","x":3403.537546157837,"y":2665.3345922529697,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"3f81fe79.041ff2","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n","comments":"","x":352.3382110595703,"y":1122.3343378603458,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"52b0eddb.8791b4","type":"execute","name":"generate connection attachment AR url ","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":1401.6711120605469,"y":184.3018356859684,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"532b1f7d.9c604","type":"execute","name":"execute RestApiCallNode - get-resource connection-attachment-allotted-resource","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":1528.671142578125,"y":232.30182614922523,"z":"b1d019b.6dbd8e8","wires":[["61804941.42b278","17977b69.262195"]]},{"id":"1eb0dd45.2d88f3","type":"execute","name":"execute RestApiCallNode - get parent service data","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-parent-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n","comments":"","outputs":1,"x":1753.0052947998047,"y":566.3021399080753,"z":"b1d019b.6dbd8e8","wires":[["936de3e0.c6a2e","56dafc4a.8aaae4"]]},{"id":"4ecf397b.0a23f8","type":"execute","name":"generate connection attachment parent url ","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-parent-connection\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.parent-service-instance-id`\"/>\n","comments":"","outputs":1,"x":1730.0049438476562,"y":512.3020674288273,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"43c6b758.a87968","type":"comment","name":"full mesh do nothing","info":"","comments":"","x":1564.671745300293,"y":723.3021055757999,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"717df1f.c979e1","type":"comment","name":"hub-spoke","info":"","comments":"","x":2565.6711463928223,"y":820.3019954264164,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"252298c8.827288","type":"execute","name":"generate connection attachment AR url ","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar.provided-allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":2238.0042991638184,"y":971.3019906580448,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"de70a181.95e65","type":"execute","name":"execute RestApiCallNode - get-resource connection-attachment-allotted-resource","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-providedAr\" />\n\n","comments":"","outputs":1,"x":2369.004379272461,"y":1010.9686204493046,"z":"b1d019b.6dbd8e8","wires":[["9f0875d3.47e2b8","807962c4.90f77"]]},{"id":"e69efead.6b9ed","type":"execute","name":"generate service data url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n","comments":"","outputs":1,"x":2419.508274078369,"y":1212.3058907091618,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"2aa6f09e.c6474","type":"execute","name":"execute RestApiCallNode - get service data of allotted resource","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-arsd\" />\n\n","comments":"","outputs":1,"x":2535.5084075927734,"y":1249.3057819902897,"z":"b1d019b.6dbd8e8","wires":[["6d9b82e0.ee0e5c","1f5ff987.3fd166"]]},{"id":"5d1cf617.14b6b8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2299.5039710998535,"y":1134.8018547594547,"z":"b1d019b.6dbd8e8","wires":[["e5d1673d.e9dbe8"]]},{"id":"dcf9daa3.e54cc8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2305.504219055176,"y":1091.801946312189,"z":"b1d019b.6dbd8e8","wires":[["9271766e.fe0c48"]]},{"id":"5b3adfc2.d795f","type":"for","name":"for loop roleidx - Get role from allotted resource","xml":"<for index=\"roleidx\" start=\"0\" end=\"`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2880.5047760009766,"y":239.3017717897892,"z":"b1d019b.6dbd8e8","wires":[["a590c534.c72538"]]},{"id":"a590c534.c72538","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3139.5050888061523,"y":238.30208745598793,"z":"b1d019b.6dbd8e8","wires":[["24fabbc8.4ee6a4"]]},{"id":"24fabbc8.4ee6a4","type":"switchNode","name":"switch Role","xml":"<switch test=\"`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$roleidx].name == 'role'`\">\n","comments":"","outputs":1,"x":3288.505100250244,"y":239.30192437767982,"z":"b1d019b.6dbd8e8","wires":[["13c03783.386d28"]]},{"id":"f7ff32b9.16d69","type":"set","name":"set prop.spoke.role","xml":"<set>\n<parameter name='prop.spoke.role' value='`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$roleidx].value`' />\n","comments":"","x":3593.505661010742,"y":236.90183225274086,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"13c03783.386d28","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3424.00492477417,"y":236.30176416039467,"z":"b1d019b.6dbd8e8","wires":[["f7ff32b9.16d69"]]},{"id":"30347a07.26c8f6","type":"switchNode","name":"switch spoke","xml":"<switch test=\"`$prop.spoke.role == 'spoke'`\">\n","comments":"","outputs":1,"x":1316.004280090332,"y":383.30169931054115,"z":"b1d019b.6dbd8e8","wires":[["2d380018.3e87c"]]},{"id":"2d380018.3e87c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1457.004035949707,"y":384.3017365038395,"z":"b1d019b.6dbd8e8","wires":[["1b9dfff3.6a8e9"]]},{"id":"356b426.2684ebe","type":"for","name":"for i.. service-data.vnfs.vnf_length[]","xml":"<for index='i' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1729.5045623779297,"y":438.3017317354679,"z":"b1d019b.6dbd8e8","wires":[["bfdedc49.050ca"]]},{"id":"bfdedc49.050ca","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2063.170753479004,"y":382.3016621172428,"z":"b1d019b.6dbd8e8","wires":[["fd950685.06ac48","2d8b9375.2ddaac","257f4a9c.1ed446"]]},{"id":"fd950685.06ac48","type":"switchNode","name":"switch ActivateSDWANPortInstance","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n    \n    \n\n","comments":"","outputs":1,"x":2334.1707916259766,"y":328.3025485575199,"z":"b1d019b.6dbd8e8","wires":[["fc67008d.091db"]]},{"id":"fc67008d.091db","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2547.170555114746,"y":329.30255141854286,"z":"b1d019b.6dbd8e8","wires":[["1a445db7.1fd752"]]},{"id":"1a445db7.1fd752","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2696.0042991638184,"y":331.3017407953739,"z":"b1d019b.6dbd8e8","wires":[["3c007d2e.edc602"]]},{"id":"3c007d2e.edc602","type":"for","name":"for loop widx - Get wan port ID from servicedata","xml":"<for index=\"widx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2969.004249572754,"y":329.66895881295204,"z":"b1d019b.6dbd8e8","wires":[["f1345e2.c9f7ea"]]},{"id":"f1345e2.c9f7ea","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3238.0051765441895,"y":328.6692048609257,"z":"b1d019b.6dbd8e8","wires":[["ba5679ba.3ede18","3e5320cd.89f1e","efdc38fc.1f5628","8e38557b.879d28"]]},{"id":"ba5679ba.3ede18","type":"switchNode","name":"switch transportNetworkName","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'transportNetworkName'`\">\n","comments":"","outputs":1,"x":3481.0062103271484,"y":283.66977801918983,"z":"b1d019b.6dbd8e8","wires":[["8f69b44d.c2f088"]]},{"id":"8f69b44d.c2f088","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3681.0059852600098,"y":283.6699401438236,"z":"b1d019b.6dbd8e8","wires":[["a5483223.dc4b1"]]},{"id":"a5483223.dc4b1","type":"set","name":"set prop.spoke.transportNetworkName","xml":"<set>\n<parameter name='prop.spoke.transportNetworkName' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n","comments":"","x":3908.006721496582,"y":285.27052226662636,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"1b9dfff3.6a8e9","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1209.9733276367188,"y":694.270647674799,"z":"b1d019b.6dbd8e8","wires":[["356b426.2684ebe","4ecf397b.0a23f8","1eb0dd45.2d88f3","a13ee754.9515f8","dd934675.d4e888","de9858f.b81a8a8","88c5e553.ee7048","2e975a9d.1a4246"]]},{"id":"2d8b9375.2ddaac","type":"switchNode","name":"switch ActivateSDWANDeviceInstance","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n","comments":"","outputs":1,"x":2326.5042266845703,"y":402.30175319314003,"z":"b1d019b.6dbd8e8","wires":[["74821dd.148afe4"]]},{"id":"74821dd.148afe4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2545.5039768218994,"y":403.30173793435097,"z":"b1d019b.6dbd8e8","wires":[["c6b3d98e.b714c8"]]},{"id":"c6b3d98e.b714c8","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2696.3379669189453,"y":409.30092921853065,"z":"b1d019b.6dbd8e8","wires":[["57f2bdad.e02274"]]},{"id":"57f2bdad.e02274","type":"for","name":"for loop didx - Get device ID from servicedata","xml":"<for index=\"didx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2955.338218688965,"y":411.6682244837284,"z":"b1d019b.6dbd8e8","wires":[["ca5f7c6e.be6de"]]},{"id":"ca5f7c6e.be6de","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3241.338726043701,"y":444.6684094965458,"z":"b1d019b.6dbd8e8","wires":[["a11b64a3.1c2778"]]},{"id":"a11b64a3.1c2778","type":"switchNode","name":"switch deviceId","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'deviceId'`\">\n","comments":"","outputs":1,"x":3424.3396377563477,"y":444.6690198481083,"z":"b1d019b.6dbd8e8","wires":[["b3a0e9d7.649ff8"]]},{"id":"b3a0e9d7.649ff8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3624.339412689209,"y":444.6691819727421,"z":"b1d019b.6dbd8e8","wires":[["a6327912.f3f9d8"]]},{"id":"a6327912.f3f9d8","type":"set","name":"set prop.spoke.deviceId","xml":"<set>\n<parameter name='prop.spoke.deviceId' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].value`' />\n","comments":"","x":3819.3400955200195,"y":441.2697631418705,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"257f4a9c.1ed446","type":"switchNode","name":"switch ActivateSiteInstance","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n","comments":"","outputs":1,"x":2305.5043411254883,"y":463.30178466439247,"z":"b1d019b.6dbd8e8","wires":[["9ba2d06.8f6be3"]]},{"id":"9ba2d06.8f6be3","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2539.503978729248,"y":464.30172458291054,"z":"b1d019b.6dbd8e8","wires":[["a15d8c7c.78012"]]},{"id":"a15d8c7c.78012","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2691.3379669189453,"y":486.3009606897831,"z":"b1d019b.6dbd8e8","wires":[["44322235.a2372c","d545295b.570bb8"]]},{"id":"44322235.a2372c","type":"for","name":"for loop widx - Get wan site ID from servicedata","xml":"<for index=\"sidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2972.3377990722656,"y":485.66816344857216,"z":"b1d019b.6dbd8e8","wires":[["e3395281.b0fe4"]]},{"id":"e3395281.b0fe4","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3241.338726043701,"y":484.6684094965458,"z":"b1d019b.6dbd8e8","wires":[["2466c56a.c4304a","fe259139.fb262","9b298a8b.b4f888"]]},{"id":"2466c56a.c4304a","type":"switchNode","name":"switch siteId","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n","comments":"","outputs":1,"x":3430.33992767334,"y":534.6690813601017,"z":"b1d019b.6dbd8e8","wires":[["8bd2628f.d7e06"]]},{"id":"8bd2628f.d7e06","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3630.3394050598145,"y":522.6691958010197,"z":"b1d019b.6dbd8e8","wires":[["4379d5c4.4bf5fc"]]},{"id":"4379d5c4.4bf5fc","type":"set","name":"set prop.spoke.siteId","xml":"<set>\n<parameter name='prop.spoke.siteId' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n","comments":"","x":3823.340358734131,"y":529.2698260843754,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"3e5320cd.89f1e","type":"switchNode","name":"switch wanPortId","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'wanPortId'`\">\n","comments":"","outputs":1,"x":3454.50390625,"y":320.3018342554569,"z":"b1d019b.6dbd8e8","wires":[["42e60a6a.aa3574"]]},{"id":"42e60a6a.aa3574","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3684.5039100646973,"y":320.30194583535194,"z":"b1d019b.6dbd8e8","wires":[["ae0a5d97.a78e5"]]},{"id":"ae0a5d97.a78e5","type":"set","name":"set prop.spoke.wanPortId","xml":"<set>\n<parameter name='prop.spoke.wanPortId' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n","comments":"","x":3911.5046463012695,"y":321.9025279581547,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"efdc38fc.1f5628","type":"switchNode","name":"switch providerIpAddress","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'providerIpAddress'`\">\n","comments":"","outputs":1,"x":3472.504066467285,"y":364.30178466439247,"z":"b1d019b.6dbd8e8","wires":[["ac0b6cb5.77b59"]]},{"id":"ac0b6cb5.77b59","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3672.5038414001465,"y":364.30194678902626,"z":"b1d019b.6dbd8e8","wires":[["f9d16c81.a3a79"]]},{"id":"f9d16c81.a3a79","type":"set","name":"set prop.spoke.providerIpAddress","xml":"<set>\n<parameter name='prop.spoke.providerIpAddress' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n","comments":"","x":3899.5045776367188,"y":365.902528911829,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"8e38557b.879d28","type":"switchNode","name":"switch ipAddress","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'ipAddress'`\">\n","comments":"","outputs":1,"x":3452.503894805908,"y":403.3018209040165,"z":"b1d019b.6dbd8e8","wires":[["3e49c027.9158a"]]},{"id":"3e49c027.9158a","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3676.5037231445312,"y":403.3019382059574,"z":"b1d019b.6dbd8e8","wires":[["63fb7b99.9c4f54"]]},{"id":"63fb7b99.9c4f54","type":"set","name":"set prop.spoke.ipAddress","xml":"<set>\n<parameter name='prop.spoke.ipAddress' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n","comments":"","x":3903.5044593811035,"y":404.90252032876015,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"95ab5318.2e5c4","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1020.0038070678711,"y":262.50004068017006,"z":"b1d019b.6dbd8e8","wires":[["8881f8e.5bc9208","52b0eddb.8791b4","532b1f7d.9c604","30347a07.26c8f6"]]},{"id":"6dbd8249.403ccc","type":"comment","name":"get spoke device,site,wanport info","info":"","comments":"","x":1776.97265625,"y":385.9687458574772,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"6c52be5d.b4d02","type":"comment","name":"Add routes only on activation of spoke Attach site","info":"","comments":"","x":1437.5038223266602,"y":329.0000597536564,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"ac54d054.7cd81","type":"comment","name":"Loop for all the hub allotted resources, get respective service data and get vnfs info","info":"","comments":"","x":2193.50390625,"y":824.5000559389591,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"ff9f298a.cca7f8","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2957.5037384033203,"y":1845.000134140253,"z":"b1d019b.6dbd8e8","wires":[["d59362d2.ef947","b082a709.11f708"]]},{"id":"3adcf839.875688","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3024.5037384033203,"y":1741.000010162592,"z":"b1d019b.6dbd8e8","wires":[["e169850b.ca2b98"]]},{"id":"d59362d2.ef947","type":"switchNode","name":"switch siteId","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'siteId'`\">\n","comments":"","outputs":1,"x":3134.503547668457,"y":1816.9998003542423,"z":"b1d019b.6dbd8e8","wires":[["6377b71d.78eda8"]]},{"id":"6377b71d.78eda8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3285.503917694092,"y":1815.999983459711,"z":"b1d019b.6dbd8e8","wires":[["d846e28e.6f3b8"]]},{"id":"d846e28e.6f3b8","type":"set","name":"set prop.hub.siteId","xml":"<set>\n<parameter name='prop.hub.siteId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n","comments":"","x":3457.5039253234863,"y":1813.6005522310734,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"23a8e35f.4687ac","type":"switchNode","name":"switch request-action","xml":"<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":2611.0036544799805,"y":2169.000444084406,"z":"b1d019b.6dbd8e8","wires":[["98e33ddb.b0dca","c2b4abbd.4bca28"]]},{"id":"98e33ddb.b0dca","type":"outcome","name":"ActivateSDWANAttachmentInstance","xml":"<outcome value='ActivateSDWANAttachmentInstance'>","comments":"","outputs":1,"x":2881.0310592651367,"y":1980.0314766466618,"z":"b1d019b.6dbd8e8","wires":[["6bb4758a.3f2dbc"]]},{"id":"d343e9eb.f9d438","type":"execute","name":"execute RestApiCallNode underlay route","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"underlayHubResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />","comments":"","outputs":1,"x":3469.504180908203,"y":1950.0004482269287,"z":"b1d019b.6dbd8e8","wires":[["6e0b715b.cb6d1","1b5945c5.1fa10a"]]},{"id":"1b5945c5.1fa10a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3716.504009246826,"y":1929.000280380249,"z":"b1d019b.6dbd8e8","wires":[["2019f4f3.e1c6cc"]]},{"id":"6e0b715b.cb6d1","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3714.503688812256,"y":1885.0002708435059,"z":"b1d019b.6dbd8e8","wires":[["76b9bae0.83f2b4"]]},{"id":"df42caf7.594ce8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing sdwan hub route underlay rest api\" />\n","comments":"","x":4002.505043029785,"y":1884.0006313323975,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"543ffebe.107f8","type":"set","name":"Add prop.hub.route","xml":"<set>\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.hub.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.hub.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.hub.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.spoke.wanPortId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.hub.ipAddress`' />\n\n\n","comments":"","x":3404.8377838134766,"y":1920.6669883728027,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"2e8b8d76.b2d882","type":"execute","name":"execute RestApiCallNode underlay route","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"underlayspokeResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />","comments":"","outputs":1,"x":3486.838050842285,"y":2114.667499214411,"z":"b1d019b.6dbd8e8","wires":[["9396f713.11f4f8","348aaf89.0950a"]]},{"id":"348aaf89.0950a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3731.8382873535156,"y":2140.667496204376,"z":"b1d019b.6dbd8e8","wires":[["928f88f0.d6ee18"]]},{"id":"9396f713.11f4f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3729.8379669189453,"y":2096.667486667633,"z":"b1d019b.6dbd8e8","wires":[["58d448af.a07fd8"]]},{"id":"38cd6644.9bd7ea","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing sdwan spoke route underlay rest api\" />\n","comments":"","x":4019.8393936157227,"y":2089.6679944992065,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"b2b73fd8.a499a","type":"set","name":"Add prop.spoke.route","xml":"<set>\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.spoke.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.spoke.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.spoke.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.hub.wanPortId`' />                                                \n<parameter name='prop.route.ipAddress' value='`$prop.spoke.ipAddress`' />\n\n\n","comments":"","x":3427.7019233703613,"y":2077.3642114698887,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"f670e4e2.ed4a18","type":"set","name":"set  prop.underlay.routeIds","xml":"<set>\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubSiteId' value='`$prop.hub.siteId`' />\n<!--parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].spokeSiteId' value='`$prop.spoke.siteId`' /-->\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubRouteId' value='`$underlayHubResp.success[0].id`' />\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].spokeRouteId' value='`$underlayspokeResp.success[0].id`' />\n\n\n\n","comments":"","x":3437.669448852539,"y":2237.0309874117374,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"6bb4758a.3f2dbc","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3117.003578186035,"y":1977.4999100267887,"z":"b1d019b.6dbd8e8","wires":[["543ffebe.107f8","b2b73fd8.a499a","f670e4e2.ed4a18","2e8b8d76.b2d882","d343e9eb.f9d438","154b4cb.99625b3","497ef4.1532d10c","7ece27e0.0e9908","aeaf4169.ad4e1","7b6ea599.d556bc"]]},{"id":"cda2bd2c.f7f2b","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3149.0036811828613,"y":2619.500260025263,"z":"b1d019b.6dbd8e8","wires":[["d9e2a3b8.be3d7","7877847f.fa07bc","32aaac62.305534","b552a294.7e377","4d9ba6d6.4948a8","5011194.82bcce8","aa5933c2.13ab"]]},{"id":"c2b4abbd.4bca28","type":"outcome","name":"DeactivateSDWANAttachmentInstance","xml":"<outcome value='DeactivateSDWANAttachmentInstance'>","comments":"","outputs":1,"x":2897.5037384033203,"y":2613.500071197748,"z":"b1d019b.6dbd8e8","wires":[["cda2bd2c.f7f2b"]]},{"id":"497ef4.1532d10c","type":"set","name":"Add sites to list and update length","xml":"<set>\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].hubSiteName' value='`$prop.hub.siteName`' />\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].hubSiteId' value='`$prop.hub.siteId`' />\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].spokeSiteName' value='`$prop.spoke.siteName`' />\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].spokeSiteId' value='`$prop.spoke.siteId`' />\n\n\n\n\n\n\n\n\n\n\n\n\n\n","comments":"","x":3442.0357360839844,"y":2362.0318676531315,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"536b45e5.f1ae4c","type":"comment","name":"save hubsiteIds and spoke siteIds for provision","info":"","comments":"","x":3474.0361099243164,"y":2318.0317417681217,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"fe259139.fb262","type":"switchNode","name":"switch name","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'name'`\">\n","comments":"","outputs":1,"x":3431.034912109375,"y":484.03124871850014,"z":"b1d019b.6dbd8e8","wires":[["1eff9aea.08d565"]]},{"id":"1eff9aea.08d565","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3631.0346870422363,"y":484.0314108431339,"z":"b1d019b.6dbd8e8","wires":[["498b6b56.a99af4"]]},{"id":"498b6b56.a99af4","type":"set","name":"set prop.spoke.siteName","xml":"<set>\n<parameter name='prop.spoke.siteName' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n","comments":"","x":3819.0354919433594,"y":482.6320244371891,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"b082a709.11f708","type":"switchNode","name":"switch name","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'name'`\">\n","comments":"","outputs":1,"x":3133.0349349975586,"y":1783.5311075747013,"z":"b1d019b.6dbd8e8","wires":[["66b911d8.08a74"]]},{"id":"66b911d8.08a74","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3284.0353050231934,"y":1782.53129068017,"z":"b1d019b.6dbd8e8","wires":[["e9fd7b0e.9d3c98"]]},{"id":"e9fd7b0e.9d3c98","type":"set","name":"set prop.hub.siteName","xml":"<set>\n<parameter name='prop.hub.siteName' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n","comments":"","x":3456.035312652588,"y":1780.1318594515324,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"f5abf897.1c94a8","type":"set","name":"set prop.provision.siteIds_length=0","xml":"<set>\n<parameter name='prop.provision.siteIds_length' value='0' />\n\n\n\n","comments":"","x":456.03517150878906,"y":370.0312534868717,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"487dcb6d.a39b04","type":"execute","name":"execute RestApiCallNode site provision urls","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-site-provision.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/sites/provision-urls'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"provisionUrlRsp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />","comments":"","outputs":1,"x":796.0352783203125,"y":786.031494140625,"z":"b1d019b.6dbd8e8","wires":[["ffc902c4.10ca6","e8f294ed.ea5b38"]]},{"id":"e8f294ed.ea5b38","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1051.0354766845703,"y":821.0315399169922,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"ffc902c4.10ca6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1047.0352783203125,"y":748.0314774513245,"z":"b1d019b.6dbd8e8","wires":[["f3276258.b0845"]]},{"id":"f3276258.b0845","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing provision url rest api\" />\n","comments":"","x":1218.0357704162598,"y":779.0314909517765,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"e484905a.ff144","type":"for","name":"for providx..prop.provision.siteIds[]","xml":"<for index='providx' start='0' end='`$prop.provision.siteIds_length`' >\n","comments":"","outputs":1,"x":449.0352020263672,"y":574.031293541193,"z":"b1d019b.6dbd8e8","wires":[["632e756e.6e9b1c"]]},{"id":"632e756e.6e9b1c","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":473.0352439880371,"y":784.0312668383121,"z":"b1d019b.6dbd8e8","wires":[["2e3f9820.f1c8a8","487dcb6d.a39b04","b564c84.911a938"]]},{"id":"2e3f9820.f1c8a8","type":"set","name":"set prop.spoke.hubSiteId, spokeSiteId","xml":"<set>\n<parameter name='prop.provision.hubSitename' value='`$prop.provision.siteIds[$providx].hubSiteName`' />\n<parameter name='prop.provision.spokeSitename' value='`$prop.provision.siteIds[$providx].spokeSiteName`' />\n<parameter name='prop.provision.hubspokesite[0]' value='`$prop.provision.siteIds[$providx].hubSiteId`' />\n<parameter name='prop.provision.hubspokesite[1]' value='`$prop.provision.siteIds[$providx].spokeSiteId`' />\n<parameter name='prop.provision.hubspokesite_length' value='2' />\n","comments":"","x":779.0379333496094,"y":736.6330394744873,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"b564c84.911a938","type":"record","name":"record provision url response to the file","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`'/opt/opendaylight/current/data/log/' + 'HUB-' + $prop.provision.hubSitename + '-SPOKE-' + $prop.provision.spokeSitename + '-provisionUrl'`\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value='`$provisionUrlRsp.success[0].url`'/>\n\n","comments":"","outputs":1,"x":785.0353393554688,"y":835.0314025878906,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"35d495b.f10696a","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2522.035388946533,"y":1051.0313250124454,"z":"b1d019b.6dbd8e8","wires":[["2ab4ecb3.a0e7b4"]]},{"id":"684cbe0.d0ae544","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":2002.0350646972656,"y":614.0313078463078,"z":"b1d019b.6dbd8e8","wires":[["9bdd2027.61dcf"]]},{"id":"8db55ac9.a24998","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1946.0352325439453,"y":705.0312162935734,"z":"b1d019b.6dbd8e8","wires":[["62066499.8552ec","40faa7d6.f30958"]]},{"id":"154b4cb.99625b3","type":"set","name":"set prop.underlay.routeIds_length++","xml":"<set>\n<parameter name='prop.underlay.routeIds_length' value='`$prop.underlay.routeIds_length + 1`' />\n\n\n\n\n","comments":"","x":3467.0050659179688,"y":2273.250064522028,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"7ece27e0.0e9908","type":"set","name":"Update prop.provision.siteIds_length","xml":"<set>\n<parameter name='prop.provision.siteIds_length' value='`$prop.provision.siteIds_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n","comments":"","x":3450.5048065185547,"y":2397.2501598894596,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"d545295b.570bb8","type":"set","name":"set prop.spoke.siteidx","xml":"<set>\n<parameter name='prop.spoke.siteidx' value='`$i`' />\n\n","comments":"","x":2890.7540969848633,"y":450.00002732872963,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"f0e8f4fb.c20608","type":"set","name":"set  underlay route ids to service data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value=\"underlayRouteIds\" />\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$tmp.routeString`' />\n\n\n","comments":"","x":1913.0045471191406,"y":1937.0003973543644,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"e2e0c9ba.1ae298","type":"set","name":"set prop.underlay.routeIds_length=0","xml":"<set>\n<parameter name='prop.underlay.routeIds_length' value='0' />\n\n\n\n","comments":"","x":461.0000305175781,"y":321.99611154198647,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"4d9ba6d6.4948a8","type":"for","name":"for loop uidx - Get route Id from prop.underlay.routeIds","xml":"<for index=\"uidx\" start=\"0\" end=\"`$prop.underlay.routeIds_length`\">\n    \n    \n","comments":"","outputs":1,"x":3504.6669387817383,"y":2492.3294989168644,"z":"b1d019b.6dbd8e8","wires":[["b779a699.2b9d28"]]},{"id":"b779a699.2b9d28","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3796.3336334228516,"y":2492.3294989168644,"z":"b1d019b.6dbd8e8","wires":[["a219586f.d987c8"]]},{"id":"a219586f.d987c8","type":"switchNode","name":"switch prop.hub.siteId","xml":"<switch test=\"`$prop.underlay.routeIds[$uidx].hubSiteId == $prop.hub.siteId`\">\n","comments":"","outputs":1,"x":3985.3336486816406,"y":2492.3296619951725,"z":"b1d019b.6dbd8e8","wires":[["55260cd6.1fda94"]]},{"id":"55260cd6.1fda94","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4156.333084106445,"y":2492.329661041498,"z":"b1d019b.6dbd8e8","wires":[["7c71da62.bde474"]]},{"id":"7c71da62.bde474","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":4310.333084106445,"y":2496.3296686708927,"z":"b1d019b.6dbd8e8","wires":[["ddeb2690.5c2138"]]},{"id":"ddeb2690.5c2138","type":"set","name":"set prop.hubRouteId prop.spokeRouteId","xml":"<set>\n<parameter name='prop.hubRouteId' value='`$prop.underlay.routeIds[$uidx].hubRouteId`' />\n<parameter name='prop.spokeRouteId' value='`$prop.underlay.routeIds[$uidx].spokeRouteId`' />\n","comments":"","x":4396.33309173584,"y":2568.32967248559,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"9b298a8b.b4f888","type":"switchNode","name":"switch underlayRouteIds","xml":"<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'underlayRouteIds'`\">\n","comments":"","outputs":1,"x":3436,"y":588.6627184450626,"z":"b1d019b.6dbd8e8","wires":[["3be394fa.ba925c"]]},{"id":"3be394fa.ba925c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3635.9994773864746,"y":576.6628328859806,"z":"b1d019b.6dbd8e8","wires":[["9920e23b.cd7d6"]]},{"id":"b59167a6.831738","type":"set","name":"set prop.underlay.routeIds","xml":"<set>\n<parameter name='prop.underlay.routeIdsString' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n","comments":"","x":4007.000877380371,"y":576.2635428011417,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"2e975a9d.1a4246","type":"switchNode","name":"switch request-action","xml":"<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":1123.0002899169922,"y":2028.329627662897,"z":"b1d019b.6dbd8e8","wires":[["50fd57d3.4e6908","75c971c8.2ade9"]]},{"id":"50fd57d3.4e6908","type":"outcome","name":"ActivateSDWANAttachmentInstance","xml":"<outcome value='ActivateSDWANAttachmentInstance'>","comments":"","outputs":1,"x":1387.0003356933594,"y":1983.3296248018742,"z":"b1d019b.6dbd8e8","wires":[["392209cf.5e8ed6"]]},{"id":"392209cf.5e8ed6","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1628.9728469848633,"y":1979.7983757555485,"z":"b1d019b.6dbd8e8","wires":[["f0e8f4fb.c20608","c79bd758.d1a228","c32378d4.836d48","ec775956.c66808"]]},{"id":"c8905137.4ae61","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1632.9728355407715,"y":2063.7985445559025,"z":"b1d019b.6dbd8e8","wires":[["b63c926.b7d007"]]},{"id":"75c971c8.2ade9","type":"outcome","name":"DeactivateSDWANAttachmentInstance","xml":"<outcome value='DeactivateSDWANAttachmentInstance'>","comments":"","outputs":1,"x":1384.4729766845703,"y":2065.7983814775944,"z":"b1d019b.6dbd8e8","wires":[["c8905137.4ae61"]]},{"id":"b63c926.b7d007","type":"set","name":"set input parameter length -1","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length - 1`' />\n\n\n\n\n","comments":"","x":1861.6665344238281,"y":2062.32963052392,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"ada095aa.2b5138","type":"comment","name":"Get route routes IDs","info":"","comments":"","x":3404.3334045410156,"y":2453.6627356112003,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"c79bd758.d1a228","type":"set","name":"set  underlay route ids to service data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n\n\n\n\n","comments":"","x":1902.333480834961,"y":2011.6626717150211,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"c32378d4.836d48","type":"for","name":"for jidx paramidx - Get topology from servicedata","xml":"<for index=\"jidx\" start=\"0\" end=\"`$prop.underlay.routeIds_length`\">\n    \n    \n","comments":"","outputs":1,"x":1991.3334045410156,"y":1558.329443603754,"z":"b1d019b.6dbd8e8","wires":[["59aabb37.7454e4"]]},{"id":"81edad0c.4f5ac","type":"execute","name":"execute concat","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat1\"/>\n    <parameter name=\"target\" value='`$prop.underlay.routeIds[$jidx].hubRouteId`'/>\n\n\n","comments":"","outputs":1,"x":2175.333740234375,"y":1691.996646553278,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"7fab8278.4c656c","type":"execute","name":"execute concat","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$prop.underlay.routeIds[$jidx].hubSiteId`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat\"/>\n    <parameter name=\"target\" value=\",\"/>\n\n\n","comments":"","outputs":1,"x":2185.3337326049805,"y":1644.662984520197,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"59aabb37.7454e4","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1898.333423614502,"y":1743.662773758173,"z":"b1d019b.6dbd8e8","wires":[["7fab8278.4c656c","81edad0c.4f5ac","bd7613d0.c6069","cafff242.d3dff","2fe3b3bd.2bc2ac","6f5dac0d.df1414"]]},{"id":"bd7613d0.c6069","type":"execute","name":"execute concat","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat1`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat2\"/>\n    <parameter name=\"target\" value=\",\"/>\n\n\n","comments":"","outputs":1,"x":2182.3334426879883,"y":1731.6628777086735,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"cafff242.d3dff","type":"execute","name":"execute concat","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat2`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat3\"/>\n    <parameter name=\"target\" value='`$prop.underlay.routeIds[$jidx].spokeRouteId`'/>\n\n\n","comments":"","outputs":1,"x":2182.3334426879883,"y":1767.6628777086735,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"2fe3b3bd.2bc2ac","type":"execute","name":"execute concat","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat3`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat4\"/>\n    <parameter name=\"target\" value=\" | \"/>\n\n\n","comments":"","outputs":1,"x":2175.3334426879883,"y":1807.996251732111,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"6f5dac0d.df1414","type":"execute","name":"execute concat","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.routeString`'/>\n    <parameter name=\"outputPath\" value=\"tmp.routeString\"/>\n    <parameter name=\"target\" value='`$tmp.concat4`'/>\n\n\n","comments":"","outputs":1,"x":2178.333381652832,"y":1862.6627909243107,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"ec775956.c66808","type":"set","name":"Set tmp.routeString","xml":"<set>\n<parameter name='tmp.routeString' value=\"\" />\n\n","comments":"","x":1895.3334045410156,"y":1499.6627747118473,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"9920e23b.cd7d6","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3784.0002250671387,"y":622.9961306154728,"z":"b1d019b.6dbd8e8","wires":[["b59167a6.831738","c00c7b4.2e5c088"]]},{"id":"c00c7b4.2e5c088","type":"execute","name":"execute split |","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.underlay.routeIdsString`'/>\n<parameter name=\"regex\" value=\" | \"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.underlay.routeIdsValue\"/>\n","comments":"","outputs":1,"x":3962.0002365112305,"y":642.9961306154728,"z":"b1d019b.6dbd8e8","wires":[["d71d5ee6.5fb61","71f30ffd.74297"]]},{"id":"71f30ffd.74297","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4139.0002517700195,"y":623.9961296617985,"z":"b1d019b.6dbd8e8","wires":[["5a3e2b9e.9c82d4"]]},{"id":"d71d5ee6.5fb61","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":4128.0002517700195,"y":671.9961315691471,"z":"b1d019b.6dbd8e8","wires":[["e2b81ef4.58103"]]},{"id":"3ae500a3.3e9bf","type":"set","name":"set ipAddress prefixLength","xml":"<set>\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubSiteId' value='`$prop.underlay.routeIdsValues[0]`' />\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubRouteId' value='`$prop.underlay.routeIdsValues[1]`' />\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].spokeRouteId' value='`$prop.underlay.routeIdsValues[2]`' />","comments":"","x":5325.001117706299,"y":557.9963718950748,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"e2b81ef4.58103","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4258.000255584717,"y":671.9961315691471,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"5a3e2b9e.9c82d4","type":"for","name":"for loop ridx ","xml":"<for index=\"ridx\" start=\"0\" end=\"`$prop.underlay.routeIdsValue_length`\">\n    \n    \n","comments":"","outputs":1,"x":4284.999938964844,"y":621.9961296617985,"z":"b1d019b.6dbd8e8","wires":[["51bc75fb.70c9ec"]]},{"id":"51bc75fb.70c9ec","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":4463.332950592041,"y":618.9961306154728,"z":"b1d019b.6dbd8e8","wires":[["96fd714e.32a33"]]},{"id":"96fd714e.32a33","type":"execute","name":"execute split ,","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.underlay.routeIdsValue[$ridx]`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.underlay.routeIdsValues\"/>\n","comments":"","outputs":1,"x":4638.332962036133,"y":617.9961287081242,"z":"b1d019b.6dbd8e8","wires":[["1c090ebd.4b1411","d83771e1.cb93f"]]},{"id":"1c090ebd.4b1411","type":"failure","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4795.33296585083,"y":594.9961363375187,"z":"b1d019b.6dbd8e8","wires":[["669de5ac.6729ac"]]},{"id":"d83771e1.cb93f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":4784.33296585083,"y":642.9961382448673,"z":"b1d019b.6dbd8e8","wires":[["cb663456.f36218"]]},{"id":"cb663456.f36218","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4914.332969665527,"y":642.9961382448673,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"c59be3a3.5f1ff","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":5117.665496826172,"y":573.9962903559208,"z":"b1d019b.6dbd8e8","wires":[["3ae500a3.3e9bf","52bf6eab.78af3"]]},{"id":"52bf6eab.78af3","type":"set","name":"set ipAddress prefixLength","xml":"<set>\n<parameter name='prop.underlay.routeIds_length' value='`$prop.underlay.routeIds_length + 1`' />\n","comments":"","x":5317.333156585693,"y":599.9961678087711,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"669de5ac.6729ac","type":"switchNode","name":"switch prop.underlay.routeIdsValues_length","xml":"<switch test='`$prop.underlay.routeIdsValues_length`'>\n","comments":"","outputs":1,"x":4993.667121887207,"y":475.9961611330509,"z":"b1d019b.6dbd8e8","wires":[["43831c53.32aa44","286a0e51.c7df42"]]},{"id":"43831c53.32aa44","type":"outcome","name":"3","xml":"<outcome value='3'>\n","comments":"","outputs":1,"x":5228.636054992676,"y":512.9648882448673,"z":"b1d019b.6dbd8e8","wires":[["c59be3a3.5f1ff"]]},{"id":"286a0e51.c7df42","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":5245.666980743408,"y":394.9961020052433,"z":"b1d019b.6dbd8e8","wires":[["b1a5d346.3c838"]]},{"id":"b1a5d346.3c838","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":5406.66650390625,"y":434.99609246850014,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"9edc0016.5374a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n","comments":"","x":2886.006446838379,"y":1008.3028489649296,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"36139e8.434ce62","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2872.0059547424316,"y":956.969269901514,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"aeaf4169.ad4e1","type":"set","name":"hardcode hub route","xml":"<set>\n<parameter name='prop.hub.ipAddress' value=\"10.2.0.2\" />\n<parameter name='prop.hub.providerIpAddress' value=\"10.2.0.0/16\" />\n\n\n","comments":"","x":3406.0079498291016,"y":1889.0040550231934,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"7b6ea599.d556bc","type":"set","name":"hardcode spoke route","xml":"<set>\n<parameter name='prop.spoke.ipAddress' value=\"10.3.0.1\" />\n<parameter name='prop.spoke.providerIpAddress' value=\"10.3.0.0/16\" />","comments":"","x":3421.008316040039,"y":2046.0039640963078,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"5011194.82bcce8","type":"set","name":"hardcode hub route","xml":"<set>\n<parameter name='prop.hub.ipAddress' value=\"10.2.0.2\" />\n<parameter name='prop.hub.providerIpAddress' value=\"10.2.0.0/16\" />\n\n\n","comments":"","x":3437.3374786376953,"y":2522.000064522028,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"aa5933c2.13ab","type":"set","name":"hardcode spoke route","xml":"<set>\n<parameter name='prop.spoke.ipAddress' value=\"10.3.0.1\" />\n<parameter name='prop.spoke.providerIpAddress' value=\"10.3.0.0/16\" />","comments":"","x":3462.337158203125,"y":2633.9999987185,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"2c880b10.265824","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3473.0080757141113,"y":1253.5040480196476,"z":"b1d019b.6dbd8e8","wires":[["c82b1262.885e1","43b2a05a.a7d9b"]]},{"id":"27cac422.cfe53c","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3803.2580280303955,"y":1421.0040365755558,"z":"b1d019b.6dbd8e8","wires":[["4095ea96.600eb4"]]},{"id":"4095ea96.600eb4","type":"switchNode","name":"switch transportNetworkName==prop.spoke.transportNetworkName","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value == $prop.spoke.transportNetworkName`\">\n","comments":"","outputs":1,"x":4136.008050918579,"y":1423.0043121874332,"z":"b1d019b.6dbd8e8","wires":[["62cc8a78.a53c54"]]},{"id":"62cc8a78.a53c54","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4003.0094957351685,"y":1519.0042206346989,"z":"b1d019b.6dbd8e8","wires":[["79266ace.3e0f24"]]},{"id":"79266ace.3e0f24","type":"block","name":"block atmoic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":4158.759503364563,"y":1511.0042206346989,"z":"b1d019b.6dbd8e8","wires":[["b05226c4.bd3a28","eaeb7669.551da8"]]},{"id":"eaeb7669.551da8","type":"set","name":"set tmp.wanportvidx ","xml":"<set>\n<parameter name='tmp.wanportvidx' value='`$arvidx`' />\n\n","comments":"","x":4336.2604722976685,"y":1487.004341751337,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"eb5f2e.bb7a50d","type":"for","name":"for loop wanportvidx - Get wan port ID from servicedata","xml":"<for index=\"wportidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n","comments":"","outputs":1,"x":2744.5081939697266,"y":1699.0043436586857,"z":"b1d019b.6dbd8e8","wires":[["94ca8906.8e1df8"]]},{"id":"94ca8906.8e1df8","type":"block","name":"block atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3047.5095977783203,"y":1657.004679352045,"z":"b1d019b.6dbd8e8","wires":[["de2e10d.04cb7f","c3406431.579fb8","5a48c14b.c2614"]]},{"id":"de2e10d.04cb7f","type":"switchNode","name":"switch wanPortId","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'wanPortId'`\">\n","comments":"","outputs":1,"x":3246.8432846069336,"y":1614.0048920214176,"z":"b1d019b.6dbd8e8","wires":[["31fd8292.a950ce"]]},{"id":"31fd8292.a950ce","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3407.8436126708984,"y":1615.0049721300602,"z":"b1d019b.6dbd8e8","wires":[["d6943196.7494d"]]},{"id":"d6943196.7494d","type":"set","name":"set prop.hub.wanPortId","xml":"<set>\n<parameter name='prop.hub.wanPortId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n","comments":"","x":3597.8440742492676,"y":1614.6052481234074,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"c3406431.579fb8","type":"switchNode","name":"switch providerIpAddress","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'providerIpAddress'`\">\n","comments":"","outputs":1,"x":3268.371768951416,"y":1651.2011968195438,"z":"b1d019b.6dbd8e8","wires":[["db88a61d.083358"]]},{"id":"db88a61d.083358","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3444.3727531433105,"y":1651.2013193666935,"z":"b1d019b.6dbd8e8","wires":[["5328c878.a15168"]]},{"id":"5328c878.a15168","type":"set","name":"set prop.hub.providerIpAddress","xml":"<set>\n<parameter name='prop.hub.providerIpAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n","comments":"","x":3646.372791290283,"y":1651.8012396395206,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"5a48c14b.c2614","type":"switchNode","name":"switch ipAddress","xml":"<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'ipAddress'`\">\n","comments":"","outputs":1,"x":3240.871850967407,"y":1688.7012821733952,"z":"b1d019b.6dbd8e8","wires":[["1b2197ee.121938"]]},{"id":"1b2197ee.121938","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3444.872791290283,"y":1688.7012340128422,"z":"b1d019b.6dbd8e8","wires":[["fe46a76e.a6fa58"]]},{"id":"fe46a76e.a6fa58","type":"set","name":"set prop.hub.ipAddress","xml":"<set>\n<parameter name='prop.hub.ipAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n","comments":"","x":3639.8727951049805,"y":1688.3012095987797,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"76b9bae0.83f2b4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3847.258213043213,"y":1882.2540187835693,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"2019f4f3.e1c6cc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3846.258029937744,"y":1928.253957748413,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"58d448af.a07fd8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3865.258399963379,"y":2090.254084587097,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"928f88f0.d6ee18","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3866.2581577301025,"y":2137.2540855407715,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"a62325e4.8d0b68","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3864.2582054138184,"y":2580.0039698183537,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"3b45764d.017e4a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3865.257963180542,"y":2627.003970772028,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"8336cdde.f9fe3","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing sdwan hub route underlay rest api\" />\n","comments":"","x":4017.340606689453,"y":2581.9710108339787,"z":"b1d019b.6dbd8e8","wires":[]},{"id":"8c851f6f.caa55","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3864.2578125,"y":2671.0039049685,"z":"b1d019b.6dbd8e8","wires":[[]]},{"id":"29ad144c.f2690c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3865.2575702667236,"y":2718.0039059221745,"z":"b1d019b.6dbd8e8","wires":[[]]}]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json
new file mode 100644 (file)
index 0000000..5fd9bb3
--- /dev/null
@@ -0,0 +1,890 @@
+[{
+       "id": "17edfd48.067fb3",
+       "type": "dgstart",
+       "name": "DGSTART",
+       "outputs": 1,
+       "x": 100.01040649414062,
+       "y": 68.01041412353516,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["e615e2a2.ccf4f"]
+       ]
+}, {
+       "id": "e615e2a2.ccf4f",
+       "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": 312.0104103088379,
+       "y": 140.01043128967285,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["759cd8cf.a97478"]
+       ]
+}, {
+       "id": "759cd8cf.a97478",
+       "type": "method",
+       "name": "wan-connection-topology-operation-activate",
+       "xml": "<method rpc='wan-connection-topology-operation-activate' mode='sync'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 300.0105285644531,
+       "y": 228.01041412353516,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["6de8279c.d96f18"]
+       ]
+}, {
+       "id": "edd7fd49.09b45",
+       "type": "execute",
+       "name": "execute Properties",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 687.0106887817383,
+       "y": 312.0104856491089,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "e02df58.543ea08",
+       "type": "returnSuccess",
+       "name": "return success",
+       "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+       "comments": "",
+       "x": 287.0104217529297,
+       "y": 1177.010627746582,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "6de8279c.d96f18",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 212.51060485839844,
+       "y": 669.0105495452881,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["c3c817be.4ef968", "ad2c5957.526e98", "ee7ba6fd.384b18", "569cdb0d.3aa8c4", "336b6524.04896a", "edd7fd49.09b45", "e02df58.543ea08"]
+       ]
+}, {
+       "id": "c3c817be.4ef968",
+       "type": "execute",
+       "name": "generate services url",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.network-provided-resource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.services-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$network-topology-operation-input.service-information.service-id`\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 673.0106735229492,
+       "y": 383.0105857849121,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "ad2c5957.526e98",
+       "type": "execute",
+       "name": "execute RestApiCallNode - get-resource parent service data",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.services-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 799.0106735229492,
+       "y": 460.0105857849121,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["649fc773.be7288", "2c3dd512.e7091a"]
+       ]
+}, {
+       "id": "649fc773.be7288",
+       "type": "success",
+       "name": "success",
+       "xml": "<outcome value='success'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1146.010856628418,
+       "y": 411.0105857849121,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["27ee6d28.0b0992"]
+       ]
+}, {
+       "id": "27ee6d28.0b0992",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 1313.0109329223633,
+       "y": 445.0106463432312,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "2c3dd512.e7091a",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1151.8626289367676,
+       "y": 494.07674503326416,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["a4f3ebc3.28d808"]
+       ]
+}, {
+       "id": "a4f3ebc3.28d808",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Parent service data not available\" />\n    \n",
+       "comments": "",
+       "x": 1322.2607803344727,
+       "y": 510.01057529449463,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "ee7ba6fd.384b18",
+       "type": "for",
+       "name": "for pidx..mdsal-psd.service-data.networks.network[]",
+       "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.networks.network_length`' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 859.5107116699219,
+       "y": 611.0105295181274,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["5178f9b4.19b7c8"]
+       ]
+}, {
+       "id": "5178f9b4.19b7c8",
+       "type": "switchNode",
+       "name": "switch model-name",
+       "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pidx].network-data.network-information.onap-model-information.model-name == $network-topology-operation-input.network-information.onap-model-information.model-name`\">\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 807.5106887817383,
+       "y": 688.0105800628662,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["d017d8d9.0843a8"]
+       ]
+}, {
+       "id": "d017d8d9.0843a8",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 989.7607917785645,
+       "y": 690.0106735229492,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["b549c649.6ef3f8"]
+       ]
+}, {
+       "id": "b549c649.6ef3f8",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 1160.5214195251465,
+       "y": 694.867790222168,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["90347753.f53c58"]
+       ]
+}, {
+       "id": "90347753.f53c58",
+       "type": "set",
+       "name": "set tmp.pidx and tmp.network-input-parameters",
+       "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[$pidx].`' />\n<parameter name='tmp.network-input-parameters' value='`$mdsal-psd.service-data.networks.network[$pidx].network-data.network-request-input.network-input-parameters`' />\n<parameter name='tmp.found-network-input' value='true' />",
+       "comments": "",
+       "x": 1107.3788032531738,
+       "y": 768.4393863677979,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "569cdb0d.3aa8c4",
+       "type": "set",
+       "name": "set tmp.found-network-input",
+       "xml": "<set>\n<parameter name='tmp.found-network-input' value='false' />",
+       "comments": "",
+       "x": 741.5106582641602,
+       "y": 540.0105857849121,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "336b6524.04896a",
+       "type": "switchNode",
+       "name": "switch found-network-input",
+       "xml": "<switch test=\"`$found-network-input`\">\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 572.5107040405273,
+       "y": 879.0107097625732,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["616108fb.092f18", "40e56e53.4077e"]
+       ]
+}, {
+       "id": "616108fb.092f18",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 804.5107955932617,
+       "y": 923.010908126831,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["a846a4bd.9956b8"]
+       ]
+}, {
+       "id": "40e56e53.4077e",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 805.2607345581055,
+       "y": 881.010799407959,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["8273b3b3.844e2"]
+       ]
+}, {
+       "id": "8273b3b3.844e2",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Network input parameters not found\" />\n    \n",
+       "comments": "",
+       "x": 976.2607345581055,
+       "y": 889.0107688903809,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "a846a4bd.9956b8",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 542.0105819702148,
+       "y": 1035.0106945037842,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["a938b787.7c82b8", "2becb5c8.f5838a", "fec72c37.99e8b"]
+       ]
+}, {
+       "id": "a938b787.7c82b8",
+       "type": "for",
+       "name": "for cidx..tmp.network.network-data.network-topology.network-parameters.network-parameter[]",
+       "xml": "<for index='cidx' start='0' end='`$tmp.network.network-data.network-topology.network-parameters.network-parameter_length`' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 991.0104217529297,
+       "y": 1121.0105504989624,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["a608965c.57ec78"]
+       ]
+}, {
+       "id": "21b22ac0.8b6036",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'restapiUrl'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUrl'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1105.010482788086,
+       "y": 1191.010612487793,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["b3b8f491.b604a8"]
+       ]
+}, {
+       "id": "b3b8f491.b604a8",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1356.0105361938477,
+       "y": 1194.0106182098389,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["f19676be.7dd8e8"]
+       ]
+}, {
+       "id": "f19676be.7dd8e8",
+       "type": "set",
+       "name": "set tmp.thirdparty-sdnc-url",
+       "xml": "<set>\n<parameter name='tmp.restapiUrl' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiUrl-found' value='true' />",
+       "comments": "",
+       "x": 1557.0105667114258,
+       "y": 1192.0106191635132,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "5e9a3d4b.faee04",
+       "type": "execute",
+       "name": "execute RestApiCallNode Create wan-connection",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$tmp.templateFileName`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.restapiUrl`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`$tmp.restapiPassword`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"restApi-result\"/>",
+       "comments": "",
+       "outputs": 1,
+       "x": 879.2604522705078,
+       "y": 1923.0111656188965,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["6cfa08fc.d58438", "35b532e4.67c04e", "456722ac.35f45c"]
+       ]
+}, {
+       "id": "482305da.d57c9c",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'restapiUser'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUser'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1108.2604751586914,
+       "y": 1242.0105876922607,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["bfa7b41.e85df48"]
+       ]
+}, {
+       "id": "bfa7b41.e85df48",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1374.2605895996094,
+       "y": 1244.0106649398804,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["431e7704.816128"]
+       ]
+}, {
+       "id": "431e7704.816128",
+       "type": "set",
+       "name": "set tmp.restapiUser",
+       "xml": "<set>\n<parameter name='tmp.restapiUser' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiUser-found' value='true' />",
+       "comments": "",
+       "x": 1575.2606201171875,
+       "y": 1242.0106658935547,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "d87dc5c6.9f2d38",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'restapiPassword'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiPassword'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1116.2605438232422,
+       "y": 1296.010513305664,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["32c617c3.6666a8"]
+       ]
+}, {
+       "id": "32c617c3.6666a8",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1393.260555267334,
+       "y": 1294.0105457305908,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["7965a848.b113a8"]
+       ]
+}, {
+       "id": "7965a848.b113a8",
+       "type": "set",
+       "name": "set tmp.restapiPassword",
+       "xml": "<set>\n<parameter name='tmp.restapiPassword' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiPassword-found' value='true' />",
+       "comments": "",
+       "x": 1594.260585784912,
+       "y": 1292.0105466842651,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "8c362f3b.3ca69",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'templateFileName'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'templateFileName'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1125.2605743408203,
+       "y": 1351.0105781555176,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["c074d65e.325f18"]
+       ]
+}, {
+       "id": "c074d65e.325f18",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1413.2607078552246,
+       "y": 1354.0106735229492,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["c839c2e5.daaf"]
+       ]
+}, {
+       "id": "c839c2e5.daaf",
+       "type": "set",
+       "name": "set tmp.templateFileName",
+       "xml": "<set>\n<parameter name='tmp.templateFileName' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.templateFileName-found' value='true' />",
+       "comments": "",
+       "x": 1614.2607383728027,
+       "y": 1352.0106744766235,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "2becb5c8.f5838a",
+       "type": "set",
+       "name": "set paras flags",
+       "xml": "<set>\n<parameter name='tmp.restapiUrl-found' value='false' />\n<parameter name='tmp.restapiUser-found' value='false' />\n<parameter name='tmp.restapiPassword-found' value='false' />\n<parameter name='tmp.templateFileName-found' value='false' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='false' />",
+       "comments": "",
+       "x": 778.0105895996094,
+       "y": 1036.0105476379395,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "fec72c37.99e8b",
+       "type": "switchNode",
+       "name": "switch thirdPartyAdaptorRpc-found == 'true'",
+       "xml": "<switch test=\"`$tmp.thirdPartyAdaptorRpc-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 820.0104217529297,
+       "y": 1531.0105934143066,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["761c7f6a.1e156", "fc5cb76b.242648"]
+       ]
+}, {
+       "id": "a608965c.57ec78",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 762.0104217529297,
+       "y": 1302.0104637145996,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["21b22ac0.8b6036", "482305da.d57c9c", "d87dc5c6.9f2d38", "8c362f3b.3ca69", "2c7884dd.9d5eac"]
+       ]
+}, {
+       "id": "761c7f6a.1e156",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1082.010440826416,
+       "y": 1493.0105304718018,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["abb14bbc.08d3c8"]
+       ]
+}, {
+       "id": "fc5cb76b.242648",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1083.0103912353516,
+       "y": 1559.010495185852,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["7e672194.b5093"]
+       ]
+}, {
+       "id": "abb14bbc.08d3c8",
+       "type": "call",
+       "name": "call thirdPartyAdaptorRpc",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$tmp.thirdPartyAdaptorRpc`' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1302.010482788086,
+       "y": 1494.0105895996094,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["97bbf68a.23df28", "54cba094.60db8", "40b8aaf.3584554"]
+       ]
+}, {
+       "id": "7e672194.b5093",
+       "type": "switchNode",
+       "name": "switch restapiUrl-found == 'true'",
+       "xml": "<switch test=\"`$tmp.restapiUrl-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 844.461311340332,
+       "y": 1643.0172395706177,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["8b58f6f.b1e3208", "94431bfa.4e9a48"]
+       ]
+}, {
+       "id": "8b58f6f.b1e3208",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1095.461296081543,
+       "y": 1641.017035484314,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["fed700d7.65be7"]
+       ]
+}, {
+       "id": "fed700d7.65be7",
+       "type": "switchNode",
+       "name": "switch restapiUser-found == 'true'",
+       "xml": "<switch test=\"`$tmp.restapiUser-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 822.4614105224609,
+       "y": 1710.2393379211426,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["9051a6d0.545648", "52bc5ad7.e75954"]
+       ]
+}, {
+       "id": "9051a6d0.545648",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1089.4613037109375,
+       "y": 1711.2390508651733,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["558122b6.d2e6dc"]
+       ]
+}, {
+       "id": "558122b6.d2e6dc",
+       "type": "switchNode",
+       "name": "switch restapiPassword-found == 'true'",
+       "xml": "<switch test=\"`$tmp.restapiPassword-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 837.4613037109375,
+       "y": 1780.239260673523,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["107aae8d.403771", "3e643f4d.27a45"]
+       ]
+}, {
+       "id": "107aae8d.403771",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1097.4613037109375,
+       "y": 1780.2390508651733,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["3e959559.67274a"]
+       ]
+}, {
+       "id": "2c7884dd.9d5eac",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'thirdPartyAdaptorRpc'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'thirdPartyAdaptorRpc'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1125.0168762207031,
+       "y": 1405.0168838500977,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["14544bfa.4af374"]
+       ]
+}, {
+       "id": "14544bfa.4af374",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1413.0170097351074,
+       "y": 1408.0169792175293,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["2d59e0f.1af282"]
+       ]
+}, {
+       "id": "2d59e0f.1af282",
+       "type": "set",
+       "name": "set tmp.thirdPartyAdaptorRpc",
+       "xml": "<set>\n<parameter name='tmp.thirdPartyAdaptorRpc' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='true' />",
+       "comments": "",
+       "x": 1614.0170402526855,
+       "y": 1406.0169801712036,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "3e959559.67274a",
+       "type": "switchNode",
+       "name": "switch templateFileName-found == 'true'",
+       "xml": "<switch test=\"`$tmp.templateFileName-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 835.0168762207031,
+       "y": 1840.3502979278564,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["5a8246c3.86d3d8", "e9a7f173.e33ea"]
+       ]
+}, {
+       "id": "5a8246c3.86d3d8",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1095.0168762207031,
+       "y": 1840.3500881195068,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["5e9a3d4b.faee04"]
+       ]
+}, {
+       "id": "40b8aaf.3584554",
+       "type": "not-found",
+       "name": "not-found",
+       "xml": "<outcome value='not-found'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1568.0168762207031,
+       "y": 1533.3502578735352,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["10f2c69f.8e3de9"]
+       ]
+}, {
+       "id": "54cba094.60db8",
+       "type": "failure",
+       "name": "failure",
+       "xml": "<outcome value='failure'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1559.0169258117676,
+       "y": 1501.8502836227417,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["10f2c69f.8e3de9"]
+       ]
+}, {
+       "id": "97bbf68a.23df28",
+       "type": "success",
+       "name": "success",
+       "xml": "<outcome value='success'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1562.7669639587402,
+       "y": 1472.207388497889,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["9b5e3e39.e0053"]
+       ]
+}, {
+       "id": "10f2c69f.8e3de9",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return 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 calling ' + $tmp.thirdPartyAdaptorRpc`\" />\n",
+       "comments": "",
+       "x": 1725.766990661621,
+       "y": 1518.6003561019897,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "9b5e3e39.e0053",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 1704.4229316711426,
+       "y": 1468.3995576873422,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "456722ac.35f45c",
+       "type": "not-found",
+       "name": "not-found",
+       "xml": "<outcome value='not-found'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1209.0168762207031,
+       "y": 1958.3502578735352,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["504edb98.e54e24"]
+       ]
+}, {
+       "id": "35b532e4.67c04e",
+       "type": "failure",
+       "name": "failure",
+       "xml": "<outcome value='failure'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1200.0169258117676,
+       "y": 1926.8502836227417,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["504edb98.e54e24"]
+       ]
+}, {
+       "id": "6cfa08fc.d58438",
+       "type": "success",
+       "name": "success",
+       "xml": "<outcome value='success'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1203.7669639587402,
+       "y": 1897.207388497889,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["e5f43bf1.ad3d38"]
+       ]
+}, {
+       "id": "504edb98.e54e24",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return 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 calling ' + $tmp.restapiUrl`\" />\n",
+       "comments": "",
+       "x": 1366.766990661621,
+       "y": 1943.6003561019897,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "e5f43bf1.ad3d38",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 1345.4229316711426,
+       "y": 1893.3995576873422,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "94431bfa.4e9a48",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1246.6835021972656,
+       "y": 1608.4613418579102,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["79546287.78b3ac"]
+       ]
+}, {
+       "id": "79546287.78b3ac",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiUrl not found\" />\n    \n",
+       "comments": "",
+       "x": 1417.6835021972656,
+       "y": 1616.461311340332,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "52bc5ad7.e75954",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1251.6835021972656,
+       "y": 1687.4613418579102,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["e7175614.0bbb18"]
+       ]
+}, {
+       "id": "e7175614.0bbb18",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiUser not found\" />\n    \n",
+       "comments": "",
+       "x": 1422.6835021972656,
+       "y": 1695.461311340332,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "3e643f4d.27a45",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1242.6835021972656,
+       "y": 1758.4613418579102,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["eab97fcc.763a6"]
+       ]
+}, {
+       "id": "eab97fcc.763a6",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiPassword not found\" />\n    \n",
+       "comments": "",
+       "x": 1413.6835021972656,
+       "y": 1766.461311340332,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}, {
+       "id": "e9a7f173.e33ea",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1241.6835021972656,
+       "y": 1819.4613418579102,
+       "z": "e09ddcb4.62be2",
+       "wires": [
+               ["4679556f.41babc"]
+       ]
+}, {
+       "id": "4679556f.41babc",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller templateFileName not found\" />\n    \n",
+       "comments": "",
+       "x": 1412.6835021972656,
+       "y": 1827.461311340332,
+       "z": "e09ddcb4.62be2",
+       "wires": []
+}]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-create.json
new file mode 100644 (file)
index 0000000..5660246
--- /dev/null
@@ -0,0 +1,360 @@
+[{
+       "id": "6ac67ae1.a0aa44",
+       "type": "dgstart",
+       "name": "DGSTART",
+       "outputs": 1,
+       "x": 175.00390625,
+       "y": 106.00390625,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["a7166f73.c3b7d"]
+       ]
+}, {
+       "id": "a7166f73.c3b7d",
+       "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": 387.00391006469727,
+       "y": 178.0039234161377,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["28d122a6.3dff6e"]
+       ]
+}, {
+       "id": "28d122a6.3dff6e",
+       "type": "method",
+       "name": "wan-connection-topology-operation-create",
+       "xml": "<method rpc='wan-connection-topology-operation-create' mode='sync'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 375.0040283203125,
+       "y": 266.00390625,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["5e728e05.d58"]
+       ]
+}, {
+       "id": "9cfd5628.0461f8",
+       "type": "execute",
+       "name": "contains specification",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"specification\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 571.0351867675781,
+       "y": 443.03515338897705,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["880d63dc.b5a38", "f32a417.139a7c"]
+       ]
+}, {
+       "id": "fecacce0.e773",
+       "type": "execute",
+       "name": "contains FC",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"FC\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 542.0352630615234,
+       "y": 541.0352182388306,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["e31d6f4d.a6b8a", "3a9f16f2.1de22a"]
+       ]
+}, {
+       "id": "328d5a5f.8b3686",
+       "type": "execute",
+       "name": "contains FD",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"FD\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 540.0351867675781,
+       "y": 619.0352191925049,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["95036d7b.e76b7", "a957c80c.629788"]
+       ]
+}, {
+       "id": "8ced5ada.6dacc8",
+       "type": "execute",
+       "name": "contains Link",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"Link\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 545.0352325439453,
+       "y": 699.0353374481201,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["3306f585.d6ad4a", "f7a1c197.52e9b"]
+       ]
+}, {
+       "id": "880d63dc.b5a38",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 807.0352210998535,
+       "y": 441.03514528274536,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["4a720633.6d38d8"]
+       ]
+}, {
+       "id": "f32a417.139a7c",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 336.03525161743164,
+       "y": 541.0352182388306,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["fecacce0.e773"]
+       ]
+}, {
+       "id": "e31d6f4d.a6b8a",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 723.035270690918,
+       "y": 543.0352516174316,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["e96c15e0.5108b8"]
+       ]
+}, {
+       "id": "95036d7b.e76b7",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 735.035270690918,
+       "y": 621.0352516174316,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["e96c15e0.5108b8"]
+       ]
+}, {
+       "id": "3a9f16f2.1de22a",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 331.03519439697266,
+       "y": 622.0351905822754,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["328d5a5f.8b3686"]
+       ]
+}, {
+       "id": "a957c80c.629788",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 336.03526306152344,
+       "y": 705.0353965759277,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["8ced5ada.6dacc8"]
+       ]
+}, {
+       "id": "3306f585.d6ad4a",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 736.035343170166,
+       "y": 698.0353984832764,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["ff5b5810.5ac2a8"]
+       ]
+}, {
+       "id": "914afff2.c348e",
+       "type": "execute",
+       "name": "execute Properties",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 566.0039978027344,
+       "y": 386.0039253234863,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "5e728e05.d58",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 281.00392150878906,
+       "y": 366.00390243530273,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["914afff2.c348e", "9cfd5628.0461f8", "d08cdbfc.d46288", "8af933b4.c5208"]
+       ]
+}, {
+       "id": "d08cdbfc.d46288",
+       "type": "switchNode",
+       "name": "switch network-id",
+       "xml": "<switch test='`$network-topology-operation-input.network-information.network-id`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 566.0039291381836,
+       "y": 324.00391578674316,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["13cbf19b.fc4f5e", "163e4527.d3d54b"]
+       ]
+}, {
+       "id": "13cbf19b.fc4f5e",
+       "type": "outcome",
+       "name": "NULL",
+       "xml": "<outcome value=''>",
+       "comments": "",
+       "outputs": 1,
+       "x": 815.0040054321289,
+       "y": 263.00391578674316,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["600a4007.612e"]
+       ]
+}, {
+       "id": "600a4007.612e",
+       "type": "execute",
+       "name": "generate tmp.ar.allotted-resource-id",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"network-topology-operation-input.network-information.network-id\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1030.0039825439453,
+       "y": 264.00392150878906,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["224d0a6c.fd47b6"]
+       ]
+}, {
+       "id": "224d0a6c.fd47b6",
+       "type": "failure",
+       "name": "failure",
+       "xml": "<outcome value='failure'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1248.0040245056152,
+       "y": 264.00388526916504,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["c61d540b.7cf0a8"]
+       ]
+}, {
+       "id": "c61d540b.7cf0a8",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
+       "comments": "",
+       "x": 1414.003978729248,
+       "y": 264.0038995742798,
+       "z": "7d848bad.6cea14",
+       "wires": []
+}, {
+       "id": "163e4527.d3d54b",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 812.5039024353027,
+       "y": 311.00391006469727,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "4a720633.6d38d8",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:wan-connection-save-specification",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='wan-connection-save-specification' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1129.0039367675781,
+       "y": 441.00395679473877,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "e96c15e0.5108b8",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:wan-connection-find-specifications",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='wan-connection-find-specifications' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1125.5040283203125,
+       "y": 586.0039100646973,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "8af933b4.c5208",
+       "type": "returnSuccess",
+       "name": "return success",
+       "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+       "comments": "",
+       "x": 341.00391387939453,
+       "y": 827.0039396286011,
+       "z": "7d848bad.6cea14",
+       "wires": []
+}, {
+       "id": "ff5b5810.5ac2a8",
+       "type": "call",
+       "name": "call GENERIC-RESOURCE-API:wan-connection-route-calculation",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='wan-connection-route-calculation' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1105.003921508789,
+       "y": 701.0039482116699,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "f7a1c197.52e9b",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 741.00390625,
+       "y": 765.00390625,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               ["7ef91d7a.861074"]
+       ]
+}, {
+       "id": "7ef91d7a.861074",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 909.00390625,
+       "y": 771.0039482116699,
+       "z": "7d848bad.6cea14",
+       "wires": [
+               []
+       ]
+}]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-deactivate.json
new file mode 100644 (file)
index 0000000..3b0b0fb
--- /dev/null
@@ -0,0 +1,890 @@
+[{
+       "id": "dc5daae1.4b2b68",
+       "type": "dgstart",
+       "name": "DGSTART",
+       "outputs": 1,
+       "x": 136.01040649414062,
+       "y": 88.01041412353516,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["f86fe308.85c13"]
+       ]
+}, {
+       "id": "f86fe308.85c13",
+       "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": 348.0104103088379,
+       "y": 160.01043128967285,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["c94e70a1.1a9f8"]
+       ]
+}, {
+       "id": "c94e70a1.1a9f8",
+       "type": "method",
+       "name": "wan-connection-topology-operation-deactivate",
+       "xml": "<method rpc='wan-connection-topology-operation-deactivate' mode='sync'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 336.0105285644531,
+       "y": 248.01041412353516,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["2779c46a.0d3bfc"]
+       ]
+}, {
+       "id": "57a97cf3.f011a4",
+       "type": "execute",
+       "name": "execute Properties",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 723.0106887817383,
+       "y": 332.0104856491089,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "ea250cc1.d5382",
+       "type": "returnSuccess",
+       "name": "return success",
+       "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+       "comments": "",
+       "x": 323.0104217529297,
+       "y": 1197.010627746582,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "2779c46a.0d3bfc",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 248.51060485839844,
+       "y": 689.0105495452881,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["ed99019f.1977", "7dda64d7.a5a00c", "f7ff6068.4e95b", "3266b2a4.654dfe", "5f4320a1.8de1c", "57a97cf3.f011a4", "ea250cc1.d5382"]
+       ]
+}, {
+       "id": "ed99019f.1977",
+       "type": "execute",
+       "name": "generate services url",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.network-provided-resource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.services-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$network-topology-operation-input.service-information.service-id`\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 709.0106735229492,
+       "y": 403.0105857849121,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "7dda64d7.a5a00c",
+       "type": "execute",
+       "name": "execute RestApiCallNode - get-resource parent service data",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.services-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 835.0106735229492,
+       "y": 480.0105857849121,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["1a420eef.b4ab81", "758b4d6.827c5b4"]
+       ]
+}, {
+       "id": "1a420eef.b4ab81",
+       "type": "success",
+       "name": "success",
+       "xml": "<outcome value='success'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1182.010856628418,
+       "y": 431.0105857849121,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["f55029d2.253db8"]
+       ]
+}, {
+       "id": "f55029d2.253db8",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 1349.0109329223633,
+       "y": 465.0106463432312,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "758b4d6.827c5b4",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1187.8626289367676,
+       "y": 514.0767450332642,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["1418c003.c3bc4"]
+       ]
+}, {
+       "id": "1418c003.c3bc4",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Parent service data not available\" />\n    \n",
+       "comments": "",
+       "x": 1358.2607803344727,
+       "y": 530.0105752944946,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "f7ff6068.4e95b",
+       "type": "for",
+       "name": "for pidx..mdsal-psd.service-data.networks.network[]",
+       "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.networks.network_length`' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 895.5107116699219,
+       "y": 631.0105295181274,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["492dcfc8.84723"]
+       ]
+}, {
+       "id": "492dcfc8.84723",
+       "type": "switchNode",
+       "name": "switch model-name",
+       "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 843.5106887817383,
+       "y": 708.0105800628662,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["27343179.181b8e"]
+       ]
+}, {
+       "id": "27343179.181b8e",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1025.7607917785645,
+       "y": 710.0106735229492,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["63f3970f.a34118"]
+       ]
+}, {
+       "id": "63f3970f.a34118",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 1196.5214195251465,
+       "y": 714.867790222168,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["a56f8acd.7498b8"]
+       ]
+}, {
+       "id": "a56f8acd.7498b8",
+       "type": "set",
+       "name": "set tmp.pidx and tmp.network-input-parameters",
+       "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[$pidx].`' />\n<parameter name='tmp.network-input-parameters' value='`$mdsal-psd.service-data.networks.network[$pidx].network-data.network-request-input.network-input-parameters`' />\n<parameter name='tmp.found-network-input' value='true' />",
+       "comments": "",
+       "x": 1143.3788032531738,
+       "y": 788.4393863677979,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "3266b2a4.654dfe",
+       "type": "set",
+       "name": "set tmp.found-network-input",
+       "xml": "<set>\n<parameter name='tmp.found-network-input' value='false' />",
+       "comments": "",
+       "x": 777.5106582641602,
+       "y": 560.0105857849121,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "5f4320a1.8de1c",
+       "type": "switchNode",
+       "name": "switch found-network-input",
+       "xml": "<switch test=\"`$found-network-input`\">\n\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 608.5107040405273,
+       "y": 899.0107097625732,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["8d8a4cba.9e184", "b9d9fb0b.7db9b8"]
+       ]
+}, {
+       "id": "8d8a4cba.9e184",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 840.5107955932617,
+       "y": 943.010908126831,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["d6f87580.2dc1d8"]
+       ]
+}, {
+       "id": "b9d9fb0b.7db9b8",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 841.2607345581055,
+       "y": 901.010799407959,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["cd109ebd.9e8f9"]
+       ]
+}, {
+       "id": "cd109ebd.9e8f9",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Network input parameters not found\" />\n    \n",
+       "comments": "",
+       "x": 1012.2607345581055,
+       "y": 909.0107688903809,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "d6f87580.2dc1d8",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 578.0105819702148,
+       "y": 1055.0106945037842,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["9089330c.7c429", "f7517eb4.eccef", "c4ea6652.9fa878"]
+       ]
+}, {
+       "id": "9089330c.7c429",
+       "type": "for",
+       "name": "for cidx..tmp.network.network-data.network-topology.network-parameters.network-parameter[]",
+       "xml": "<for index='cidx' start='0' end='`$tmp.network.network-data.network-topology.network-parameters.network-parameter_length`' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1027.0104217529297,
+       "y": 1141.0105504989624,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["91a2217e.0aa36"]
+       ]
+}, {
+       "id": "44bbe120.7255",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'restapiUrl-deactivate'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUrl-deactivate'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1141.010482788086,
+       "y": 1211.010612487793,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["ae0bda70.be78d8"]
+       ]
+}, {
+       "id": "ae0bda70.be78d8",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1414.0106048583984,
+       "y": 1210.010570526123,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["866f7c3c.d7349"]
+       ]
+}, {
+       "id": "866f7c3c.d7349",
+       "type": "set",
+       "name": "set tmp.thirdparty-sdnc-url",
+       "xml": "<set>\n<parameter name='tmp.restapiUrl' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiUrl-found' value='true' />",
+       "comments": "",
+       "x": 1593.0105667114258,
+       "y": 1212.0106191635132,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "2a83ab2c.a5f774",
+       "type": "execute",
+       "name": "execute RestApiCallNode delete wan-connection",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.restapiUrl + $tmp.actualId`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`$tmp.restapiPassword`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>",
+       "comments": "",
+       "outputs": 1,
+       "x": 915.2604522705078,
+       "y": 1943.0111656188965,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["5eb1697e.075858", "dd1f30f9.8bae3", "bd716a80.bf8068"]
+       ]
+}, {
+       "id": "9154a660.674bb8",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'restapiUser'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUser'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1144.2604751586914,
+       "y": 1262.0105876922607,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["dcf17939.4e7148"]
+       ]
+}, {
+       "id": "dcf17939.4e7148",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1410.2605895996094,
+       "y": 1264.0106649398804,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["de64ea4d.ab18b8"]
+       ]
+}, {
+       "id": "de64ea4d.ab18b8",
+       "type": "set",
+       "name": "set tmp.restapiUser",
+       "xml": "<set>\n<parameter name='tmp.restapiUser' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiUser-found' value='true' />",
+       "comments": "",
+       "x": 1611.2606201171875,
+       "y": 1262.0106658935547,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "6d3fee98.40477",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'restapiPassword'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiPassword'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1152.2605438232422,
+       "y": 1316.010513305664,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["e3d0d091.7555a"]
+       ]
+}, {
+       "id": "e3d0d091.7555a",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1429.260555267334,
+       "y": 1314.0105457305908,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["4b4e91b6.1741a"]
+       ]
+}, {
+       "id": "4b4e91b6.1741a",
+       "type": "set",
+       "name": "set tmp.restapiPassword",
+       "xml": "<set>\n<parameter name='tmp.restapiPassword' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiPassword-found' value='true' />",
+       "comments": "",
+       "x": 1630.260585784912,
+       "y": 1312.0105466842651,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "f7517eb4.eccef",
+       "type": "set",
+       "name": "set paras flags",
+       "xml": "<set>\n<parameter name='tmp.restapiUrl-found' value='false' />\n<parameter name='tmp.restapiUser-found' value='false' />\n<parameter name='tmp.restapiPassword-found' value='false' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='false' />\n<parameter name='tmp.actualId-found' value='false' />",
+       "comments": "",
+       "x": 814.0105895996094,
+       "y": 1056.0105476379395,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "c4ea6652.9fa878",
+       "type": "switchNode",
+       "name": "switch thirdPartyAdaptorRpc-found == 'true'",
+       "xml": "<switch test=\"`$tmp.thirdPartyAdaptorRpc-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 856.0104217529297,
+       "y": 1551.0105934143066,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["a1470852.fbe9a8", "44560421.b5783c"]
+       ]
+}, {
+       "id": "91a2217e.0aa36",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 798.0104217529297,
+       "y": 1322.0104637145996,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["44bbe120.7255", "9154a660.674bb8", "6d3fee98.40477", "fe9a117b.1f532", "9e6c08bf.a2fe88"]
+       ]
+}, {
+       "id": "a1470852.fbe9a8",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1118.010440826416,
+       "y": 1513.0105304718018,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["87499e3e.8efd7"]
+       ]
+}, {
+       "id": "44560421.b5783c",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1119.0103912353516,
+       "y": 1579.010495185852,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["1d000250.ddb41e"]
+       ]
+}, {
+       "id": "87499e3e.8efd7",
+       "type": "call",
+       "name": "call thirdPartyAdaptorRpc",
+       "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$tmp.thirdPartyAdaptorRpc`' mode='sync' >\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1338.010482788086,
+       "y": 1514.0105895996094,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["be1c43cd.6c6d5", "36f2fa8b.9ff576", "9830e901.9d2aa8"]
+       ]
+}, {
+       "id": "1d000250.ddb41e",
+       "type": "switchNode",
+       "name": "switch restapiUrl-found == 'true'",
+       "xml": "<switch test=\"`$tmp.restapiUrl-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 880.461311340332,
+       "y": 1663.0172395706177,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["e6d9ab3.015a858", "20fb14a8.faab2c"]
+       ]
+}, {
+       "id": "e6d9ab3.015a858",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1131.461296081543,
+       "y": 1661.017035484314,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["481b171e.ab37e8"]
+       ]
+}, {
+       "id": "481b171e.ab37e8",
+       "type": "switchNode",
+       "name": "switch restapiUser-found == 'true'",
+       "xml": "<switch test=\"`$tmp.restapiUser-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 858.4614105224609,
+       "y": 1730.2393379211426,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["3742155.0c254ea", "6f396aea.673404"]
+       ]
+}, {
+       "id": "3742155.0c254ea",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1125.4613037109375,
+       "y": 1731.2390508651733,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["2df75511.30eb8a"]
+       ]
+}, {
+       "id": "2df75511.30eb8a",
+       "type": "switchNode",
+       "name": "switch restapiPassword-found == 'true'",
+       "xml": "<switch test=\"`$tmp.restapiPassword-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 873.4613037109375,
+       "y": 1800.239260673523,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["6e3c4b77.f76d04", "79b92f2b.ec99"]
+       ]
+}, {
+       "id": "6e3c4b77.f76d04",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1133.4613037109375,
+       "y": 1800.2390508651733,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["e4613219.7da05"]
+       ]
+}, {
+       "id": "fe9a117b.1f532",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'thirdPartyAdaptorRpc-deactivate'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'thirdPartyAdaptorRpc-deactivate'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1170.0169410705566,
+       "y": 1409.0168914794922,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["3b34faa8.496266"]
+       ]
+}, {
+       "id": "3b34faa8.496266",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1481.0171585083008,
+       "y": 1413.0167961120605,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["89a96064.90193"]
+       ]
+}, {
+       "id": "89a96064.90193",
+       "type": "set",
+       "name": "set tmp.thirdPartyAdaptorRpc",
+       "xml": "<set>\n<parameter name='tmp.thirdPartyAdaptorRpc' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='true' />",
+       "comments": "",
+       "x": 1676.0171127319336,
+       "y": 1407.0169868469238,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "9830e901.9d2aa8",
+       "type": "not-found",
+       "name": "not-found",
+       "xml": "<outcome value='not-found'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1604.0168762207031,
+       "y": 1553.3502578735352,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["e00f6454.dddf68"]
+       ]
+}, {
+       "id": "36f2fa8b.9ff576",
+       "type": "failure",
+       "name": "failure",
+       "xml": "<outcome value='failure'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1595.0169258117676,
+       "y": 1521.8502836227417,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["e00f6454.dddf68"]
+       ]
+}, {
+       "id": "be1c43cd.6c6d5",
+       "type": "success",
+       "name": "success",
+       "xml": "<outcome value='success'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1598.7669639587402,
+       "y": 1492.207388497889,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["6355ce7d.fb42b"]
+       ]
+}, {
+       "id": "e00f6454.dddf68",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return 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 calling ' + $tmp.thirdPartyAdaptorRpc`\" />\n",
+       "comments": "",
+       "x": 1761.766990661621,
+       "y": 1538.6003561019897,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "6355ce7d.fb42b",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 1740.4229316711426,
+       "y": 1488.3995576873422,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "bd716a80.bf8068",
+       "type": "not-found",
+       "name": "not-found",
+       "xml": "<outcome value='not-found'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1245.0168762207031,
+       "y": 1978.3502578735352,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["593817ce.8c6458"]
+       ]
+}, {
+       "id": "dd1f30f9.8bae3",
+       "type": "failure",
+       "name": "failure",
+       "xml": "<outcome value='failure'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1236.0169258117676,
+       "y": 1946.8502836227417,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["593817ce.8c6458"]
+       ]
+}, {
+       "id": "5eb1697e.075858",
+       "type": "success",
+       "name": "success",
+       "xml": "<outcome value='success'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1239.7669639587402,
+       "y": 1917.207388497889,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["33a4cba3.45a344"]
+       ]
+}, {
+       "id": "593817ce.8c6458",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return 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 calling ' + $tmp.restapiUrl`\" />\n",
+       "comments": "",
+       "x": 1402.766990661621,
+       "y": 1963.6003561019897,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "33a4cba3.45a344",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 1381.4229316711426,
+       "y": 1913.3995576873422,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "20fb14a8.faab2c",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1282.6835021972656,
+       "y": 1628.4613418579102,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["f5cee36d.88941"]
+       ]
+}, {
+       "id": "f5cee36d.88941",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiUrl not found\" />\n    \n",
+       "comments": "",
+       "x": 1453.6835021972656,
+       "y": 1636.461311340332,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "6f396aea.673404",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1287.6835021972656,
+       "y": 1707.4613418579102,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["82e86a2a.10b8e8"]
+       ]
+}, {
+       "id": "82e86a2a.10b8e8",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiUser not found\" />\n    \n",
+       "comments": "",
+       "x": 1458.6835021972656,
+       "y": 1715.461311340332,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "79b92f2b.ec99",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1278.6835021972656,
+       "y": 1778.4613418579102,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["2dcb87b4.9d09e8"]
+       ]
+}, {
+       "id": "2dcb87b4.9d09e8",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiPassword not found\" />\n    \n",
+       "comments": "",
+       "x": 1449.6835021972656,
+       "y": 1786.461311340332,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "9e6c08bf.a2fe88",
+       "type": "switchNode",
+       "name": "switch network-parameter-name == 'actualId'",
+       "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'actualId'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1156.0103759765625,
+       "y": 1364.0103759765625,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["11fcb359.0b74ed"]
+       ]
+}, {
+       "id": "11fcb359.0b74ed",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1433.0103874206543,
+       "y": 1362.0104084014893,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["f5a304ff.f9aea8"]
+       ]
+}, {
+       "id": "f5a304ff.f9aea8",
+       "type": "set",
+       "name": "set tmp.actualId",
+       "xml": "<set>\n<parameter name='tmp.actualId' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.actualId-found' value='true' />",
+       "comments": "",
+       "x": 1634.0104179382324,
+       "y": 1360.0104093551636,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}, {
+       "id": "e4613219.7da05",
+       "type": "switchNode",
+       "name": "switch actualId-found == 'true'",
+       "xml": "<switch test=\"`$tmp.actualId-found == 'true'`\">\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 887.2326049804688,
+       "y": 1868.454833984375,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["572932d1.b17b3c", "c0db58a1.69dc58"]
+       ]
+}, {
+       "id": "572932d1.b17b3c",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1147.2326049804688,
+       "y": 1868.4546241760254,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["2a83ab2c.a5f774"]
+       ]
+}, {
+       "id": "c0db58a1.69dc58",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1292.4548034667969,
+       "y": 1846.6769151687622,
+       "z": "5f2b1b80.205544",
+       "wires": [
+               ["cf40162e.095f98"]
+       ]
+}, {
+       "id": "cf40162e.095f98",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Wan Connection actualId not found\" />\n    \n",
+       "comments": "",
+       "x": 1463.4548034667969,
+       "y": 1854.676884651184,
+       "z": "5f2b1b80.205544",
+       "wires": []
+}]
\ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.json
new file mode 100644 (file)
index 0000000..4430f5e
--- /dev/null
@@ -0,0 +1,286 @@
+[{
+       "id": "c81f4d78.b1e6c",
+       "type": "dgstart",
+       "name": "DGSTART",
+       "outputs": 1,
+       "x": 100.01040649414062,
+       "y": 75.99999976158142,
+       "z": "b1682cba.152",
+       "wires": [
+               ["64b261af.cf184"]
+       ]
+}, {
+       "id": "64b261af.cf184",
+       "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": 312.0104103088379,
+       "y": 148.00001692771912,
+       "z": "b1682cba.152",
+       "wires": [
+               ["c6b54419.3039a8"]
+       ]
+}, {
+       "id": "c6b54419.3039a8",
+       "type": "method",
+       "name": "wan-connection-topology-operation-delete",
+       "xml": "<method rpc='wan-connection-topology-operation-delete' mode='sync'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 300.0105285644531,
+       "y": 235.99999976158142,
+       "z": "b1682cba.152",
+       "wires": [
+               ["f3a69c11.4cac9"]
+       ]
+}, {
+       "id": "140a99be.e1cda6",
+       "type": "execute",
+       "name": "contains FC",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"FC\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 467.04176330566406,
+       "y": 511.031311750412,
+       "z": "b1682cba.152",
+       "wires": [
+               ["df506b8a.806268", "5d821249.e9d6cc"]
+       ]
+}, {
+       "id": "54dc8604.f2ccb8",
+       "type": "execute",
+       "name": "contains FD",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"FD\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 465.04168701171875,
+       "y": 589.0313127040863,
+       "z": "b1682cba.152",
+       "wires": [
+               ["1ab6bc40.bffaf4", "7db0c17f.b059"]
+       ]
+}, {
+       "id": "df506b8a.806268",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 648.0417709350586,
+       "y": 513.0313451290131,
+       "z": "b1682cba.152",
+       "wires": [
+               ["44c3101c.7b387"]
+       ]
+}, {
+       "id": "1ab6bc40.bffaf4",
+       "type": "outcomeTrue",
+       "name": "true",
+       "xml": "<outcome value='true'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 660.0417709350586,
+       "y": 591.0313451290131,
+       "z": "b1682cba.152",
+       "wires": [
+               ["44c3101c.7b387"]
+       ]
+}, {
+       "id": "5d821249.e9d6cc",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 256.0416946411133,
+       "y": 592.0312840938568,
+       "z": "b1682cba.152",
+       "wires": [
+               ["54dc8604.f2ccb8"]
+       ]
+}, {
+       "id": "7f76e93c.a850f8",
+       "type": "execute",
+       "name": "execute Properties",
+       "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 491.010498046875,
+       "y": 356.00001883506775,
+       "z": "b1682cba.152",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "f3a69c11.4cac9",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 206.0104217529297,
+       "y": 335.99999594688416,
+       "z": "b1682cba.152",
+       "wires": [
+               ["7f76e93c.a850f8", "99bcb143.6aec8", "30b4304f.e646c", "140a99be.e1cda6"]
+       ]
+}, {
+       "id": "99bcb143.6aec8",
+       "type": "switchNode",
+       "name": "switch network-id",
+       "xml": "<switch test='`$network-topology-operation-input.network-information.network-id`'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 491.0104293823242,
+       "y": 294.0000092983246,
+       "z": "b1682cba.152",
+       "wires": [
+               ["57d76327.9c63cc", "d50b31e0.e314e"]
+       ]
+}, {
+       "id": "57d76327.9c63cc",
+       "type": "outcome",
+       "name": "NULL",
+       "xml": "<outcome value=''>",
+       "comments": "",
+       "outputs": 1,
+       "x": 740.0105056762695,
+       "y": 233.00000929832458,
+       "z": "b1682cba.152",
+       "wires": [
+               ["54153e4c.ec78c"]
+       ]
+}, {
+       "id": "54153e4c.ec78c",
+       "type": "returnFailure",
+       "name": "return failure",
+       "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
+       "comments": "",
+       "x": 1010.0105209350586,
+       "y": 234.99999809265137,
+       "z": "b1682cba.152",
+       "wires": []
+}, {
+       "id": "d50b31e0.e314e",
+       "type": "other",
+       "name": "other",
+       "xml": "<outcome value='Other'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 737.5104026794434,
+       "y": 281.0000035762787,
+       "z": "b1682cba.152",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "30b4304f.e646c",
+       "type": "returnSuccess",
+       "name": "return success",
+       "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+       "comments": "",
+       "x": 192.01040649414062,
+       "y": 943.0000705718994,
+       "z": "b1682cba.152",
+       "wires": []
+}, {
+       "id": "65a3a6ee.c50208",
+       "type": "block",
+       "name": "block",
+       "xml": "<block>\n",
+       "atomic": "false",
+       "comments": "",
+       "outputs": 1,
+       "x": 258.01040267944336,
+       "y": 735.0001106262207,
+       "z": "b1682cba.152",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "7db0c17f.b059",
+       "type": "outcomeTrue",
+       "name": "false",
+       "xml": "<outcome value='false'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 261.04176330566406,
+       "y": 675.0314900875092,
+       "z": "b1682cba.152",
+       "wires": [
+               ["65a3a6ee.c50208"]
+       ]
+}, {
+       "id": "44c3101c.7b387",
+       "type": "block",
+       "name": "block : atomic",
+       "xml": "<block atomic=\"true\">",
+       "atomic": "true",
+       "outputs": 1,
+       "x": 843.010383605957,
+       "y": 542.1214942932129,
+       "z": "b1682cba.152",
+       "wires": [
+               ["81240f98.0bd24", "51b098fe.5ee238", "e14455de.b9dcd8", "5e6ceda3.d49424", "629880b9.6f91a"]
+       ]
+}, {
+       "id": "81240f98.0bd24",
+       "type": "delete",
+       "name": "delete wan connection in AAI",
+       "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='connectivity' \n        key='connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id'>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1139.0104446411133,
+       "y": 492.1214962005615,
+       "z": "b1682cba.152",
+       "wires": [
+               []
+       ]
+}, {
+       "id": "51b098fe.5ee238",
+       "type": "set",
+       "name": "set new network length",
+       "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n",
+       "comments": "",
+       "x": 1116.4549293518066,
+       "y": 556.0104026794434,
+       "z": "b1682cba.152",
+       "wires": []
+}, {
+       "id": "e14455de.b9dcd8",
+       "type": "set",
+       "name": "Remove networks from ServiceData",
+       "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.nidx].\" value=\"\"/>\n\n",
+       "comments": "",
+       "x": 1147.0791816711426,
+       "y": 607.9783487319946,
+       "z": "b1682cba.152",
+       "wires": []
+}, {
+       "id": "5e6ceda3.d49424",
+       "type": "set",
+       "name": "set networkId and network-object-path",
+       "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
+       "comments": "",
+       "x": 1157.8222579956055,
+       "y": 678.5394926071167,
+       "z": "b1682cba.152",
+       "wires": []
+}, {
+       "id": "629880b9.6f91a",
+       "type": "record",
+       "name": "record",
+       "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"wan-connection-topology-operation-delete\"/>\n<parameter name=\"field3\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name + ' delete'`\"/>\n",
+       "comments": "",
+       "outputs": 1,
+       "x": 1075.0103759765625,
+       "y": 423.34375,
+       "z": "b1682cba.152",
+       "wires": [
+               []
+       ]
+}]
\ No newline at end of file
index 6d06cce..94f4fe3 100755 (executable)
@@ -206,6 +206,10 @@ GENERIC-RESOURCE-API sdwan-vnf-topology-operation-wanport-create ${project.versi
 GENERIC-RESOURCE-API sdwan-vnf-topology-operation-wanport-deactivate ${project.version} sync
 GENERIC-RESOURCE-API sdwan-vnf-topology-operation-wanport-delete ${project.version} sync
 GENERIC-RESOURCE-API sdwan-wanport-vnf-topology-operation-underlay ${project.version} sync
+GENERIC-RESOURCE-API wan-connection-topology-operation-create ${project.version} sync
+GENERIC-RESOURCE-API wan-connection-topology-operation-activate ${project.version} sync
+GENERIC-RESOURCE-API wan-connection-topology-operation-deactivate ${project.version} sync
+GENERIC-RESOURCE-API wan-connection-topology-operation-delete ${project.version} sync
 
 
 
index 05328d2..f2e71fa 100644 (file)
-<service-logic
-    xmlns='http://www.onap.org/sdnc/svclogic'
-    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>
-    <method rpc='network-topology-operation' mode='sync'>
-        <block atomic="true">
-            <call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' ></call>
-            <switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>
-                <outcome value='assign'>
-                    <block atomic="true">
-                        <switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>
-                            <outcome value='Created'>
-                                <return status='failure'>
-                                    <parameter name='ack-final' value='Y'/>
-                                    <parameter name="error-code" value="500" />
-                                    <parameter name="error-message" value="`'Network is not in appropriate state for assign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" />
-                                </return>
-                            </outcome>
-                            <outcome value='PendingDelete'>
-                                <return status='failure'>
-                                    <parameter name='ack-final' value='Y'/>
-                                    <parameter name="error-code" value="500" />
-                                    <parameter name="error-message" value="`'Network is not in appropriate state for assign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" />
-                                </return>
-                            </outcome>
-                            <outcome value='PendingCreate'>
-                                <return status='failure'>
-                                    <parameter name='ack-final' value='Y'/>
-                                    <parameter name="error-code" value="500" />
-                                    <parameter name="error-message" value="`'Network is not in appropriate state for assign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" />
-                                </return>
+<?xml version="1.0" encoding="utf-8"?>
+
+<service-logic xmlns="http://www.onap.org/sdnc/svclogic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="GENERIC-RESOURCE-API" version="${project.version}">
+  <method rpc="network-topology-operation" mode="sync"> 
+    <block atomic="true">
+      <call module="GENERIC-RESOURCE-API" rpc="validate-network-input" mode="sync"></call>
+      <switch test="`$network-topology-operation-input.sdnc-request-header.svc-action`"> 
+        <outcome value="assign"> 
+          <block atomic="true">
+            <switch test="`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`"> 
+              <outcome value="Created"> 
+                <return status="failure"> 
+                  <parameter name="ack-final" value="Y"/>  
+                  <parameter name="error-code" value="500"/>  
+                  <parameter name="error-message" value="`'Network is not in appropriate state for assign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`"/>
+                </return>
+              </outcome>
+              <outcome value="PendingDelete"> 
+                <return status="failure"> 
+                  <parameter name="ack-final" value="Y"/>  
+                  <parameter name="error-code" value="500"/>  
+                  <parameter name="error-message" value="`'Network is not in appropriate state for assign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`"/>
+                </return>
+              </outcome>
+              <outcome value="PendingCreate"> 
+                <return status="failure"> 
+                  <parameter name="ack-final" value="Y"/>  
+                  <parameter name="error-code" value="500"/>  
+                  <parameter name="error-message" value="`'Network is not in appropriate state for assign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`"/>
+                </return>
+              </outcome>
+              <outcome value="Other"> 
+                <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-assign" mode="sync"></call>
+              </outcome>
+            </switch>
+          </block>
+        </outcome>
+        <outcome value="activate"> 
+          <switch test="`$network-topology-operation-input.request-information.request-action`"> 
+            <outcome value="ActivateSOTNConnectivityInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="sotn-network-topology-operation-activate" mode="sync"></call>
+            </outcome>
+            <outcome value="ActivateDCINetworkInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="dci-connects-network-topology-operation-activate" mode="sync"></call>
+            </outcome>
+            <outcome value="ActivateSDWANConnectivityInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="sdwan-network-topology-operation-activate" mode="sync"></call>
+            </outcome>
+            <outcome value="other">
+              <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+                <parameter name="source" value="`$network-topology-operation-input.service-information.onap-model-information.model-name`"/>  
+                <parameter name="target" value="wan-connection"/>  
+                <outcome value="true"> 
+                  <call module="GENERIC-RESOURCE-API" rpc="wan-connection-topology-operation-activate" mode="sync"></call>
+                </outcome>
+                <outcome value="false"> 
+                  <block atomic="true">
+                    <switch test="`$service-data.networks.network_length`"> 
+                      <outcome value=""> 
+                        <return status="failure"> 
+                          <parameter name="ack-final" value="Y"/>  
+                          <parameter name="error-code" value="500"/>  
+                          <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data"/> 
+                        </return>
+                      </outcome>
+                      <outcome value="Other"> 
+                        <block atomic="true">
+                          <for index="nidx" start="0" end="`$service-data.networks.network_length`"> 
+                            <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`"> 
+                              <outcome value="true"> 
+                                <set> 
+                                  <parameter name="tmp.nidx" value="`$nidx`"/>  
+                                  <parameter name="network-data." value="`$service-data.networks.network[$nidx].`"/> 
+                                </set>
+                              </outcome>
+                            </switch>
+                          </for>
+                          <switch test="`$tmp.nidx`"> 
+                            <outcome value=""> 
+                              <return status="failure"> 
+                                <parameter name="ack-final" value="Y"/>  
+                                <parameter name="error-code" value="500"/>  
+                                <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data"/> 
+                              </return>
                             </outcome>
-                            <outcome value='Other'>
-                                <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' ></call>
+                            <outcome value="Other"> 
+                              <set> 
+                                <parameter name="nidx" value="`$tmp.nidx`"/> 
+                              </set>
                             </outcome>
-                        </switch>
-                    </block>
-                </outcome>
-                <outcome value='activate'>
-                    <switch test='`$network-topology-operation-input.request-information.request-action`'>
-                        <outcome value='ActivateSOTNConnectivityInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-activate' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='ActivateDCINetworkInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-activate' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='ActivateSDWANConnectivityInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-activate' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='other'>
-                            <block atomic="true">
-                                <switch test='`$service-data.networks.network_length`'>
-                                    <outcome value=''>
-                                        <return status='failure'>
-                                            <parameter name='ack-final' value='Y'/>
-                                            <parameter name="error-code" value="500" />
-                                            <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
-                                        </return>
-                                    </outcome>
-                                    <outcome value='Other'>
-                                        <block atomic="true">
-                                            <for index='nidx' start='0' end='`$service-data.networks.network_length`' >
-                                                <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
-                                                    <outcome value='true'>
-                                                        <set>
-                                                            <parameter name='tmp.nidx' value='`$nidx`' />
-                                                            <parameter name='network-data.' value='`$service-data.networks.network[$nidx].`' />
-                                                        </set>
-                                                    </outcome>
-                                                </switch>
-                                            </for>
-                                            <switch test="`$tmp.nidx`">
-                                                <outcome value=''>
-                                                    <return status='failure'>
-                                                        <parameter name='ack-final' value='Y'/>
-                                                        <parameter name="error-code" value="500" />
-                                                        <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
-                                                    </return>
-                                                </outcome>
-                                                <outcome value='Other'>
-                                                    <set>
-                                                        <parameter name='nidx' value='`$tmp.nidx`' />
-                                                    </set>
-                                                </outcome>
-                                            </switch>
-                                        </block>
-                                    </outcome>
-                                </switch>
-                                <switch test='`$network-topology-operation-input.network-information.network-instance-group-id`'>
-                                    <outcome value=''>
-                                        <return status='success'>
-                                            <parameter name='' value='' />
-                                        </return>
-                                    </outcome>
-                                    <outcome value='Other'>
-                                        <block>
-                                            <switch test='`$service-data.network-instance-groups.network-instance-group_length`'>
-                                                <outcome value=''>
-                                                    <return status='failure'>
-                                                        <parameter name='ack-final' value='Y'/>
-                                                        <parameter name="error-code" value="500" />
-                                                        <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-instance-group-id not found in service-data" />
-                                                    </return>
-                                                </outcome>
-                                                <outcome value='Other'>
-                                                    <block atomic="true">
-                                                        <for index='ngidx' start='0' end='`$service-data.network-instance-groups.network-instance-_length`' >
-                                                            <switch test="`$service-data.network-instance-groups.network-instance-group[$nidx].network-instance-group-id == $network-topology-operation-input.network-information.network-instance-group-id`">
-                                                                <outcome value='true'>
-                                                                    <block atomic="true">
-                                                                        <set>
-                                                                            <parameter name='tmp.ngidx' value='`$ngidx`' />
-                                                                            <parameter name='ctx.network-instance-group-data.' value='`$service-data.network-instance-groups.network-instance-group[$ngidx].`' />
-                                                                        </set>
-                                                                    </block>
-                                                                </outcome>
-                                                            </switch>
-                                                        </for>
-                                                    </block>
-                                                </outcome>
-                                            </switch>
-                                        </block>
-                                    </outcome>
-                                </switch>
-                                <switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>
-                                    <outcome value='PendingCreate'>
-                                        <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' ></call>
-                                    </outcome>
-                                    <outcome value='Other'>
-                                        <return status='failure'>
-                                            <parameter name='ack-final' value='Y'/>
-                                            <parameter name="error-code" value="500" />
-                                            <parameter name="error-message" value="`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" />
-                                        </return>
-                                    </outcome>
-                                </switch>
-                            </block>
-                        </outcome>
+                          </switch>
+                        </block>
+                      </outcome>
                     </switch>
-                </outcome>
-                <outcome value='changeassign'>
-                    <block atomic="true">
-                        <switch test='`$service-data.networks.network_length`'>
-                            <outcome value=''>
-                                <return status='failure'>
-                                    <parameter name='ack-final' value='Y'/>
-                                    <parameter name="error-code" value="500" />
-                                    <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
-                                </return>
+                    <switch test="`$network-topology-operation-input.network-information.network-instance-group-id`"> 
+                      <outcome value="">
+                        <return status="success"></return>
+                      </outcome>
+                      <outcome value="Other">
+                        <block> 
+                          <switch test="`$service-data.network-instance-groups.network-instance-group_length`"> 
+                            <outcome value=""> 
+                              <return status="failure"> 
+                                <parameter name="ack-final" value="Y"/>  
+                                <parameter name="error-code" value="500"/>  
+                                <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-instance-group-id not found in service-data"/> 
+                              </return>
                             </outcome>
-                            <outcome value='Other'>
-                                <block atomic="true">
-                                    <for index='nidx' start='0' end='`$service-data.networks.network_length`' >
-                                        <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
-                                            <outcome value='true'>
-                                                <set>
-                                                    <parameter name='tmp.nidx' value='`$nidx`' />
-                                                    <parameter name='network-data.' value='`$service-data.networks.network[$nidx].`' />
-                                                </set>
-                                            </outcome>
-                                        </switch>
-                                    </for>
-                                    <switch test="`$tmp.nidx`">
-                                        <outcome value=''>
-                                            <return status='failure'>
-                                                <parameter name='ack-final' value='Y'/>
-                                                <parameter name="error-code" value="500" />
-                                                <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
-                                            </return>
-                                        </outcome>
-                                        <outcome value='Other'>
-                                            <set>
-                                                <parameter name='nidx' value='`$tmp.nidx`' />
-                                            </set>
-                                        </outcome>
-                                    </switch>
-                                </block>
+                            <outcome value="Other"> 
+                              <block atomic="true">
+                                <for index="ngidx" start="0" end="`$service-data.network-instance-groups.network-instance-_length`"> 
+                                  <switch test="`$service-data.network-instance-groups.network-instance-group[$nidx].network-instance-group-id == $network-topology-operation-input.network-information.network-instance-group-id`"> 
+                                    <outcome value="true"> 
+                                      <block atomic="true">
+                                        <set> 
+                                          <parameter name="tmp.ngidx" value="`$ngidx`"/>  
+                                          <parameter name="ctx.network-instance-group-data." value="`$service-data.network-instance-groups.network-instance-group[$ngidx].`"/> 
+                                        </set>
+                                      </block>
+                                    </outcome>
+                                  </switch>
+                                </for>
+                              </block>
                             </outcome>
-                        </switch>
-                        <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-changeassign' mode='sync' ></call>
-                    </block>
+                          </switch>
+                        </block>
+                      </outcome>
+                    </switch>
+                    <switch test="`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`"> 
+                      <outcome value="PendingCreate"> 
+                        <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-activate" mode="sync"></call>
+                      </outcome>
+                      <outcome value="Other"> 
+                        <return status="failure"> 
+                          <parameter name="ack-final" value="Y"/>  
+                          <parameter name="error-code" value="500"/>  
+                          <parameter name="error-message" value="`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`"/>
+                        </return>
+                      </outcome>
+                    </switch>
+                  </block>
                 </outcome>
-                <outcome value='deactivate'>
-                    <switch test='`$network-topology-operation-input.request-information.request-action`'>
-                        <outcome value='DeactivateSOTNConnectivityInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-deactivate' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='DeActivateDCINetworkInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-deactivate' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='DeactivateSDWANConnectivityInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-deactivate' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='Other'>
-                            <block atomic="true">
-                                <switch test='`$service-data.networks.network_length`'>
-                                    <outcome value=''>
-                                        <return status='failure'>
-                                            <parameter name='ack-final' value='Y'/>
-                                            <parameter name="error-code" value="500" />
-                                            <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
-                                        </return>
-                                    </outcome>
-                                    <outcome value='Other'>
-                                        <block atomic="true">
-                                            <for index='nidx' start='0' end='`$service-data.networks.network_length`' >
-                                                <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
-                                                    <outcome value='true'>
-                                                        <set>
-                                                            <parameter name='tmp.nidx' value='`$nidx`' />
-                                                            <parameter name='network-data.' value='`$service-data.networks.network[$nidx].`' />
-                                                        </set>
-                                                    </outcome>
-                                                </switch>
-                                            </for>
-                                            <switch test="`$tmp.nidx`">
-                                                <outcome value=''>
-                                                    <return status='failure'>
-                                                        <parameter name='ack-final' value='Y'/>
-                                                        <parameter name="error-code" value="500" />
-                                                        <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
-                                                    </return>
-                                                </outcome>
-                                                <outcome value='Other'>
-                                                    <set>
-                                                        <parameter name='nidx' value='`$tmp.nidx`' />
-                                                    </set>
-                                                </outcome>
-                                            </switch>
-                                        </block>
-                                    </outcome>
-                                </switch>
-                                <switch test='`$network-topology-operation-input.network-information.network-instance-group-id`'>
-                                    <outcome value=''>
-                                        <return status='success'>
-                                            <parameter name='' value='' />
-                                        </return>
-                                    </outcome>
-                                    <outcome value='Other'>
-                                        <block>
-                                            <switch test='`$service-data.network-instance-groups.network-instance-group_length`'>
-                                                <outcome value=''>
-                                                    <return status='failure'>
-                                                        <parameter name='ack-final' value='Y'/>
-                                                        <parameter name="error-code" value="500" />
-                                                        <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-instance-group-id not found in service-data" />
-                                                    </return>
-                                                </outcome>
-                                                <outcome value='Other'>
-                                                    <block atomic="true">
-                                                        <for index='ngidx' start='0' end='`$service-data.network-instance-groups.network-instance-_length`' >
-                                                            <switch test="`$service-data.network-instance-groups.network-instance-group[$nidx].network-instance-group-id == $network-topology-operation-input.network-information.network-instance-group-id`">
-                                                                <outcome value='true'>
-                                                                    <block atomic="true">
-                                                                        <set>
-                                                                            <parameter name='tmp.ngidx' value='`$ngidx`' />
-                                                                            <parameter name='ctx.network-instance-group-data.' value='`$service-data.network-instance-groups.network-instance-group[$ngidx].`' />
-                                                                        </set>
-                                                                    </block>
-                                                                </outcome>
-                                                            </switch>
-                                                        </for>
-                                                    </block>
-                                                </outcome>
-                                            </switch>
-                                        </block>
-                                    </outcome>
-                                </switch>
-                                <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' ></call>
-                            </block>
-                        </outcome>
+              </execute>
+            </outcome>
+          </switch>
+        </outcome>
+        <outcome value="changeassign">
+          <block atomic="true">
+            <switch test="`$service-data.networks.network_length`"> 
+              <outcome value=""> 
+                <return status="failure"> 
+                  <parameter name="ack-final" value="Y"/>  
+                  <parameter name="error-code" value="500"/>  
+                  <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data"/> 
+                </return>
+              </outcome>
+              <outcome value="Other"> 
+                <block atomic="true">
+                  <for index="nidx" start="0" end="`$service-data.networks.network_length`"> 
+                    <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`"> 
+                      <outcome value="true"> 
+                        <set> 
+                          <parameter name="tmp.nidx" value="`$nidx`"/>  
+                          <parameter name="network-data." value="`$service-data.networks.network[$nidx].`"/> 
+                        </set>
+                      </outcome>
                     </switch>
+                  </for>
+                  <switch test="`$tmp.nidx`"> 
+                    <outcome value=""> 
+                      <return status="failure"> 
+                        <parameter name="ack-final" value="Y"/>  
+                        <parameter name="error-code" value="500"/>  
+                        <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data"/> 
+                      </return>
+                    </outcome>
+                    <outcome value="Other"> 
+                      <set> 
+                        <parameter name="nidx" value="`$tmp.nidx`"/> 
+                      </set>
+                    </outcome>
+                  </switch>
+                </block>
+              </outcome>
+            </switch>
+            <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-changeassign" mode="sync"></call>
+          </block>
+        </outcome>
+        <outcome value="deactivate"> 
+          <switch test="`$network-topology-operation-input.request-information.request-action`"> 
+            <outcome value="DeactivateSOTNConnectivityInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="sotn-network-topology-operation-deactivate" mode="sync"></call>
+            </outcome>
+            <outcome value="DeActivateDCINetworkInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="dci-connects-network-topology-operation-deactivate" mode="sync"></call>
+            </outcome>
+            <outcome value="DeactivateSDWANConnectivityInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="sdwan-network-topology-operation-deactivate" mode="sync"></call>
+            </outcome>
+            <outcome value="Other"> 
+              <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+                <parameter name="source" value="`$network-topology-operation-input.service-information.onap-model-information.model-name`"/>  
+                <parameter name="target" value="wan-connection"/>  
+                <outcome value="true"> 
+                  <call module="GENERIC-RESOURCE-API" rpc="wan-connection-topology-operation-deactivate" mode="sync"></call>
                 </outcome>
-                <outcome value='unassign'>
-                    <block atomic="true">
-                        <switch test='`$service-data.networks.network_length`'>
-                            <outcome value=''>
-                                <return status='failure'>
-                                    <parameter name='ack-final' value='Y'/>
-                                    <parameter name="error-code" value="500" />
-                                    <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
-                                </return>
-                            </outcome>
-                            <outcome value='Other'>
-                                <block atomic="true">
-                                    <for index='nidx' start='0' end='`$service-data.networks.network_length`' >
-                                        <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`">
-                                            <outcome value='true'>
-                                                <set>
-                                                    <parameter name='tmp.nidx' value='`$nidx`' />
-                                                    <parameter name='network-data.' value='`$service-data.networks.network[$nidx].`' />
-                                                </set>
-                                            </outcome>
-                                        </switch>
-                                    </for>
-                                    <switch test="`$tmp.nidx`">
-                                        <outcome value=''>
-                                            <return status='failure'>
-                                                <parameter name='ack-final' value='Y'/>
-                                                <parameter name="error-code" value="500" />
-                                                <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data" />
-                                            </return>
-                                        </outcome>
-                                        <outcome value='Other'>
-                                            <set>
-                                                <parameter name='nidx' value='`$tmp.nidx`' />
-                                            </set>
-                                        </outcome>
-                                    </switch>
-                                </block>
+                <outcome value="false"> 
+                  <block atomic="true">
+                    <switch test="`$service-data.networks.network_length`"> 
+                      <outcome value=""> 
+                        <return status="failure"> 
+                          <parameter name="ack-final" value="Y"/>  
+                          <parameter name="error-code" value="500"/>  
+                          <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data"/> 
+                        </return>
+                      </outcome>
+                      <outcome value="Other"> 
+                        <block atomic="true">
+                          <for index="nidx" start="0" end="`$service-data.networks.network_length`"> 
+                            <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`"> 
+                              <outcome value="true"> 
+                                <set> 
+                                  <parameter name="tmp.nidx" value="`$nidx`"/>  
+                                  <parameter name="network-data." value="`$service-data.networks.network[$nidx].`"/> 
+                                </set>
+                              </outcome>
+                            </switch>
+                          </for>
+                          <switch test="`$tmp.nidx`"> 
+                            <outcome value=""> 
+                              <return status="failure"> 
+                                <parameter name="ack-final" value="Y"/>  
+                                <parameter name="error-code" value="500"/>  
+                                <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data"/> 
+                              </return>
                             </outcome>
-                        </switch>
-                        <switch test='`$network-topology-operation-input.network-information.network-instance-group-id`'>
-                            <outcome value=''>
-                                <return status='success'>
-                                    <parameter name='' value='' />
-                                </return>
+                            <outcome value="Other"> 
+                              <set> 
+                                <parameter name="nidx" value="`$tmp.nidx`"/> 
+                              </set>
                             </outcome>
-                            <outcome value='Other'>
-                                <block>
-                                    <switch test='`$service-data.network-instance-groups.network-instance-group_length`'>
-                                        <outcome value=''>
-                                            <return status='failure'>
-                                                <parameter name='ack-final' value='Y'/>
-                                                <parameter name="error-code" value="500" />
-                                                <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-instance-group-id not found in service-data" />
-                                            </return>
-                                        </outcome>
-                                        <outcome value='Other'>
-                                            <block atomic="true">
-                                                <for index='ngidx' start='0' end='`$service-data.network-instance-groups.network-instance-_length`' >
-                                                    <switch test="`$service-data.network-instance-groups.network-instance-group[$nidx].network-instance-group-id == $network-topology-operation-input.network-information.network-instance-group-id`">
-                                                        <outcome value='true'>
-                                                            <block atomic="true">
-                                                                <set>
-                                                                    <parameter name='tmp.ngidx' value='`$ngidx`' />
-                                                                    <parameter name='ctx.network-instance-group-data.' value='`$service-data.network-instance-groups.network-instance-group[$ngidx].`' />
-                                                                </set>
-                                                            </block>
-                                                        </outcome>
-                                                    </switch>
-                                                </for>
-                                            </block>
-                                        </outcome>
-                                    </switch>
-                                </block>
-                            </outcome>
-                        </switch>
-                        <switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>
-                            <outcome value='PendingCreate'>
-                                <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' ></call>
-                            </outcome>
-                            <outcome value='PendingDelete'>
-                                <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' ></call>
+                          </switch>
+                        </block>
+                      </outcome>
+                    </switch>
+                    <switch test="`$network-topology-operation-input.network-information.network-instance-group-id`"> 
+                      <outcome value="">
+                        <return status="success"></return>
+                      </outcome>
+                      <outcome value="Other">
+                        <block> 
+                          <switch test="`$service-data.network-instance-groups.network-instance-group_length`"> 
+                            <outcome value=""> 
+                              <return status="failure"> 
+                                <parameter name="ack-final" value="Y"/>  
+                                <parameter name="error-code" value="500"/>  
+                                <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-instance-group-id not found in service-data"/> 
+                              </return>
                             </outcome>
-                            <outcome value='Other'>
-                                <return status='failure'>
-                                    <parameter name='ack-final' value='Y'/>
-                                    <parameter name="error-code" value="500" />
-                                    <parameter name="error-message" value="`'Network is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`" />
-                                </return>
+                            <outcome value="Other"> 
+                              <block atomic="true">
+                                <for index="ngidx" start="0" end="`$service-data.network-instance-groups.network-instance-_length`"> 
+                                  <switch test="`$service-data.network-instance-groups.network-instance-group[$nidx].network-instance-group-id == $network-topology-operation-input.network-information.network-instance-group-id`"> 
+                                    <outcome value="true"> 
+                                      <block atomic="true">
+                                        <set> 
+                                          <parameter name="tmp.ngidx" value="`$ngidx`"/>  
+                                          <parameter name="ctx.network-instance-group-data." value="`$service-data.network-instance-groups.network-instance-group[$ngidx].`"/> 
+                                        </set>
+                                      </block>
+                                    </outcome>
+                                  </switch>
+                                </for>
+                              </block>
                             </outcome>
-                        </switch>
-                    </block>
-                </outcome>
-                <outcome value='create'>
-                    <switch test='`$network-topology-operation-input.request-information.request-action`'>
-                        <outcome value='CreateSOTNConnectivityInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-create' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='CreateSDWANConnectivityInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-create' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='other'>
-                            <block atomic="true">
-                                <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' ></call>
-                            </block>
-                        </outcome>
+                          </switch>
+                        </block>
+                      </outcome>
                     </switch>
+                    <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-deactivate" mode="sync"></call>
+                  </block>
                 </outcome>
-                <outcome value='delete'>
-                    <switch test='`$network-topology-operation-input.request-information.request-action`'>
-                        <outcome value='DeleteSOTNConnectivityInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-delete' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='DeleteSDWANConnectivityInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-delete' mode='sync' ></call>
-                        </outcome>
-                        <outcome value='other'>
-                            <block atomic="true">
-                                <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' ></call>
-                            </block>
-                        </outcome>
+              </execute>
+            </outcome>
+          </switch>
+        </outcome>
+        <outcome value="unassign"> 
+          <block atomic="true">
+            <switch test="`$service-data.networks.network_length`"> 
+              <outcome value=""> 
+                <return status="failure"> 
+                  <parameter name="ack-final" value="Y"/>  
+                  <parameter name="error-code" value="500"/>  
+                  <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data"/> 
+                </return>
+              </outcome>
+              <outcome value="Other"> 
+                <block atomic="true">
+                  <for index="nidx" start="0" end="`$service-data.networks.network_length`"> 
+                    <switch test="`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`"> 
+                      <outcome value="true"> 
+                        <set> 
+                          <parameter name="tmp.nidx" value="`$nidx`"/>  
+                          <parameter name="network-data." value="`$service-data.networks.network[$nidx].`"/> 
+                        </set>
+                      </outcome>
                     </switch>
+                  </for>
+                  <switch test="`$tmp.nidx`"> 
+                    <outcome value=""> 
+                      <return status="failure"> 
+                        <parameter name="ack-final" value="Y"/>  
+                        <parameter name="error-code" value="500"/>  
+                        <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-id not found in service-data"/> 
+                      </return>
+                    </outcome>
+                    <outcome value="Other"> 
+                      <set> 
+                        <parameter name="nidx" value="`$tmp.nidx`"/> 
+                      </set>
+                    </outcome>
+                  </switch>
+                </block>
+              </outcome>
+            </switch>
+            <switch test="`$network-topology-operation-input.network-information.network-instance-group-id`"> 
+              <outcome value="">
+                <return status="success"></return>
+              </outcome>
+              <outcome value="Other">
+                <block> 
+                  <switch test="`$service-data.network-instance-groups.network-instance-group_length`"> 
+                    <outcome value=""> 
+                      <return status="failure"> 
+                        <parameter name="ack-final" value="Y"/>  
+                        <parameter name="error-code" value="500"/>  
+                        <parameter name="error-message" value="network-topology-operation-input.network-request-input.network-instance-group-id not found in service-data"/> 
+                      </return>
+                    </outcome>
+                    <outcome value="Other"> 
+                      <block atomic="true">
+                        <for index="ngidx" start="0" end="`$service-data.network-instance-groups.network-instance-_length`"> 
+                          <switch test="`$service-data.network-instance-groups.network-instance-group[$nidx].network-instance-group-id == $network-topology-operation-input.network-information.network-instance-group-id`"> 
+                            <outcome value="true"> 
+                              <block atomic="true">
+                                <set> 
+                                  <parameter name="tmp.ngidx" value="`$ngidx`"/>  
+                                  <parameter name="ctx.network-instance-group-data." value="`$service-data.network-instance-groups.network-instance-group[$ngidx].`"/> 
+                                </set>
+                              </block>
+                            </outcome>
+                          </switch>
+                        </for>
+                      </block>
+                    </outcome>
+                  </switch>
+                </block>
+              </outcome>
+            </switch>
+            <switch test="`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`"> 
+              <outcome value="PendingCreate"> 
+                <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-unassign" mode="sync"></call>
+              </outcome>
+              <outcome value="PendingDelete"> 
+                <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-unassign" mode="sync"></call>
+              </outcome>
+              <outcome value="Other"> 
+                <return status="failure"> 
+                  <parameter name="ack-final" value="Y"/>  
+                  <parameter name="error-code" value="500"/>  
+                  <parameter name="error-message" value="`'Network is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`"/>
+                </return>
+              </outcome>
+            </switch>
+          </block>
+        </outcome>
+        <outcome value="create"> 
+          <switch test="`$network-topology-operation-input.request-information.request-action`"> 
+            <outcome value="CreateSOTNConnectivityInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="sotn-network-topology-operation-create" mode="sync"></call>
+            </outcome>
+            <outcome value="CreateSDWANConnectivityInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="sdwan-network-topology-operation-create" mode="sync"></call>
+            </outcome>
+            <outcome value="other">
+              <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+                <parameter name="source" value="`$network-topology-operation-input.service-information.onap-model-information.model-name`"/>  
+                <parameter name="target" value="wan-connection"/>  
+                <outcome value="true"> 
+                  <call module="GENERIC-RESOURCE-API" rpc="wan-connection-topology-operation-create" mode="sync"></call>
                 </outcome>
-                <outcome value='reoptimize'>
-                    <switch test='`$network-topology-operation-input.request-information.request-action`'>
-                        <outcome value='ReoptimizeSOTNInstance'>
-                            <call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-reoptimize' mode='sync' ></call>
-                        </outcome>
-                    </switch>
+                <outcome value="false"> 
+                  <block atomic="true">
+                    <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-create" mode="sync"></call>
+                  </block>
                 </outcome>
-                <outcome value='Other'>
-                    <return status='failure'>
-                        <parameter name='ack-final' value='Y'/>
-                        <parameter name="error-code" value="500" />
-                        <parameter name="error-message" value="sdnc-request-header.svc-action is a required input" />
-                    </return>
+              </execute>
+            </outcome>
+          </switch>
+        </outcome>
+        <outcome value="delete"> 
+          <switch test="`$network-topology-operation-input.request-information.request-action`"> 
+            <outcome value="DeleteSOTNConnectivityInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="sotn-network-topology-operation-delete" mode="sync"></call>
+            </outcome>
+            <outcome value="DeleteSDWANConnectivityInstance">
+              <call module="GENERIC-RESOURCE-API" rpc="sdwan-network-topology-operation-delete" mode="sync"></call>
+            </outcome>
+            <outcome value="other">
+              <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+                <parameter name="source" value="`$network-topology-operation-input.service-information.onap-model-information.model-name`"/>  
+                <parameter name="target" value="wan-connection"/>  
+                <outcome value="true"> 
+                  <call module="GENERIC-RESOURCE-API" rpc="wan-connection-topology-operation-deactivate" mode="sync"></call>
                 </outcome>
-            </switch>
-            <set>
-                <parameter name="ack-final" value="Y"/>
-            </set>
-            <return status='success'>
-                <parameter name="ack-final-indicator" value="Y" />
-                <parameter name="error-code" value="200" />
-                <parameter name="error-message" value="`$error-message`" />
-            </return>
-        </block>
-    </method>
+                <outcome value="false"> 
+                  <block atomic="true">
+                    <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-delete" mode="sync"></call>
+                  </block>
+                </outcome>
+              </execute>
+            </outcome>
+          </switch>
+        </outcome>
+        <outcome value="Other"> 
+          <return status="failure"> 
+            <parameter name="ack-final" value="Y"/>  
+            <parameter name="error-code" value="500"/>  
+            <parameter name="error-message" value="sdnc-request-header.svc-action is a required input"/> 
+          </return>
+        </outcome>
+      </switch>
+      <set> 
+        <parameter name="ack-final" value="Y"/>
+      </set>
+      <return status="success"> 
+        <parameter name="ack-final-indicator" value="Y"/>  
+        <parameter name="error-code" value="200"/>  
+        <parameter name="error-message" value="`$error-message`"/> 
+      </return>
+    </block>
+  </method>
 </service-logic>
index 77ad158..0116dac 100644 (file)
                 <parameter name="keyStorePassword" value="adminadmin"/>\r
                 <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
                 <outcome value='failure'>\r
-                    <return status='failure'>\r
-                        <parameter name='ack-final' value='Y'/>\r
-                        <parameter name="error-code" value="500" />\r
-                        <parameter name="error-message" value="Error executing Create wan port rest api" />\r
-                    </return>\r
+                    <block atomic="true"></block>\r
                 </outcome>\r
                 <outcome value='success'>\r
-                    <block atomic="true"></block>\r
+                    <block atomic="true">\r
+                        <set>\r
+                            <parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\r
+                        </set>\r
+                    </block>\r
                 </outcome>\r
             </execute>\r
-            <set>\r
-                <parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\r
-            </set>\r
             <set>\r
                 <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='devicePortId' />\r
                 <parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$prop.wan.devicePortId`' />\r
index 1c7f5cb..290426b 100644 (file)
                                                                     <block atomic="true">\r
                                                                         <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`">\r
                                                                             <outcome value='true'>\r
-                                                                                <set>\r
-                                                                                    <parameter name='tmp.portvidx' value='`$arvidx`' />\r
-                                                                                </set>\r
+                                                                                <block atomic="true">\r
+                                                                                    <set>\r
+                                                                                        <parameter name='tmp.portvidx' value='`$arvidx`' />\r
+                                                                                    </set>\r
+                                                                                    <for index="wportidx" start="0" end="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`">\r
+                                                                                        <block atomic="true">\r
+                                                                                            <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'transportNetworkName'`">\r
+                                                                                                <outcome value='true'>\r
+                                                                                                    <block atomic="true">\r
+                                                                                                        <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value == $prop.spoke.transportNetworkName`">\r
+                                                                                                            <outcome value='true'>\r
+                                                                                                                <block atomic="true">\r
+                                                                                                                    <set>\r
+                                                                                                                        <parameter name='tmp.wanportvidx' value='`$arvidx`' />\r
+                                                                                                                    </set>\r
+                                                                                                                    <set>\r
+                                                                                                                        <parameter name='prop.hub.transportNetworkName' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\r
+                                                                                                                    </set>\r
+                                                                                                                </block>\r
+                                                                                                            </outcome>\r
+                                                                                                        </switch>\r
+                                                                                                    </block>\r
+                                                                                                </outcome>\r
+                                                                                            </switch>\r
+                                                                                        </block>\r
+                                                                                    </for>\r
+                                                                                </block>\r
                                                                             </outcome>\r
                                                                         </switch>\r
                                                                         <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`">\r
                                                                     </block>\r
                                                                 </for>\r
                                                                 <block atomic="true">\r
-                                                                    <switch test="`$tmp.portvidx`">\r
+                                                                    <switch test="`$tmp.wanportvidx`">\r
                                                                         <outcome value=''>\r
                                                                             <return status='failure'>\r
                                                                                 <parameter name='ack-final' value='Y'/>\r
                                                                         </outcome>\r
                                                                     </switch>\r
                                                                 </block>\r
-                                                                <for index="wportidx" start="0" end="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`">\r
-                                                                    <block atomic="true">\r
-                                                                        <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'transportNetworkName'`">\r
-                                                                            <outcome value='true'>\r
-                                                                                <set>\r
-                                                                                    <parameter name='prop.hub.transportNetworkName' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\r
-                                                                                </set>\r
-                                                                            </outcome>\r
-                                                                        </switch>\r
-                                                                        <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'wanPortId'`">\r
-                                                                            <outcome value='true'>\r
-                                                                                <set>\r
-                                                                                    <parameter name='prop.hub.wanPortId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\r
-                                                                                </set>\r
-                                                                            </outcome>\r
-                                                                        </switch>\r
-                                                                        <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'providerIpAddress'`">\r
-                                                                            <outcome value='true'>\r
-                                                                                <set>\r
-                                                                                    <parameter name='prop.hub.providerIpAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\r
-                                                                                </set>\r
-                                                                            </outcome>\r
-                                                                        </switch>\r
-                                                                        <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'ipAddress'`">\r
-                                                                            <outcome value='true'>\r
-                                                                                <set>\r
-                                                                                    <parameter name='prop.hub.ipAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\r
-                                                                                </set>\r
-                                                                            </outcome>\r
-                                                                        </switch>\r
-                                                                    </block>\r
-                                                                </for>\r
                                                                 <switch test="`$prop.hub.transportNetworkName == $prop.spoke.transportNetworkName`">\r
                                                                     <outcome value='false'>\r
                                                                         <block></block>\r
                                                                     </outcome>\r
                                                                     <outcome value='true'>\r
                                                                         <block atomic="true">\r
+                                                                            <for index="wportidx" start="0" end="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`">\r
+                                                                                <block atomic="true">\r
+                                                                                    <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'wanPortId'`">\r
+                                                                                        <outcome value='true'>\r
+                                                                                            <set>\r
+                                                                                                <parameter name='prop.hub.wanPortId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\r
+                                                                                            </set>\r
+                                                                                        </outcome>\r
+                                                                                    </switch>\r
+                                                                                    <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'providerIpAddress'`">\r
+                                                                                        <outcome value='true'>\r
+                                                                                            <set>\r
+                                                                                                <parameter name='prop.hub.providerIpAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\r
+                                                                                            </set>\r
+                                                                                        </outcome>\r
+                                                                                    </switch>\r
+                                                                                    <switch test="`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'ipAddress'`">\r
+                                                                                        <outcome value='true'>\r
+                                                                                            <set>\r
+                                                                                                <parameter name='prop.hub.ipAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\r
+                                                                                            </set>\r
+                                                                                        </outcome>\r
+                                                                                    </switch>\r
+                                                                                </block>\r
+                                                                            </for>\r
                                                                             <set>\r
                                                                                 <parameter name='prop.hubTnpId' value='$prop.hub.wanPortId' />\r
                                                                             </set>\r
                                                                                             <parameter name="keyStorePassword" value="adminadmin"/>\r
                                                                                             <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
                                                                                             <outcome value='failure'>\r
-                                                                                                <return status='failure'>\r
-                                                                                                    <parameter name='ack-final' value='Y'/>\r
-                                                                                                    <parameter name="error-code" value="500" />\r
-                                                                                                    <parameter name="error-message" value="Error executing sdwan hub route underlay rest api" />\r
-                                                                                                </return>\r
+                                                                                                <block></block>\r
+                                                                                            </outcome>\r
+                                                                                            <outcome value='success'>\r
+                                                                                                <block></block>\r
                                                                                             </outcome>\r
-                                                                                            <outcome value='success'></outcome>\r
                                                                                         </execute>\r
                                                                                         <set>\r
                                                                                             <parameter name='prop.spoke.ipAddress' value="10.3.0.1" />\r
                                                                                             <parameter name="keyStorePassword" value="adminadmin"/>\r
                                                                                             <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
                                                                                             <outcome value='failure'>\r
-                                                                                                <return status='failure'>\r
-                                                                                                    <parameter name='ack-final' value='Y'/>\r
-                                                                                                    <parameter name="error-code" value="500" />\r
-                                                                                                    <parameter name="error-message" value="Error executing sdwan spoke route underlay rest api" />\r
-                                                                                                </return>\r
+                                                                                                <block></block>\r
+                                                                                            </outcome>\r
+                                                                                            <outcome value='success'>\r
+                                                                                                <block></block>\r
                                                                                             </outcome>\r
-                                                                                            <outcome value='success'></outcome>\r
                                                                                         </execute>\r
                                                                                         <set>\r
                                                                                             <parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubSiteId' value='`$prop.hub.siteId`' />\r
                                                                                             <parameter name="keyStorePassword" value="adminadmin"/>\r
                                                                                             <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
                                                                                             <outcome value='failure'>\r
-                                                                                                <return status='failure'>\r
-                                                                                                    <parameter name='ack-final' value='Y'/>\r
-                                                                                                    <parameter name="error-code" value="500" />\r
-                                                                                                    <parameter name="error-message" value="Error executing sdwan hub route underlay rest api" />\r
-                                                                                                </return>\r
+                                                                                                <block></block>\r
+                                                                                            </outcome>\r
+                                                                                            <outcome value='success'>\r
+                                                                                                <block></block>\r
                                                                                             </outcome>\r
-                                                                                            <outcome value='success'></outcome>\r
                                                                                         </execute>\r
                                                                                         <set>\r
                                                                                             <parameter name='prop.spoke.ipAddress' value="10.3.0.1" />\r
                                                                                             <parameter name="keyStorePassword" value="adminadmin"/>\r
                                                                                             <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />\r
                                                                                             <outcome value='failure'>\r
-                                                                                                <return status='failure'>\r
-                                                                                                    <parameter name='ack-final' value='Y'/>\r
-                                                                                                    <parameter name="error-code" value="500" />\r
-                                                                                                    <parameter name="error-message" value="Error executing sdwan spoke route underlay rest api" />\r
-                                                                                                </return>\r
+                                                                                                <block></block>\r
+                                                                                            </outcome>\r
+                                                                                            <outcome value='success'>\r
+                                                                                                <block></block>\r
                                                                                             </outcome>\r
-                                                                                            <outcome value='success'></outcome>\r
                                                                                         </execute>\r
                                                                                     </block>\r
                                                                                 </outcome>\r
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.xml
new file mode 100644 (file)
index 0000000..fbae8f8
--- /dev/null
@@ -0,0 +1,217 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<service-logic xmlns="http://www.onap.org/sdnc/svclogic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="GENERIC-RESOURCE-API" version="${project.version}">
+  <method rpc="wan-connection-topology-operation-activate" mode="sync"> 
+    <block atomic="true">
+      <execute plugin="org.onap.ccsdk.sli.plugins.prop.PropertiesNode" method="readProperties"> 
+        <parameter name="fileName" value="%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties"/>  
+        <parameter name="contextPrefix" value="prop"/> 
+      </execute>
+      <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="replace"> 
+        <parameter name="source" value="`$prop.network-provided-resource`"/>  
+        <parameter name="outputPath" value="tmp.services-url"/>  
+        <parameter name="target" value="{service-instance-id}"/>  
+        <parameter name="replacement" value="`$network-topology-operation-input.service-information.service-id`"/> 
+      </execute>
+      <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> 
+        <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.services-url`"/>  
+        <parameter name="restapiUser" value="`$prop.controller.user`"/>  
+        <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>  
+        <parameter name="format" value="json"/>  
+        <parameter name="httpMethod" value="GET"/>  
+        <parameter name="responsePrefix" value="mdsal-psd"/>  
+        <outcome value="success"> 
+          <block></block>
+        </outcome>
+        <outcome value="Other"> 
+          <return status="failure"> 
+            <parameter name="ack-final" value="Y"/>  
+            <parameter name="error-code" value="404"/>  
+            <parameter name="error-message" value="Error: Parent service data not available"/> 
+          </return>
+        </outcome>
+      </execute>
+      <set> 
+        <parameter name="tmp.found-network-input" value="false"/>
+      </set>
+      <for index="pidx" start="0" end="`$mdsal-psd.service-data.networks.network_length`"> 
+        <switch test="`$mdsal-psd.service-data.networks.network[$pidx].network-data.network-information.onap-model-information.model-name == $network-topology-operation-input.network-information.onap-model-information.model-name`"> 
+          <outcome value="true"> 
+            <block atomic="true">
+              <set> 
+                <parameter name="tmp.pidx" value="`$pidx`"/>  
+                <parameter name="tmp.network." value="`$mdsal-psd.service-data.networks.network[$pidx].`"/>  
+                <parameter name="tmp.network-input-parameters" value="`$mdsal-psd.service-data.networks.network[$pidx].network-data.network-request-input.network-input-parameters`"/>  
+                <parameter name="tmp.found-network-input" value="true"/>
+              </set>
+            </block>
+          </outcome>
+        </switch>
+      </for>
+      <switch test="`$found-network-input`"> 
+        <outcome value="false"> 
+          <return status="failure"> 
+            <parameter name="ack-final" value="Y"/>  
+            <parameter name="error-code" value="404"/>  
+            <parameter name="error-message" value="Error: Network input parameters not found"/> 
+          </return>
+        </outcome>
+        <outcome value="true"> 
+          <block atomic="true">
+            <set> 
+              <parameter name="tmp.restapiUrl-found" value="false"/>  
+              <parameter name="tmp.restapiUser-found" value="false"/>  
+              <parameter name="tmp.restapiPassword-found" value="false"/>  
+              <parameter name="tmp.templateFileName-found" value="false"/>  
+              <parameter name="tmp.thirdPartyAdaptorRpc-found" value="false"/>
+            </set>
+            <for index="cidx" start="0" end="`$tmp.network.network-data.network-topology.network-parameters.network-parameter_length`"> 
+              <block> 
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUrl'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.restapiUrl" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.restapiUrl-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUser'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.restapiUser" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.restapiUser-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiPassword'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.restapiPassword" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.restapiPassword-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'templateFileName'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.templateFileName" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.templateFileName-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'thirdPartyAdaptorRpc'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.thirdPartyAdaptorRpc" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.thirdPartyAdaptorRpc-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+              </block>
+            </for>
+            <switch test="`$tmp.thirdPartyAdaptorRpc-found == 'true'`"> 
+              <outcome value="true"> 
+                <call module="GENERIC-RESOURCE-API" rpc="`$tmp.thirdPartyAdaptorRpc`" mode="sync"> 
+                  <outcome value="success"> 
+                    <block></block>
+                  </outcome>
+                  <outcome value="failure"> 
+                    <return status="failure"> 
+                      <parameter name="ack-final" value="Y"/>  
+                      <parameter name="error-code" value="500"/>  
+                      <parameter name="error-message" value="`'Error calling ' + $tmp.thirdPartyAdaptorRpc`"/> 
+                    </return>
+                  </outcome>
+                  <outcome value="not-found"> 
+                    <return status="failure"> 
+                      <parameter name="ack-final" value="Y"/>  
+                      <parameter name="error-code" value="500"/>  
+                      <parameter name="error-message" value="`'Error calling ' + $tmp.thirdPartyAdaptorRpc`"/> 
+                    </return>
+                  </outcome>
+                </call>
+              </outcome>
+              <outcome value="false"> 
+                <switch test="`$tmp.restapiUrl-found == 'true'`"> 
+                  <outcome value="false"> 
+                    <return status="failure"> 
+                      <parameter name="ack-final" value="Y"/>  
+                      <parameter name="error-code" value="404"/>  
+                      <parameter name="error-message" value="Error: 3rd party controller restapiUrl not found"/> 
+                    </return>
+                  </outcome>
+                  <outcome value="true"> 
+                    <switch test="`$tmp.restapiUser-found == 'true'`"> 
+                      <outcome value="false"> 
+                        <return status="failure"> 
+                          <parameter name="ack-final" value="Y"/>  
+                          <parameter name="error-code" value="404"/>  
+                          <parameter name="error-message" value="Error: 3rd party controller restapiUser not found"/> 
+                        </return>
+                      </outcome>
+                      <outcome value="true"> 
+                        <switch test="`$tmp.restapiPassword-found == 'true'`"> 
+                          <outcome value="false"> 
+                            <return status="failure"> 
+                              <parameter name="ack-final" value="Y"/>  
+                              <parameter name="error-code" value="404"/>  
+                              <parameter name="error-message" value="Error: 3rd party controller restapiPassword not found"/> 
+                            </return>
+                          </outcome>
+                          <outcome value="true"> 
+                            <switch test="`$tmp.templateFileName-found == 'true'`"> 
+                              <outcome value="false"> 
+                                <return status="failure"> 
+                                  <parameter name="ack-final" value="Y"/>  
+                                  <parameter name="error-code" value="404"/>  
+                                  <parameter name="error-message" value="Error: 3rd party controller templateFileName not found"/> 
+                                </return>
+                              </outcome>
+                              <outcome value="true"> 
+                                <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> 
+                                  <parameter name="templateFileName" value="`$tmp.templateFileName`"/>  
+                                  <parameter name="restapiUrl" value="`$tmp.restapiUrl`"/>  
+                                  <parameter name="restapiUser" value="`$tmp.restapiUser`"/>  
+                                  <parameter name="restapiPassword" value="`$tmp.restapiPassword`"/>  
+                                  <parameter name="format" value="json"/>  
+                                  <parameter name="httpMethod" value="post"/>  
+                                  <parameter name="responsePrefix" value="restApi-result"/>
+                                  <outcome value="success"> 
+                                    <block></block>
+                                  </outcome>
+                                  <outcome value="failure"> 
+                                    <return status="failure"> 
+                                      <parameter name="ack-final" value="Y"/>  
+                                      <parameter name="error-code" value="500"/>  
+                                      <parameter name="error-message" value="`'Error calling ' + $tmp.restapiUrl`"/> 
+                                    </return>
+                                  </outcome>
+                                  <outcome value="not-found"> 
+                                    <return status="failure"> 
+                                      <parameter name="ack-final" value="Y"/>  
+                                      <parameter name="error-code" value="500"/>  
+                                      <parameter name="error-message" value="`'Error calling ' + $tmp.restapiUrl`"/> 
+                                    </return>
+                                  </outcome>
+                                </execute>
+                              </outcome>
+                            </switch>
+                          </outcome>
+                        </switch>
+                      </outcome>
+                    </switch>
+                  </outcome>
+                </switch>
+              </outcome>
+            </switch>
+          </block>
+        </outcome>
+      </switch>
+      <return status="success"> 
+        <parameter name="ack-final-indicator" value="Y"/>  
+        <parameter name="error-code" value="200"/>  
+        <parameter name="error-message" value="`$error-message`"/> 
+      </return>
+    </block>
+  </method>
+</service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-create.xml
new file mode 100644 (file)
index 0000000..61453ea
--- /dev/null
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<service-logic xmlns="http://www.onap.org/sdnc/svclogic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="GENERIC-RESOURCE-API" version="${project.version}">
+  <method rpc="wan-connection-topology-operation-create" mode="sync"> 
+    <block atomic="true">
+      <switch test="`$network-topology-operation-input.network-information.network-id`"> 
+        <outcome value="">
+          <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils" method="generateUUID"> 
+            <parameter name="ctx-destination" value="network-topology-operation-input.network-information.network-id"/>  
+            <outcome value="failure"> 
+              <return status="failure"> 
+                <parameter name="error-code" value=""/>  
+                <parameter name="error-message" value="An error occured while generation allotted resource ID"/> 
+              </return>
+            </outcome>
+          </execute>
+        </outcome>
+        <outcome value="Other"></outcome>
+      </switch>
+      <execute plugin="org.onap.ccsdk.sli.plugins.prop.PropertiesNode" method="readProperties"> 
+        <parameter name="fileName" value="%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties"/>  
+        <parameter name="contextPrefix" value="prop"/> 
+      </execute>
+      <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+        <parameter name="source" value="`$network-topology-operation-input.network-information.onap-model-information.model-name`"/>  
+        <parameter name="target" value="specification"/>  
+        <outcome value="true"> 
+          <call module="GENERIC-RESOURCE-API" rpc="wan-connection-save-specification" mode="sync"></call>
+        </outcome>
+        <outcome value="false"> 
+          <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+            <parameter name="source" value="`$network-topology-operation-input.network-information.onap-model-information.model-name`"/>  
+            <parameter name="target" value="FC"/>  
+            <outcome value="true"> 
+              <call module="GENERIC-RESOURCE-API" rpc="wan-connection-find-specifications" mode="sync"></call>
+            </outcome>
+            <outcome value="false"> 
+              <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+                <parameter name="source" value="`$network-topology-operation-input.network-information.onap-model-information.model-name`"/>  
+                <parameter name="target" value="FD"/>  
+                <outcome value="true"> 
+                  <call module="GENERIC-RESOURCE-API" rpc="wan-connection-find-specifications" mode="sync"></call>
+                </outcome>
+                <outcome value="false"> 
+                  <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+                    <parameter name="source" value="`$network-topology-operation-input.network-information.onap-model-information.model-name`"/>  
+                    <parameter name="target" value="Link"/>  
+                    <outcome value="true"> 
+                      <call module="GENERIC-RESOURCE-API" rpc="wan-connection-route-calculation" mode="sync"></call>
+                    </outcome>
+                    <outcome value="false"> 
+                      <block></block>
+                    </outcome>
+                  </execute>
+                </outcome>
+              </execute>
+            </outcome>
+          </execute>
+        </outcome>
+      </execute>
+      <return status="success"> 
+        <parameter name="ack-final-indicator" value="Y"/>  
+        <parameter name="error-code" value="200"/>  
+        <parameter name="error-message" value="`$error-message`"/> 
+      </return>
+    </block>
+  </method>
+</service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-deactivate.xml
new file mode 100644 (file)
index 0000000..592fb65
--- /dev/null
@@ -0,0 +1,215 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<service-logic xmlns="http://www.onap.org/sdnc/svclogic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="GENERIC-RESOURCE-API" version="${project.version}">
+  <method rpc="wan-connection-topology-operation-deactivate" mode="sync"> 
+    <block atomic="true">
+      <execute plugin="org.onap.ccsdk.sli.plugins.prop.PropertiesNode" method="readProperties"> 
+        <parameter name="fileName" value="%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties"/>  
+        <parameter name="contextPrefix" value="prop"/> 
+      </execute>
+      <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="replace"> 
+        <parameter name="source" value="`$prop.network-provided-resource`"/>  
+        <parameter name="outputPath" value="tmp.services-url"/>  
+        <parameter name="target" value="{service-instance-id}"/>  
+        <parameter name="replacement" value="`$network-topology-operation-input.service-information.service-id`"/> 
+      </execute>
+      <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> 
+        <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.services-url`"/>  
+        <parameter name="restapiUser" value="`$prop.controller.user`"/>  
+        <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>  
+        <parameter name="format" value="json"/>  
+        <parameter name="httpMethod" value="GET"/>  
+        <parameter name="responsePrefix" value="mdsal-psd"/>  
+        <outcome value="success"> 
+          <block></block>
+        </outcome>
+        <outcome value="Other"> 
+          <return status="failure"> 
+            <parameter name="ack-final" value="Y"/>  
+            <parameter name="error-code" value="404"/>  
+            <parameter name="error-message" value="Error: Parent service data not available"/> 
+          </return>
+        </outcome>
+      </execute>
+      <set> 
+        <parameter name="tmp.found-network-input" value="false"/>
+      </set>
+      <for index="pidx" start="0" end="`$mdsal-psd.service-data.networks.network_length`"> 
+        <switch test="`$mdsal-psd.service-data.networks.network[$pidx].network-id == $network-topology-operation-input.network-information.network-id`"> 
+          <outcome value="true"> 
+            <block atomic="true">
+              <set> 
+                <parameter name="tmp.pidx" value="`$pidx`"/>  
+                <parameter name="tmp.network." value="`$mdsal-psd.service-data.networks.network[$pidx].`"/>  
+                <parameter name="tmp.network-input-parameters" value="`$mdsal-psd.service-data.networks.network[$pidx].network-data.network-request-input.network-input-parameters`"/>  
+                <parameter name="tmp.found-network-input" value="true"/>
+              </set>
+            </block>
+          </outcome>
+        </switch>
+      </for>
+      <switch test="`$found-network-input`"> 
+        <outcome value="false"> 
+          <return status="failure"> 
+            <parameter name="ack-final" value="Y"/>  
+            <parameter name="error-code" value="404"/>  
+            <parameter name="error-message" value="Error: Network input parameters not found"/> 
+          </return>
+        </outcome>
+        <outcome value="true"> 
+          <block atomic="true">
+            <set> 
+              <parameter name="tmp.restapiUrl-found" value="false"/>  
+              <parameter name="tmp.restapiUser-found" value="false"/>  
+              <parameter name="tmp.restapiPassword-found" value="false"/>  
+              <parameter name="tmp.thirdPartyAdaptorRpc-found" value="false"/>  
+              <parameter name="tmp.actualId-found" value="false"/>
+            </set>
+            <for index="cidx" start="0" end="`$tmp.network.network-data.network-topology.network-parameters.network-parameter_length`"> 
+              <block> 
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUrl-deactivate'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.restapiUrl" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.restapiUrl-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUser'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.restapiUser" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.restapiUser-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiPassword'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.restapiPassword" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.restapiPassword-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'actualId'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.actualId" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.actualId-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+                <switch test="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'thirdPartyAdaptorRpc-deactivate'`"> 
+                  <outcome value="true"> 
+                    <set> 
+                      <parameter name="tmp.thirdPartyAdaptorRpc" value="`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`"/>  
+                      <parameter name="tmp.thirdPartyAdaptorRpc-found" value="true"/>
+                    </set>
+                  </outcome>
+                </switch>
+              </block>
+            </for>
+            <switch test="`$tmp.thirdPartyAdaptorRpc-found == 'true'`"> 
+              <outcome value="true"> 
+                <call module="GENERIC-RESOURCE-API" rpc="`$tmp.thirdPartyAdaptorRpc`" mode="sync"> 
+                  <outcome value="success"> 
+                    <block></block>
+                  </outcome>
+                  <outcome value="failure"> 
+                    <return status="failure"> 
+                      <parameter name="ack-final" value="Y"/>  
+                      <parameter name="error-code" value="500"/>  
+                      <parameter name="error-message" value="`'Error calling ' + $tmp.thirdPartyAdaptorRpc`"/> 
+                    </return>
+                  </outcome>
+                  <outcome value="not-found"> 
+                    <return status="failure"> 
+                      <parameter name="ack-final" value="Y"/>  
+                      <parameter name="error-code" value="500"/>  
+                      <parameter name="error-message" value="`'Error calling ' + $tmp.thirdPartyAdaptorRpc`"/> 
+                    </return>
+                  </outcome>
+                </call>
+              </outcome>
+              <outcome value="false"> 
+                <switch test="`$tmp.restapiUrl-found == 'true'`"> 
+                  <outcome value="false"> 
+                    <return status="failure"> 
+                      <parameter name="ack-final" value="Y"/>  
+                      <parameter name="error-code" value="404"/>  
+                      <parameter name="error-message" value="Error: 3rd party controller restapiUrl not found"/> 
+                    </return>
+                  </outcome>
+                  <outcome value="true"> 
+                    <switch test="`$tmp.restapiUser-found == 'true'`"> 
+                      <outcome value="false"> 
+                        <return status="failure"> 
+                          <parameter name="ack-final" value="Y"/>  
+                          <parameter name="error-code" value="404"/>  
+                          <parameter name="error-message" value="Error: 3rd party controller restapiUser not found"/> 
+                        </return>
+                      </outcome>
+                      <outcome value="true"> 
+                        <switch test="`$tmp.restapiPassword-found == 'true'`"> 
+                          <outcome value="false"> 
+                            <return status="failure"> 
+                              <parameter name="ack-final" value="Y"/>  
+                              <parameter name="error-code" value="404"/>  
+                              <parameter name="error-message" value="Error: 3rd party controller restapiPassword not found"/> 
+                            </return>
+                          </outcome>
+                          <outcome value="true"> 
+                            <switch test="`$tmp.actualId-found == 'true'`"> 
+                              <outcome value="false"> 
+                                <return status="failure"> 
+                                  <parameter name="ack-final" value="Y"/>  
+                                  <parameter name="error-code" value="404"/>  
+                                  <parameter name="error-message" value="Error: Wan Connection actualId not found"/> 
+                                </return>
+                              </outcome>
+                              <outcome value="true"> 
+                                <execute plugin="org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode" method="sendRequest"> 
+                                  <parameter name="restapiUrl" value="`$tmp.restapiUrl + $tmp.actualId`"/>  
+                                  <parameter name="restapiUser" value="`$tmp.restapiUser`"/>  
+                                  <parameter name="restapiPassword" value="`$tmp.restapiPassword`"/>  
+                                  <parameter name="format" value="json"/>  
+                                  <parameter name="httpMethod" value="delete"/>
+                                  <outcome value="success"> 
+                                    <block></block>
+                                  </outcome>
+                                  <outcome value="failure"> 
+                                    <return status="failure"> 
+                                      <parameter name="ack-final" value="Y"/>  
+                                      <parameter name="error-code" value="500"/>  
+                                      <parameter name="error-message" value="`'Error calling ' + $tmp.restapiUrl`"/> 
+                                    </return>
+                                  </outcome>
+                                  <outcome value="not-found"> 
+                                    <return status="failure"> 
+                                      <parameter name="ack-final" value="Y"/>  
+                                      <parameter name="error-code" value="500"/>  
+                                      <parameter name="error-message" value="`'Error calling ' + $tmp.restapiUrl`"/> 
+                                    </return>
+                                  </outcome>
+                                </execute>
+                              </outcome>
+                            </switch>
+                          </outcome>
+                        </switch>
+                      </outcome>
+                    </switch>
+                  </outcome>
+                </switch>
+              </outcome>
+            </switch>
+          </block>
+        </outcome>
+      </switch>
+      <return status="success"> 
+        <parameter name="ack-final-indicator" value="Y"/>  
+        <parameter name="error-code" value="200"/>  
+        <parameter name="error-message" value="`$error-message`"/> 
+      </return>
+    </block>
+  </method>
+</service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.xml
new file mode 100644 (file)
index 0000000..9c24e52
--- /dev/null
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<service-logic xmlns="http://www.onap.org/sdnc/svclogic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module="GENERIC-RESOURCE-API" version="${project.version}">
+  <method rpc="wan-connection-topology-operation-delete" mode="sync"> 
+    <block atomic="true">
+      <switch test="`$network-topology-operation-input.network-information.network-id`"> 
+        <outcome value="">
+          <return status="failure"> 
+            <parameter name="error-code" value=""/>  
+            <parameter name="error-message" value="An error occured while generation allotted resource ID"/> 
+          </return>
+        </outcome>
+        <outcome value="Other"></outcome>
+      </switch>
+      <execute plugin="org.onap.ccsdk.sli.plugins.prop.PropertiesNode" method="readProperties"> 
+        <parameter name="fileName" value="%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties"/>  
+        <parameter name="contextPrefix" value="prop"/> 
+      </execute>
+      <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+        <parameter name="source" value="`$network-topology-operation-input.network-information.onap-model-information.model-name`"/>  
+        <parameter name="target" value="FC"/>  
+        <outcome value="true"> 
+          <block atomic="true">
+            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> 
+              <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic.log"/>  
+              <parameter name="field1" value="__TIMESTAMP__"/>  
+              <parameter name="field2" value="wan-connection-topology-operation-delete"/>  
+              <parameter name="field3" value="`$network-topology-operation-input.network-information.onap-model-information.model-name + ' delete'`"/> 
+            </record>
+            <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="connectivity" key="connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id"></delete>
+            <set> 
+              <parameter name="service-data.networks.network_length" value="`$service-data.networks.network_length - 1`"/> 
+            </set>
+            <set> 
+              <parameter name="service-data.networks.network[$tmp.nidx]." value=""/> 
+            </set>
+            <set> 
+              <parameter name="networkId" value="`$network-topology-operation-input.network-information.network-id`"/>  
+              <parameter name="service-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/service-topology/'` "/>
+            </set>
+          </block>
+        </outcome>
+        <outcome value="false"> 
+          <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains"> 
+            <parameter name="source" value="`$network-topology-operation-input.network-information.onap-model-information.model-name`"/>  
+            <parameter name="target" value="FD"/>  
+            <outcome value="true"> 
+              <block atomic="true">
+                <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> 
+                  <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic.log"/>  
+                  <parameter name="field1" value="__TIMESTAMP__"/>  
+                  <parameter name="field2" value="wan-connection-topology-operation-delete"/>  
+                  <parameter name="field3" value="`$network-topology-operation-input.network-information.onap-model-information.model-name + ' delete'`"/> 
+                </record>
+                <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="connectivity" key="connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id"></delete>
+                <set> 
+                  <parameter name="service-data.networks.network_length" value="`$service-data.networks.network_length - 1`"/> 
+                </set>
+                <set> 
+                  <parameter name="service-data.networks.network[$tmp.nidx]." value=""/> 
+                </set>
+                <set> 
+                  <parameter name="networkId" value="`$network-topology-operation-input.network-information.network-id`"/>  
+                  <parameter name="service-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/service-topology/'` "/>
+                </set>
+              </block>
+            </outcome>
+            <outcome value="false"> 
+              <block></block>
+            </outcome>
+          </execute>
+        </outcome>
+      </execute>
+      <return status="success"> 
+        <parameter name="ack-final-indicator" value="Y"/>  
+        <parameter name="error-code" value="200"/>  
+        <parameter name="error-message" value="`$error-message`"/> 
+      </return>
+    </block>
+  </method>
+</service-logic>
index 9736911..4fb1839 100644 (file)
@@ -26,6 +26,7 @@
         <module>vnfapi</module>
         <module>lcm</module>
         <module>restapi-templates</module>
+        <module>datachange</module>
         <module>installer</module>
     </modules>