summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/installation.rst163
-rw-r--r--docs/release-notes.rst59
-rw-r--r--installation/src/main/properties/generic-resource-api-dg.properties2
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json3539
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.json1432
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.json458
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.json792
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json2625
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json424
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json1694
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json6084
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json4104
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml853
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.xml315
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.xml2
-rw-r--r--[-rwxr-xr-x]platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.xml3
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml10
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml1
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml2
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml110
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml76
-rw-r--r--platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json2
22 files changed, 12350 insertions, 10400 deletions
diff --git a/docs/installation.rst b/docs/installation.rst
index dfff7be4..6d441153 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -7,7 +7,7 @@ The purpose of this document is to explain how to build an ONAP SDNC Instance on
The document begins with creation of a network, and a VM.
Then, the document explains how to run the installation scripts on the VM.
Finally, the document shows how to check that the SDNC installation was completed successfully.
-This document and logs were created on 14 November, 2017.
+This document and logs were created on 22 November, 2018.
Infrastructure setup on OpenStack
---------------------------------
@@ -138,38 +138,104 @@ Add the security group to the VM in order to open needed ports for SDNC like por
Installing SDNC
---------------
-Connect to the new VM and change to user "root", and run the following commands to start the installation (the full logs are listed in the attached text file):
+Connect to the new VM and change to user "root", and run the following commands to start the installation:
::
- cloud@vm1-sdnc:~$ sudo -i
- root@vm1-sdnc:~# mkdir -p /opt/config
- root@vm1-sdnc:~#
- root@vm1-sdnc:~# echo "https://nexus.onap.org/content/sites/raw" > /opt/config/nexus_repo.txt
- root@vm1-sdnc:~# echo "nexus3.onap.org:10001" > /opt/config/nexus_docker_repo.txt
- root@vm1-sdnc:~# echo "docker" > /opt/config/nexus_username.txt
- root@vm1-sdnc:~# echo "docker" > /opt/config/nexus_password.txt
- root@vm1-sdnc:~# echo "1.1.0-SNAPSHOT" > /opt/config/artifacts_version.txt
- root@vm1-sdnc:~# echo "10.0.100.1" > /opt/config/dns_ip_addr.txt
- root@vm1-sdnc:~# wget https://git.onap.org/integration/plain/version-manifest/src/main/resources/docker-manifest.csv
- root@vm1-sdnc:~# DOCKER_SDNC_VERSION=$(grep onap/sdnc-image docker-manifest.csv | awk '{v=$1; gsub(".*/*,","",$1); print ($1) }')
- root@vm1-sdnc:~# echo $DOCKER_SDNC_VERSION > /opt/config/docker_version.txt
- root@vm1-sdnc:~# echo "master" > /opt/config/gerrit_branch.txt
- root@vm1-sdnc:~# echo "openstack" > /opt/config/cloud_env.txt
- root@vm1-sdnc:~# echo "8.8.8.8" > /opt/config/external_dns.txt
- root@vm1-sdnc:~# echo "http://gerrit.onap.org/r/sdnc/oam.git" > /opt/config/remote_repo.txt
- root@vm1-sdnc:~# DOCKER_BUILDER_VERSION=$(grep dgbuilder docker-manifest.csv | awk '{v=$1; gsub(".*/*,","",$1); print ($1) }')
- root@vm1-sdnc:~# echo $DOCKER_BUILDER_VERSION > /opt/config/dgbuilder_version.txt
- root@vm1-sdnc:~# curl -k https://nexus.onap.org/content/sites/raw/org.onap.demo/boot/1.1.0-
- SNAPSHOT/sdnc_install.sh -o /opt/sdnc_install.sh
- % Total % Received % Xferd Average Speed Time Time Time Current
+ # Login as root
+ sudo -i
+ # Clone Casablanca branch for demo Repo
+ root@sdnc-test:~# git clone https://gerrit.onap.org/r/demo -b casablanca
+ Cloning into 'demo'...
+ remote: Counting objects: 10, done
+ remote: Finding sources: 100% (10/10)
+ remote: Total 9562 (delta 0), reused 9562 (delta 0)
+ Receiving objects: 100% (9562/9562), 43.00 MiB | 13.84 MiB/s, done.
+ Resolving deltas: 100% (5922/5922), done.
+ Checking connectivity... done.
+ root@sdnc-test:~#
+
+Use below commands to update installation environment
+
+::
+
+ # Create Configuration directory
+ mkdir -p /opt/config
+ # Update configuration folder with variables used during the installation
+ awk '$1 == "artifacts_version:" {print $2}' /root/demo/heat/ONAP/onap_openstack.env > /opt/config/artifacts_version.txt
+ awk '$1 == "sdnc_repo:" {print $2}' /root/demo/heat/ONAP/onap_openstack.env > /opt/config/remote_repo.txt
+ awk '$1 == "sdnc_branch:" {print $2}' /root/demo/heat/ONAP/onap_openstack.env > /opt/config/gerrit_branch.txt
+ echo "no_proxy" > /opt/config/http_proxy.txt
+ echo "no_proxy" > /opt/config/https_proxy.txt
+ echo "https://nexus.onap.org" > /opt/config/nexus_artifact_repo.txt
+ echo "8.8.8.8" > /opt/config/external_dns.txt
+ awk '$1 == "dns_ip_addr:" {print $2}' /root/demo/heat/ONAP/onap_openstack.env > /opt/config/dns_ip_addr.txt
+ awk '$1 == "nexus_username:" {print $2}' /root/demo/heat/ONAP/onap_openstack.env > /opt/config/nexus_username.txt
+ awk '$1 == "nexus_password:" {print $2}' /root/demo/heat/ONAP/onap_openstack.env > /opt/config/nexus_password.txt
+ awk '$1 == "nexus_docker_repo:" {print $2}' /root/demo/heat/ONAP/onap_openstack.env > /opt/config/nexus_docker_repo.txt
+ awk '$1 == "sdnc_docker:" {gsub("\"","",$2);print $2}' /root/demo/heat/ONAP/onap_openstack.env > /opt/config/docker_version.txt
+ awk '$1 == "dgbuilder_docker:" {gsub("\"","",$2);print $2}' /root/demo/heat/ONAP/onap_openstack.env > /opt/config/dgbuilder_version.txt
+ # Add host name to /etc/host to avoid warnings in openstack images
+ echo 127.0.0.1 $(hostname) >> /etc/hosts
+ # Install additional components
+ apt update
+ apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual apt-transport-https ca-certificates wget git ntp ntpdate make jq unzip
+ # Enable autorestart when VM reboots
+ chmod +x /root/demo/heat/ONAP/cloud-config/serv.sh
+ cp /root/demo/heat/ONAP/cloud-config/serv.sh /etc/init.d
+ update-rc.d serv.sh defaults
+
+Install docker engine
+
+::
+
+ echo "deb https://apt.dockerproject.org/repo ubuntu-$(lsb_release -cs) main" | tee /etc/apt/sources.list.d/docker.list
+ apt-get update
+ apt-get install -y --allow-unauthenticated docker-engine
+
+Install docker-compose & complete docker configuration
+
+::
+
+ root@sdnc-test:~# mkdir -p /opt/docker
+ root@sdnc-test:~# curl -L "https://github.com/docker/compose/releases/download/1.16.1/docker-compose-$(uname -s)-$(uname -m)" > /opt/docker/docker-compose
+ % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
- 100 3701 100 3701 0 0 5196 0 --:--:-- --:--:-- --:--:-- 5190
- root@vm1-sdnc:~# cd /opt
- root@vm1-sdnc:/opt# chmod +x sdnc_install.sh
- root@vm1-sdnc:/opt# ./sdnc_install.sh
- cp: cannot stat ‘/home/ubuntu/.ssh/authorized_keys’: No such file or directory
- Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
+ 100 8648k 100 8648k 0 0 3925k 0 0:00:02 0:00:02 --:--:-- 10.3M
+ root@sdnc-test:~# chmod +x /opt/docker/docker-compose
+ # Set the MTU size of docker containers to the minimum MTU size supported by vNICs
+ root@sdnc-test:~# MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
+ root@sdnc-test:~# echo "DOCKER_OPTS=\"$DNS_FLAG--mtu=$MTU\"" >> /etc/default/docker
+ root@sdnc-test:~# cp /lib/systemd/system/docker.service /etc/systemd/system
+ root@sdnc-test:~# sed -i "/ExecStart/s/$/ --mtu=$MTU/g" /etc/systemd/system/docker.service
+ root@sdnc-test:~# systemctl daemon-reload
+ root@sdnc-test:~# service docker restart
+ # DNS IP address configuration
+ root@sdnc-test:~# echo "nameserver $(cat /opt/config/external_dns.txt)" >> /etc/resolvconf/resolv.conf.d/head
+ root@sdnc-test:~# resolvconf -u
+
+Copy & run installation scripts
+
+::
+
+ # Copy installation scripts to opt directory
+ root@sdnc-test:~# cp /root/demo/heat/ONAP/cloud-config/sdnc_install.sh /opt/sdnc_install.sh
+ root@sdnc-test:~# cp /root/demo/heat/ONAP/cloud-config/sdnc_vm_init.sh /opt/sdnc_vm_init.sh
+ # Run installation script
+ root@sdnc-test:~# cd /opt
+ root@sdnc-test:~# chmod +x sdnc_install.sh
+ root@sdnc-test:~# chmod +x sdnc_vm_init.sh
+ root@sdnc-test:~# ./sdnc_install.sh
+ Cloning into 'sdnc'...
+ remote: Finding sources: 100% (8962/8962)
+ remote: Total 8962 (delta 3999), reused 8956 (delta 3999)
+ Receiving objects: 100% (8962/8962), 702.76 MiB | 19.20 MiB/s, done.
+ Resolving deltas: 100% (3999/3999), done.
+ Checking connectivity... done.
+ Already up-to-date.
+ Login Succeeded
+ 1.4-STAGING-latest: Pulling from onap/sdnc-image
+ 18d680d61657: Pull complete
… output truncated …
The following install logs shows the containers are coming up, meaning a successful deployment of the SDNC:
@@ -177,28 +243,37 @@ The following install logs shows the containers are coming up, meaning a success
::
... truncated output ...
+ d3565df0a804: Pull complete
+ Digest: sha256:0ba03586c705ca8f79030586a579001c4fab3d6fa8c388b6c1c37c695645b78e
Status: Downloaded newer image for mysql/mysql-server:5.6
- Creating sdnc_db_container
- Creating sdnc_controller_container
+ Creating sdnc_db_container ...
+ Creating sdnc_db_container ... done
+ Creating sdnc_ansible_container ...
+ Creating sdnc_ansible_container ... done
+ Creating sdnc_controller_container ...
+ Creating sdnc_controller_container ... done
+ Creating sdnc_ueblistener_container ...
+ Creating sdnc_portal_container ...
+ Creating sdnc_dgbuilder_container ...
+ Creating sdnc_dmaaplistener_container ...
+ Creating sdnc_ueblistener_container
Creating sdnc_portal_container
- Creating sdnc_dgbuilder_container
Creating sdnc_dmaaplistener_container
- Creating sdnc_ueblistener_container
- root@vm1-sdnc:/opt#
+ Creating sdnc_dgbuilder_container ... done
Check that the containers are up and running:
::
- cloud@vm1-sdnc:~$ sudo docker container list
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 30fd20166145 onap/sdnc-dmaap-listener-image:latest "/opt/onap/sdnc/dm..." 25 minutes ago Up 25 minutes sdnc_dmaaplistener_container
- 484220f3b38a onap/sdnc-ueb-listener-image:latest "/opt/onap/sdnc/ue..." 25 minutes ago Up 25 minutes sdnc_ueblistener_container
- 674ad3ff7f24 onap/ccsdk-dgbuilder-image:latest "/bin/bash -c 'cd ..." 25 minutes ago Up 25 minutes 0.0.0.0:3000->3100/tcp sdnc_dgbuilder_container
- d2a915c8e2e5 onap/admportal-sdnc-image:latest "/bin/bash -c 'cd ..." 25 minutes ago Up 25 minutes 0.0.0.0:8843->8843/tcp sdnc_portal_container
- a65b7fb486e7 onap/sdnc-image:latest "/opt/onap/sdnc/bi..." 25 minutes ago Up 25 minutes 0.0.0.0:8201->8101/tcp, 0.0.0.0:8282->8181/tcp sdnc_controller_container
- 2b9b2f5a79f8 mysql/mysql-server:5.6 "/entrypoint.sh my..." 25 minutes ago Up 25 minutes (healthy) 0.0.0.0:32768->3306/tcp sdnc_db_container
- cloud@vm1-sdnc:~$
+ root@sdnc-test:/opt# docker container list
+ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
+ 9de71aea163a onap/ccsdk-dgbuilder-image:latest "/bin/bash -c 'cd ..." 11 minutes ago Up 11 minutes 0.0.0.0:3000->3100/tcp sdnc_dgbuilder_container
+ adffc0e70758 onap/sdnc-dmaap-listener-image:latest "/opt/onap/sdnc/dm..." 11 minutes ago Up 11 minutes sdnc_dmaaplistener_container
+ 53bfa2e31c44 onap/admportal-sdnc-image:latest "/bin/bash -c 'cd ..." 11 minutes ago Up 11 minutes 0.0.0.0:8843->8843/tcp sdnc_portal_container
+ 2fd18ceb09de onap/sdnc-image:latest "/opt/onap/sdnc/bi..." 11 minutes ago Up 11 minutes 0.0.0.0:8282->8181/tcp sdnc_controller_container
+ 3ddb85174acb onap/sdnc-ansible-server-image:latest "/opt/onap/ccsdk/s..." 11 minutes ago Up 11 minutes 0.0.0.0:32769->8000/tcp sdnc_ansible_container
+ 4a11c393ffa3 mysql/mysql-server:5.6 "/entrypoint.sh my..." 11 minutes ago Up 11 minutes (healthy) 0.0.0.0:32768->3306/tcp sdnc_db_container
+ root@sdnc-test:/opt#
Login into APIDOC Explorer and check that you can see Swagger UI interface with all the APIs:
@@ -213,5 +288,3 @@ Login into DG Builder and check that you can see the GUI:
::
DG Builder URL: http://dguser:test123@{SDNC-IP}:3000
-
-
diff --git a/docs/release-notes.rst b/docs/release-notes.rst
index 2ed8095c..75796044 100644
--- a/docs/release-notes.rst
+++ b/docs/release-notes.rst
@@ -3,8 +3,51 @@
Release Notes
=============
+Version: 1.4.3
+--------------
+
+
+:Release Date: 2018-11-30
+
+**New Features**
+
+The Casablanca release of SDNC introduces the following new features:
+
+ - Network Discovery, in support of POMBA
+ - Support for CCVPN use case
+ - Change Management enhancements
+
+**Bug Fixes**
+
+The list of bugs fixed in the SDNC Casablanca release may be found in the ONAP Jira at <https://jira.onap.org/issues/?filter=11544>
+
+
+**Known Issues**
+
+The list of known issues in the SDNC project may be found in the ONAP Jira at <https://jira.onap.org/issues/?filter=11119>
+
+
+**Security Notes**
+
+SDNC code has been formally scanned during build time using NexusIQ and all Critical vulnerabilities have been addressed, items that remain open have been assessed for risk and determined to be false positive. The SDNC open Critical security vulnerabilities and their risk assessment have been documented as part of the `project <https://wiki.onap.org/pages/viewpage.action?pageId=45307811>`_.
+
+Quick Links:
+
+- `SDNC project page <https://wiki.onap.org/display/DW/Software+Defined+Network+Controller+Project>`_
+- `Passing Badge information for SDNC <https://bestpractices.coreinfrastructure.org/en/projects/1703>`_
+- `Project Vulnerability Review Table for Casablanca Release <https://wiki.onap.org/pages/viewpage.action?pageId=45307811>`_
+
+**Upgrade Notes**
+ NA
+
+**Deprecation Notes**
+ NA
+
+**Other**
+ NA
Version: 1.3.4
+--------------
:Release Date: 2018-07-06
@@ -14,13 +57,14 @@ Version: 1.3.4
The full list of SDNC Beijing Epics and user stories can be found in the ONAP Jira at <https://jira.onap.org/issues/?filter=10791>. The
following table lists the major features included in the Beijing release.
-+-------------+-------------------------------------------------------------------------------------------------------------------------+
-| Jira # | Abstract |
-+=============+=========================================================================================================================+
-| [SDNC-278] | Change management in-place software upgrade execution using Ansible <https://jira.onap.org/browse/SDNC-278> |
-+-------------+-------------------------------------------------------------------------------------------------------------------------+
-| [SDNC-163] | Deploy a SDN-C high availability environment - Kubernetes <https://jira.onap.org/browse/SDNC-163> |
-+-------------+-------------------------------------------------------------------------------------------------------------------------+
++------------+-------------------------------------------------------------------------------------------------------------+
+| Jira # | Abstract |
++============+=============================================================================================================+
+| [SDNC-278] | Change management in-place software upgrade execution using Ansible <https://jira.onap.org/browse/SDNC-278> |
++------------+-------------------------------------------------------------------------------------------------------------+
+| [SDNC-163] | Deploy a SDN-C high availability environment - Kubernetes <https://jira.onap.org/browse/SDNC-163> |
++------------+-------------------------------------------------------------------------------------------------------------+
+
**Bug Fixes**
@@ -47,6 +91,7 @@ The list of bugs fixed in the SDNC Beijing release may be found in the ONAP Jira
| [SDNC-64] | SDNC is not setting FromApp identifier in logging MDC <https://jira.onap.org/browse/SDNC-64> |
+------------+----------------------------------------------------------------------------------------------------------------------------------+
+
**Security Notes**
SDNC code has been formally scanned during build time using NexusIQ and all Critical vulnerabilities have been addressed, items that remain open have been assessed for risk and determined to be false positive. The SDNC open Critical security vulnerabilities and their risk assessment have been documented as part of the `project <https://wiki.onap.org/pages/viewpage.action?pageId=28379582>`_.
diff --git a/installation/src/main/properties/generic-resource-api-dg.properties b/installation/src/main/properties/generic-resource-api-dg.properties
index f7fd5657..16d5987f 100644
--- a/installation/src/main/properties/generic-resource-api-dg.properties
+++ b/installation/src/main/properties/generic-resource-api-dg.properties
@@ -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/api/oof/v1/route
+restapi.connection-oof-url=http://oof-osdf:8698/api/oof/v1/route
naming.gen-name.url=http://neng-serv:8080
naming.gen-name.user=ccsdkapps
naming.gen-name.pwd=ccsdkapps
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json
index 0a979d10..f0e80c3a 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json
@@ -1,1570 +1,1969 @@
-[{
- "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
+[
+ {
+ "id": "c19fae6.fd4f15",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 156,
+ "y": 91.77774620056152,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "d41d69a6.549648"
+ ]
+ ]
+ },
+ {
+ "id": "d41d69a6.549648",
+ "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": 237.95236206054688,
+ "y": 132.01585865020752,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "c18fe015.f338a"
+ ]
+ ]
+ },
+ {
+ "id": "c18fe015.f338a",
+ "type": "method",
+ "name": "network-topology-operation",
+ "xml": "<method rpc='network-topology-operation' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 217.4286346435547,
+ "y": 182.77775192260742,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "7bb97745.a09f58"
+ ]
+ ]
+ },
+ {
+ "id": "9dc3ada0.6983e",
+ "type": "comment",
+ "name": " NETWORK-TOPOLOGY-OPERATION ",
+ "info": "",
+ "comments": "",
+ "x": 550.344856262207,
+ "y": 39.36408996582031,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "7bb97745.a09f58",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 270.0000305175781,
+ "y": 255.22122955322266,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "852074bb.b92d38",
+ "5d9f602.f8cd8a",
+ "a9b65525.597998",
+ "d2f271fb.1251e"
+ ]
+ ]
+ },
+ {
+ "id": "852074bb.b92d38",
+ "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": 474.0834045410156,
+ "y": 1281.3138828277588,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "5d9f602.f8cd8a",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 496.7142639160156,
+ "y": 485.6349239349365,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "1a068b2f.ec1c25",
+ "c32a4d78.480ba",
+ "5471c0fe.38f1d",
+ "ef9f174e.95c598",
+ "e2c37c63.95631",
+ "933967a8.61f458",
+ "1ec9b1c2.d7896e",
+ "7621e17b.a9522",
+ "a3ec8288.4b45b"
+ ]
+ ]
+ },
+ {
+ "id": "1a068b2f.ec1c25",
+ "type": "other",
+ "name": "assign",
+ "xml": "<outcome value='assign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 711.190502166748,
+ "y": 257.9206027984619,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "2d8f5a2d.0637b6"
+ ]
+ ]
+ },
+ {
+ "id": "2d8f5a2d.0637b6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 883.4286727905273,
+ "y": 255.92073154449463,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "edbce417.bd23e8"
+ ]
+ ]
+ },
+ {
+ "id": "a9b65525.597998",
+ "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": 606.9999885559082,
+ "y": 195.77775311470032,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c32a4d78.480ba",
+ "type": "other",
+ "name": "activate",
+ "xml": "<outcome value='activate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 714.0000419616699,
+ "y": 347.7777404785156,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "3e56973c.7167e8"
+ ]
+ ]
+ },
+ {
+ "id": "91cf810e.16ded",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1169.2383575439453,
+ "y": 432.77799224853516,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "510a8ba.2d0a674",
+ "c320966e.dcfd18",
+ "d140ba03.9488f8"
+ ]
+ ]
+ },
+ {
+ "id": "60aaff20.5a112",
+ "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": 2361.059928894043,
+ "y": 936.38498878479,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5471c0fe.38f1d",
+ "type": "other",
+ "name": "deactivate",
+ "xml": "<outcome value='deactivate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 708.0000343322754,
+ "y": 579.777738571167,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "ac8744c.c01bcb8"
+ ]
+ ]
+ },
+ {
+ "id": "955e93bb.ba042",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1145.2383346557617,
+ "y": 819.7780523300171,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "510a8ba.2d0a674",
+ "1d230c90.43d433",
+ "d140ba03.9488f8"
+ ]
+ ]
+ },
+ {
+ "id": "1d230c90.43d433",
+ "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": 1689.2265319824219,
+ "y": 1024.6350364685059,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ef9f174e.95c598",
+ "type": "other",
+ "name": "unassign",
+ "xml": "<outcome value='unassign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 705.0000534057617,
+ "y": 831.7777881622314,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "94357376.87b42"
+ ]
+ ]
+ },
+ {
+ "id": "94357376.87b42",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 886.2382125854492,
+ "y": 832.777910232544,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "510a8ba.2d0a674",
+ "1a2ab749.8c5249",
+ "d140ba03.9488f8"
+ ]
+ ]
+ },
+ {
+ "id": "4a11ad47.8a00e4",
+ "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": 2356.8097915649414,
+ "y": 1129.884958267212,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e2c37c63.95631",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 689.0000534057617,
+ "y": 1086.7777848243713,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "b262823a.325c8"
+ ]
+ ]
+ },
+ {
+ "id": "b262823a.325c8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 871.0000495910645,
+ "y": 1085.7777943611145,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "d2f271fb.1251e",
+ "type": "set",
+ "name": "Set final indicator to Y",
+ "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
+ "comments": "",
+ "x": 493.11109924316406,
+ "y": 1240.4722213745117,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "f1cdaba4.4b1468",
+ "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": 2225.730457305908,
+ "y": 474.5396976470947,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "1ce3aa4.6cf4256"
+ ]
+ ]
+ },
+ {
+ "id": "510a8ba.2d0a674",
+ "type": "switchNode",
+ "name": "switch service-data.networks.network_length",
+ "xml": "<switch test='`$service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1503.1946144104004,
+ "y": 442.8610897064209,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "8d10209.2f0f7e",
+ "b8f3d29c.ee262"
+ ]
+ ]
+ },
+ {
+ "id": "8d10209.2f0f7e",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1802.444492340088,
+ "y": 441.11108779907227,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "6f9c2eea.df9cc"
+ ]
+ ]
+ },
+ {
+ "id": "b8f3d29c.ee262",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1756.444522857666,
+ "y": 474.1111087799072,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "f1ccef3b.7d9c6"
+ ]
+ ]
+ },
+ {
+ "id": "1ce3aa4.6cf4256",
+ "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": 2516.159008026123,
+ "y": 473.78978157043457,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "702929b4.6bd008"
+ ]
+ ]
+ },
+ {
+ "id": "702929b4.6bd008",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2705.1113624572754,
+ "y": 474.6825199127197,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "46381e91.19efd"
+ ]
+ ]
+ },
+ {
+ "id": "46381e91.19efd",
+ "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": 2938.6431312561035,
+ "y": 473.43252754211426,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "1e4f1e53.bd5ab2",
+ "type": "comment",
+ "name": "Find the index to service data for this network - save id in tmp.nidx, save service-data",
+ "info": "",
+ "comments": "",
+ "x": 1653.555908203125,
+ "y": 408.11110973358154,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "3eb7337.d523acc",
+ "type": "comment",
+ "name": "service-data will not be stored until we have a network-id",
+ "info": "",
+ "comments": "",
+ "x": 1221.6667938232422,
+ "y": 37,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "6f9c2eea.df9cc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 1994.2220497131348,
+ "y": 439.0000858306885,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "f1ccef3b.7d9c6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1923.7144889831543,
+ "y": 473.6656856536865,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "f1cdaba4.4b1468",
+ "b70c43a4.8f446"
+ ]
+ ]
+ },
+ {
+ "id": "b70c43a4.8f446",
+ "type": "switchNode",
+ "name": "switch tmp.nidx ",
+ "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2152.7820014953613,
+ "y": 524.0228967666626,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "f9fd607e.a7a39",
+ "6229e67b.dcc688"
+ ]
+ ]
+ },
+ {
+ "id": "f043129c.def34",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 2505.638984680176,
+ "y": 519.737138748169,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "f9fd607e.a7a39",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2324.210536956787,
+ "y": 522.5942821502686,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "f043129c.def34"
+ ]
+ ]
+ },
+ {
+ "id": "c320966e.dcfd18",
+ "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": 1574.0281600952148,
+ "y": 936.336389541626,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "8fc07d73.2176e",
+ "97dffa6e.212f38"
+ ]
+ ]
+ },
+ {
+ "id": "8fc07d73.2176e",
+ "type": "outcome",
+ "name": "outcome PendingCreate",
+ "xml": "<outcome value='PendingCreate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1939.0281397501622,
+ "y": 936.3363742828369,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "60aaff20.5a112"
+ ]
+ ]
+ },
+ {
+ "id": "97dffa6e.212f38",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1889.0281867980957,
+ "y": 976.336404800415,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "1160d210.ecd43e"
+ ]
+ ]
+ },
+ {
+ "id": "1160d210.ecd43e",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 2059.0281867980957,
+ "y": 976.336404800415,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "1a2ab749.8c5249",
+ "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": 1563.6311721801758,
+ "y": 1131.4891605377197,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "f2a9aed4.f72e6",
+ "873cbb6b.299728",
+ "adb06f51.82448"
+ ]
+ ]
+ },
+ {
+ "id": "f2a9aed4.f72e6",
+ "type": "outcome",
+ "name": "outcome PendingCreate",
+ "xml": "<outcome value='PendingCreate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1923.6311416625977,
+ "y": 1131.4891910552979,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "4a11ad47.8a00e4"
+ ]
+ ]
+ },
+ {
+ "id": "873cbb6b.299728",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1879.3810653686523,
+ "y": 1202.9892539978027,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "4806b0a4.c6ffb"
+ ]
+ ]
+ },
+ {
+ "id": "4806b0a4.c6ffb",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 2070.714485168457,
+ "y": 1201.6558828353882,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "adb06f51.82448",
+ "type": "outcome",
+ "name": "outcome PendingDelete",
+ "xml": "<outcome value='PendingDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1926.8613662719727,
+ "y": 1169.3363590240479,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "4a11ad47.8a00e4"
+ ]
+ ]
+ },
+ {
+ "id": "933967a8.61f458",
+ "type": "other",
+ "name": "changeassign",
+ "xml": "<outcome value='changeassign'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 716.000072479248,
+ "y": 482.77777099609375,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "cab994c6.fcf578"
+ ]
+ ]
+ },
+ {
+ "id": "cab994c6.fcf578",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1088.2500114440918,
+ "y": 479.7777624130249,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "510a8ba.2d0a674",
+ "9f741f0f.86e65"
+ ]
+ ]
+ },
+ {
+ "id": "c5852511.ea0668",
+ "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": 1857.0001945495605,
+ "y": 177.77776336669922,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "edbce417.bd23e8",
+ "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": 1152.9682502746582,
+ "y": 115.72915458679199,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "5138e78a.bf2918",
+ "ce27f2ab.d7a5d",
+ "c8c8edc5.558e4",
+ "ae55af74.56f3c"
+ ]
+ ]
+ },
+ {
+ "id": "5138e78a.bf2918",
+ "type": "outcome",
+ "name": "outcome PendingCreate",
+ "xml": "<outcome value='PendingCreate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1538.9682960510254,
+ "y": 135.72913646697998,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "c7dca56e.257ca8"
+ ]
+ ]
+ },
+ {
+ "id": "ce27f2ab.d7a5d",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1486.9682922363281,
+ "y": 177.72916793823242,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "c5852511.ea0668"
+ ]
+ ]
+ },
+ {
+ "id": "c7dca56e.257ca8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 1813.9685173034668,
+ "y": 131.72918510437012,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "ae55af74.56f3c",
+ "type": "outcome",
+ "name": "outcome PendingDelete",
+ "xml": "<outcome value='PendingDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1537.0000343322754,
+ "y": 100.77775192260742,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "c7dca56e.257ca8"
+ ]
+ ]
+ },
+ {
+ "id": "c8c8edc5.558e4",
+ "type": "outcome",
+ "name": "outcome Created",
+ "xml": "<outcome value='Created'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1517.000072479248,
+ "y": 65.77775382995605,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "c7dca56e.257ca8"
+ ]
+ ]
+ },
+ {
+ "id": "9f741f0f.86e65",
+ "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": 1666.2464065551758,
+ "y": 868.2738800048828,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d140ba03.9488f8",
+ "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": 1578.438648223877,
+ "y": 700.2787666320801,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "19350a2.00944f6",
+ "2ac3adf2.61df12"
+ ]
+ ]
+ },
+ {
+ "id": "19350a2.00944f6",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1865.1885299682617,
+ "y": 738.4454336166382,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "c6e7b54f.a386d8"
+ ]
+ ]
+ },
+ {
+ "id": "2ac3adf2.61df12",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1862.85542678833,
+ "y": 705.4453077316284,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "4c785d2a.b22b24"
+ ]
+ ]
+ },
+ {
+ "id": "4c785d2a.b22b24",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 2023.1886558532715,
+ "y": 702.4453649520874,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "7082d0a5.d6ea",
+ "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": 2358.2642707824707,
+ "y": 731.7111825942993,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "e3d6d488.f4d528",
+ "bf586b63.f59aa8"
+ ]
+ ]
+ },
+ {
+ "id": "e3d6d488.f4d528",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2717.513961791992,
+ "y": 688.7111854553223,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "ada3072f.b79978"
+ ]
+ ]
+ },
+ {
+ "id": "bf586b63.f59aa8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2697.513961791992,
+ "y": 723.7111854553223,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "8992cd4d.3eddd"
+ ]
+ ]
+ },
+ {
+ "id": "c6e7b54f.a386d8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1999.2997856140137,
+ "y": 738.889838218689,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "7082d0a5.d6ea"
+ ]
+ ]
+ },
+ {
+ "id": "74dc02ac.b7191c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4121.507778167725,
+ "y": 666.9217891693115,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "e21a7b71.ed73e8"
+ ]
+ ]
+ },
+ {
+ "id": "a41523ea.9b6f2",
+ "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": 4564.039745330811,
+ "y": 666.6718139648438,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "e21a7b71.ed73e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4270.126216888428,
+ "y": 666.778974533081,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "a41523ea.9b6f2"
+ ]
+ ]
+ },
+ {
+ "id": "b5ea24ff.8906d8",
+ "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": 3304.3761825561523,
+ "y": 727.0287618637085,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "f7b04893.75f7b8"
+ ]
+ ]
+ },
+ {
+ "id": "f7b04893.75f7b8",
+ "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": 3749.8047790527344,
+ "y": 726.7789306640625,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "74dc02ac.b7191c"
+ ]
+ ]
+ },
+ {
+ "id": "8992cd4d.3eddd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2916.360061645508,
+ "y": 724.9046869277954,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "b5ea24ff.8906d8"
+ ]
+ ]
+ },
+ {
+ "id": "ada3072f.b79978",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 2909.0636138916016,
+ "y": 688.2787523269653,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "6229e67b.dcc688",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2323.7461891174316,
+ "y": 553.5238647460938,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "3eb1e370.0868ec"
+ ]
+ ]
+ },
+ {
+ "id": "3eb1e370.0868ec",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n",
+ "comments": "",
+ "x": 2480.7461891174316,
+ "y": 554.5238647460938,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "3e56973c.7167e8",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 905.1111869812012,
+ "y": 340.2326765060425,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "35e94c82.e258f4",
+ "3e5ff33f.47870c",
+ "e06b8831.66ddf8",
+ "28b987dd.785e58"
+ ]
+ ]
+ },
+ {
+ "id": "35e94c82.e258f4",
+ "type": "outcome",
+ "name": "ActivateDCINetworkInstance",
+ "xml": "<outcome value='ActivateDCINetworkInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1201.4444122314453,
+ "y": 285.23250579833984,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "155e6231.f6ae8e"
+ ]
+ ]
+ },
+ {
+ "id": "155e6231.f6ae8e",
+ "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": 1716.4444885253906,
+ "y": 284.8993377685547,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3e5ff33f.47870c",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1038.4445304870605,
+ "y": 389.8992614746094,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "dd8ef6f1.b78588"
+ ]
+ ]
+ },
+ {
+ "id": "ac8744c.c01bcb8",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 909.6667366027832,
+ "y": 581.6770572662354,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "4bae5f0b.cedde",
+ "675d1751.d19a88",
+ "8a4a4e41.b5515",
+ "59dbfd81.6f2924"
+ ]
+ ]
+ },
+ {
+ "id": "4bae5f0b.cedde",
+ "type": "outcome",
+ "name": "DeactivateSOTNConnectivityInstance",
+ "xml": "<outcome value='DeactivateSOTNConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1199.4446144104004,
+ "y": 525.8991947174072,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "64bcaf0e.b9bc4"
+ ]
+ ]
+ },
+ {
+ "id": "675d1751.d19a88",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1058.8897018432617,
+ "y": 672.5908031463623,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "3130c731.b83a38"
+ ]
+ ]
+ },
+ {
+ "id": "64bcaf0e.b9bc4",
+ "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": 1690.8018798828125,
+ "y": 524.1825675964355,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1ec9b1c2.d7896e",
+ "type": "other",
+ "name": "create",
+ "xml": "<outcome value='create'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 695.3335037231445,
+ "y": 921.0105962753296,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "d8080c3a.ae819"
+ ]
+ ]
+ },
+ {
+ "id": "d8080c3a.ae819",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 895.6473236083984,
+ "y": 920.7882690429688,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "36fb281c.5a7318",
+ "81edc8f4.ef4398",
+ "7cf33cd4.4d9ff4"
+ ]
+ ]
+ },
+ {
+ "id": "7621e17b.a9522",
+ "type": "other",
+ "name": "delete",
+ "xml": "<outcome value='delete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 693.3335075378418,
+ "y": 998.0106000900269,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "f6b6bca8.c4f78"
+ ]
+ ]
+ },
+ {
+ "id": "f6b6bca8.c4f78",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 895.6217651367188,
+ "y": 999.071400642395,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "f30dd932.31da78",
+ "5aa4890e.c66fd8",
+ "9d76e3e7.e3dc5"
+ ]
+ ]
+ },
+ {
+ "id": "17812524.ab993b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1627.4448852539062,
+ "y": 1411.8994827270508,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "ee06cc7e.4911c"
+ ]
+ ]
+ },
+ {
+ "id": "c39b7ecf.bd11",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1593.8891830444336,
+ "y": 1707.4552936553955,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "389a961d.5233ca"
+ ]
+ ]
+ },
+ {
+ "id": "ee06cc7e.4911c",
+ "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": 1993.111328125,
+ "y": 1408.3441352844238,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "389a961d.5233ca",
+ "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": 1958.8891067504883,
+ "y": 1706.4552221298218,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "36fb281c.5a7318",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1457.6473083496094,
+ "y": 1357.677001953125,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "60512a1c.621c74"
+ ]
+ ]
+ },
+ {
+ "id": "81edc8f4.ef4398",
+ "type": "outcome",
+ "name": "CreateSOTNConnectivityInstance",
+ "xml": "<outcome value='CreateSOTNConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1537.314037322998,
+ "y": 1258.4549032608047,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "97483d5f.4254d"
+ ]
+ ]
+ },
+ {
+ "id": "97483d5f.4254d",
+ "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": 2016.2028541564941,
+ "y": 1260.6770855346695,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5aa4890e.c66fd8",
+ "type": "outcome",
+ "name": "DeleteSOTNConnectivityInstance",
+ "xml": "<outcome value='DeleteSOTNConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1530.7332000732422,
+ "y": 1515.6271324157715,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "976fa25c.f8c0f"
+ ]
+ ]
+ },
+ {
+ "id": "976fa25c.f8c0f",
+ "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": 1997.6220169067383,
+ "y": 1517.8493146896362,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f30dd932.31da78",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1449.0663375854492,
+ "y": 1626.8492712974548,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "b8c67313.e4837"
+ ]
+ ]
+ },
+ {
+ "id": "e06b8831.66ddf8",
+ "type": "outcome",
+ "name": "ActivateSOTNConnectivityInstance",
+ "xml": "<outcome value='ActivateSOTNConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1221.4445037841797,
+ "y": 236.01041412353516,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "ca6079d7.52d3f8"
+ ]
+ ]
+ },
+ {
+ "id": "ca6079d7.52d3f8",
+ "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": 1675.6667175292969,
+ "y": 237.24494552612305,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8a4a4e41.b5515",
+ "type": "outcome",
+ "name": "DeActivateDCINetworkInstance",
+ "xml": "<outcome value='DeActivateDCINetworkInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1179.5451545715332,
+ "y": 568.9999942779541,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "dfad3438.d76388"
+ ]
+ ]
+ },
+ {
+ "id": "dfad3438.d76388",
+ "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": 1719.5455322265625,
+ "y": 572.666805267334,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "28b987dd.785e58",
+ "type": "outcome",
+ "name": "ActivateSDWANConnectivityInstance",
+ "xml": "<outcome value='ActivateSDWANConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1222.9896392822266,
+ "y": 336.0000190734863,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "ba274317.79471"
+ ]
+ ]
+ },
+ {
+ "id": "ba274317.79471",
+ "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": 1742.9898376464844,
+ "y": 330.66687393188477,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "59dbfd81.6f2924",
+ "type": "outcome",
+ "name": "DeactivateSDWANConnectivityInstance",
+ "xml": "<outcome value='DeactivateSDWANConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1196.9895935058594,
+ "y": 622,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "3ea2e33f.e9bfac"
+ ]
+ ]
+ },
+ {
+ "id": "3ea2e33f.e9bfac",
+ "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": 1710.9898681640625,
+ "y": 619.6668519973755,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7cf33cd4.4d9ff4",
+ "type": "outcome",
+ "name": "CreateSDWANConnectivityInstance",
+ "xml": "<outcome value='CreateSDWANConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1542.9895935058594,
+ "y": 1307,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "229eb427.523f3c"
+ ]
+ ]
+ },
+ {
+ "id": "229eb427.523f3c",
+ "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": 1985.9897842407227,
+ "y": 1304.6668286323547,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9d76e3e7.e3dc5",
+ "type": "outcome",
+ "name": "DeleteSDWANConnectivityInstance",
+ "xml": "<outcome value='DeleteSDWANConnectivityInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1531.989658355713,
+ "y": 1566.0001797676086,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "8830d064.6046"
+ ]
+ ]
+ },
+ {
+ "id": "8830d064.6046",
+ "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": 1998.878475189209,
+ "y": 1568.2223620414734,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dd8ef6f1.b78588",
+ "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": 1228.8954391479492,
+ "y": 375.0065197944641,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "4305e223.93e80c",
+ "c6d3360e.e46bb8"
+ ]
+ ]
+ },
+ {
+ "id": "4305e223.93e80c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1434.895492553711,
+ "y": 370.11759185791016,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "efbbd6dd.74a268"
+ ]
+ ]
+ },
+ {
+ "id": "efbbd6dd.74a268",
+ "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": 1819.8955917358398,
+ "y": 372.1176052093506,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c6d3360e.e46bb8",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1007.1176147460938,
+ "y": 437.0064754486084,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "91cf810e.16ded"
+ ]
+ ]
+ },
+ {
+ "id": "3130c731.b83a38",
+ "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": 1244.6732025146484,
+ "y": 663.2287330627441,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "ac9a367d.5109a8",
+ "d701c806.67d1c8"
+ ]
+ ]
+ },
+ {
+ "id": "ac9a367d.5109a8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1445.6733589172363,
+ "y": 662.339765548706,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "85b225fb.948668"
+ ]
+ ]
+ },
+ {
+ "id": "85b225fb.948668",
+ "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": 1811.673324584961,
+ "y": 659.3397808074951,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d701c806.67d1c8",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1091.673252105713,
+ "y": 726.1176118850708,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "955e93bb.ba042"
+ ]
+ ]
+ },
+ {
+ "id": "60512a1c.621c74",
+ "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": 1642.895492553711,
+ "y": 1363.6731243133545,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "dbd50474.6c2188",
+ "8590bbfd.3e1818"
+ ]
+ ]
+ },
+ {
+ "id": "8590bbfd.3e1818",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1449.8954315185547,
+ "y": 1410.562126159668,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "17812524.ab993b"
+ ]
+ ]
+ },
+ {
+ "id": "dbd50474.6c2188",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1848.895565032959,
+ "y": 1355.7841815948486,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "1cb02075.d69fc"
+ ]
+ ]
+ },
+ {
+ "id": "1cb02075.d69fc",
+ "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": 2207.895492553711,
+ "y": 1356.7842350006104,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b8c67313.e4837",
+ "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": 1655.56201171875,
+ "y": 1635.0065059661865,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "3f6aae39.2b27c2",
+ "d69b4681.c4d078"
+ ]
+ ]
+ },
+ {
+ "id": "d69b4681.c4d078",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1440.562026977539,
+ "y": 1710.895429611206,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "c39b7ecf.bd11"
+ ]
+ ]
+ },
+ {
+ "id": "3f6aae39.2b27c2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1856.562168121338,
+ "y": 1634.1175384521484,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "2b872d7d.587eb2"
+ ]
+ ]
+ },
+ {
+ "id": "2b872d7d.587eb2",
+ "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": 2222.5621337890625,
+ "y": 1631.1175537109375,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "34673e4d.5f2892",
+ "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": 544.7866706848145,
+ "y": 1191.9571886062622,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "8cdfa6fc.6f3bc8",
+ "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": 502.5009765625,
+ "y": 1146.528715133667,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "e2dc53b9.ec394",
+ "type": "set",
+ "name": "set networkId",
+ "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
+ "comments": "",
+ "x": 496.7866096496582,
+ "y": 1109.385823249817,
+ "z": "b2ff82f0.56033",
+ "wires": []
+ },
+ {
+ "id": "a3ec8288.4b45b",
+ "type": "other",
+ "name": "reoptimize",
+ "xml": "<outcome value='reoptimize'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 693,
+ "y": 1034,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "ee626a29.366388"
+ ]
+ ]
+ },
+ {
+ "id": "ee626a29.366388",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 888,
+ "y": 1038,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "5c17b026.118b2"
+ ]
+ ]
+ },
+ {
+ "id": "5c17b026.118b2",
+ "type": "outcome",
+ "name": "ReoptimizeSOTNInstance",
+ "xml": "<outcome value='ReoptimizeSOTNInstance'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1540,
+ "y": 1781,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ [
+ "674f0e13.78aad"
+ ]
+ ]
+ },
+ {
+ "id": "674f0e13.78aad",
+ "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": 1955,
+ "y": 1779,
+ "z": "b2ff82f0.56033",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.json
index 8df5b59d..b83f7f5e 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.json
@@ -1,57 +1,57 @@
[
{
- "id": "77c2b18.8d31ed",
+ "id": "39b306a6.ed3522",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 112,
- "y": 53.57143306732178,
- "z": "9db1531d.07a1a",
+ "x": 100,
+ "y": 63.57143306732178,
+ "z": "1e0169fe.460196",
"wires": [
[
- "9dcfa1bf.c57ff"
+ "79f0b111.72d778"
]
]
},
{
- "id": "f8a5c87f.00d498",
+ "id": "1b629c80.7881d4",
"type": "method",
"name": "method self-serve-netbox-ip-assign",
"xml": "<method rpc='self-serve-netbox-ip-assign' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 247.7857208251953,
- "y": 110.69842147827148,
- "z": "9db1531d.07a1a",
+ "x": 235.7857208251953,
+ "y": 120.69842147827148,
+ "z": "1e0169fe.460196",
"wires": [
[
- "547eae19.add57"
+ "56a052c7.058c9c"
]
]
},
{
- "id": "547eae19.add57",
+ "id": "56a052c7.058c9c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 141.32144165039062,
- "y": 197.0000400543213,
- "z": "9db1531d.07a1a",
+ "x": 129.32144165039062,
+ "y": 207.0000400543213,
+ "z": "1e0169fe.460196",
"wires": [
[
- "74f4f85d.362368",
- "511e7db4.d38c5c",
- "1c580da3.ca9442",
- "9b5b9dd.e182f6",
- "727a4c78.25da9c"
+ "90086e75.cd6fc",
+ "3efa365b.993a9a",
+ "7e104793.732a5",
+ "f91de1d4.ae1798",
+ "2734c8ea.c23828"
]
]
},
{
- "id": "9dcfa1bf.c57ff",
+ "id": "79f0b111.72d778",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -59,1727 +59,1791 @@
"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": 384.8571472167969,
- "y": 53,
- "z": "9db1531d.07a1a",
+ "x": 372.8571472167969,
+ "y": 63,
+ "z": "1e0169fe.460196",
"wires": [
[
- "f8a5c87f.00d498"
+ "1b629c80.7881d4"
]
]
},
{
- "id": "74f4f85d.362368",
+ "id": "90086e75.cd6fc",
"type": "switchNode",
"name": "switch: ss.capability-name",
"xml": "<switch test='`$ss.capability-name`'>\n",
"comments": "",
"outputs": 1,
- "x": 399.4999694824219,
- "y": 200.82144165039062,
- "z": "9db1531d.07a1a",
+ "x": 387.4999694824219,
+ "y": 210.82144165039062,
+ "z": "1e0169fe.460196",
"wires": [
[
- "b9e21b14.67ef6"
+ "b10180d1.330c9"
]
]
},
{
- "id": "b9e21b14.67ef6",
+ "id": "b10180d1.330c9",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>",
"outputs": 1,
- "x": 624.4999923706055,
- "y": 201.32144021987915,
- "z": "9db1531d.07a1a",
+ "x": 612.4999923706055,
+ "y": 211.32144021987915,
+ "z": "1e0169fe.460196",
"wires": [
[
- "73fe504e.4705c"
+ "66f17fa3.bde278"
]
]
},
{
- "id": "73fe504e.4705c",
+ "id": "66f17fa3.bde278",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status=\"failure\">\n\t<parameter name=\"ack-final\" value=\"Y\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"ss.capability-name is null\" />\n",
"comments": "",
- "x": 784.4166641235352,
- "y": 201.43253898620605,
- "z": "9db1531d.07a1a",
+ "x": 772.4166641235352,
+ "y": 211.43253898620605,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "511e7db4.d38c5c",
+ "id": "3efa365b.993a9a",
"type": "switchNode",
"name": "switch: ss.capability-action",
"xml": "<switch test='`$ss.capability-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 402.74996185302734,
- "y": 276.82143688201904,
- "z": "9db1531d.07a1a",
+ "x": 390.74996185302734,
+ "y": 286.82143688201904,
+ "z": "1e0169fe.460196",
"wires": [
[
- "44dc8d7e.430a74"
+ "8acb2cf7.4ff328"
]
]
},
{
- "id": "44dc8d7e.430a74",
+ "id": "8acb2cf7.4ff328",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>",
"comments": "",
"outputs": 1,
- "x": 626.2499618530273,
- "y": 277.07143688201904,
- "z": "9db1531d.07a1a",
+ "x": 614.2499618530273,
+ "y": 287.07143688201904,
+ "z": "1e0169fe.460196",
"wires": [
[
- "1a43de2d.0a450a"
+ "307ed0c1.fb7998"
]
]
},
{
- "id": "1a43de2d.0a450a",
+ "id": "307ed0c1.fb7998",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status=\"failure\">\n\t<parameter name=\"ack-final\" value=\"Y\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"ss.capability-action is null\" />\n",
"comments": "",
- "x": 786.166633605957,
- "y": 277.18253564834595,
- "z": "9db1531d.07a1a",
+ "x": 774.166633605957,
+ "y": 287.18253564834595,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "19870db6.43192a",
- "type": "outcome",
- "name": "unassign",
- "xml": "<outcome value='unassign'>",
- "comments": "",
- "outputs": 1,
- "x": 1251.8930969238281,
- "y": 3041.6666650772095,
- "z": "9db1531d.07a1a",
- "wires": [
- [
- "d275ec9.837569"
- ]
- ]
- },
- {
- "id": "1c580da3.ca9442",
+ "id": "7e104793.732a5",
"type": "call",
"name": "call self-serve-capability-param-resolution",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 453.41680908203125,
- "y": 351.82147216796875,
- "z": "9db1531d.07a1a",
+ "x": 441.41680908203125,
+ "y": 361.82147216796875,
+ "z": "1e0169fe.460196",
"wires": [
[
- "5d40b27c.221a9c"
+ "47c181e5.fedda"
]
]
},
{
- "id": "5d40b27c.221a9c",
+ "id": "47c181e5.fedda",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 757.6667060852051,
- "y": 353.821475982666,
- "z": "9db1531d.07a1a",
+ "x": 745.6667060852051,
+ "y": 363.821475982666,
+ "z": "1e0169fe.460196",
"wires": [
[
- "edcc63af.4dd9d8"
+ "fe0e4241.5b80e8"
]
]
},
{
- "id": "edcc63af.4dd9d8",
+ "id": "fe0e4241.5b80e8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status=\"failure\">\n\t<parameter name=\"ack-final\" value=\"Y\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"`'Not all assignments are resolved' + $error-message`\" />\n",
"comments": "",
- "x": 916.4166870117188,
- "y": 353.82147216796875,
- "z": "9db1531d.07a1a",
+ "x": 904.4166870117188,
+ "y": 363.82147216796875,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "4f9c6ac7.4bbeac",
+ "id": "a92c49b1.faf6c",
"type": "set",
"name": "set tmp.ss.param.capability-name",
"xml": "<set>\n<parameter name='tmp.ss.param.capability-name' \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.capability-name`' />\n",
"comments": "",
- "x": 1199.0635833740234,
- "y": 1963.7697825431824,
- "z": "9db1531d.07a1a",
+ "x": 1187.0635833740234,
+ "y": 1973.7697825431824,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "c92d4312.5079b8",
+ "id": "ca92a840.cb9a5",
"type": "for",
"name": "for pidx in param_length",
"xml": "<for index=\"pidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`\">",
"comments": "",
"outputs": 1,
- "x": 909.2778091430664,
- "y": 1963.8412528038025,
- "z": "9db1531d.07a1a",
+ "x": 897.2778091430664,
+ "y": 1973.8412528038025,
+ "z": "1e0169fe.460196",
"wires": [
[
- "f2a77014.d729d8",
- "864fa674.d2c07",
- "4f9c6ac7.4bbeac"
+ "864a8266.73cc7",
+ "b15a003.31b4b",
+ "a92c49b1.faf6c"
]
]
},
{
- "id": "864fa674.d2c07",
+ "id": "b15a003.31b4b",
"type": "switchNode",
"name": "switch: capability-name - ss vs param",
"xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
"comments": "",
"outputs": 1,
- "x": 1212.139045715332,
- "y": 2045.119035243988,
- "z": "9db1531d.07a1a",
+ "x": 1200.139045715332,
+ "y": 2055.119035243988,
+ "z": "1e0169fe.460196",
"wires": [
[
- "27ca1b50.7b7b94"
+ "5f27f686.c72e78"
]
]
},
{
- "id": "27ca1b50.7b7b94",
+ "id": "5f27f686.c72e78",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1450.8890533447266,
- "y": 2044.869035243988,
- "z": "9db1531d.07a1a",
+ "x": 1438.8890533447266,
+ "y": 2054.869035243988,
+ "z": "1e0169fe.460196",
"wires": [
[
- "8094ff69.1f8708"
+ "b6e45a86.008848"
]
]
},
{
- "id": "e4dea9e2.e240e8",
+ "id": "52a3fa95.c6446c",
"type": "switchNode",
"name": "switch: resource-key[].name",
"xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].name`'>\n",
"comments": "",
"outputs": 1,
- "x": 1700.7783126831055,
- "y": 2295.1630301475525,
- "z": "9db1531d.07a1a",
+ "x": 1688.7783126831055,
+ "y": 2305.1630301475525,
+ "z": "1e0169fe.460196",
"wires": [
[
- "33db91f0.e9f01e",
- "e6bd6a68.08413",
- "5e2abf9b.b85b4",
- "a20a3dc.5fc3fc",
- "82eaeb00.f8a53"
+ "12d1fbad.020824",
+ "31df3307.8fd214",
+ "8556b639.07cc4",
+ "32ab7f7f.33dea",
+ "28ed7d99.2fd922"
]
]
},
{
- "id": "e6bd6a68.08413",
+ "id": "31df3307.8fd214",
"type": "outcome",
"name": "service-instance-id",
"xml": "<outcome value='service-instance-id'>\n",
"comments": "",
"outputs": 1,
- "x": 1972.167221069336,
- "y": 2294.6352486610413,
- "z": "9db1531d.07a1a",
+ "x": 1960.167221069336,
+ "y": 2304.6352486610413,
+ "z": "1e0169fe.460196",
"wires": [
[
- "ef960f90.e62e4"
+ "15e0f6f3.464d99"
]
]
},
{
- "id": "ef960f90.e62e4",
+ "id": "15e0f6f3.464d99",
"type": "set",
"name": "set tmp.ss.service-instance-id",
"xml": "<set>\n<parameter name='tmp.ss.service-instance-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
"comments": "",
- "x": 2238.417221069336,
- "y": 2294.3852486610413,
- "z": "9db1531d.07a1a",
+ "x": 2226.417221069336,
+ "y": 2304.3852486610413,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "b434a262.2a412",
+ "id": "702f24b8.ab2b14",
"type": "set",
"name": "set service-data...param[].value = ip-address",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].value' \n\tvalue='`$ip[0]`' />\n",
"comments": "",
- "x": 2534.960205078125,
- "y": 2879.62744140625,
- "z": "9db1531d.07a1a",
+ "x": 3014.388885498047,
+ "y": 2875.3416357040405,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "7e13641e.d9c954",
+ "id": "daef3d9b.976aa",
"type": "update",
"name": "get-resource IPAM_IP_ASSIGNEMENT",
"xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n\tkey='SELECT * from IPAM_IP_ASSIGNEMENT \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id' >",
"comments": "",
"outputs": 1,
- "x": 1727.3771667480469,
- "y": 3040.488076210022,
- "z": "9db1531d.07a1a",
+ "x": 2188.472640991211,
+ "y": 2976.2020263671875,
+ "z": "1e0169fe.460196",
"wires": [
[
- "986620e4.a7ba3",
- "95406bea.6b1b6"
+ "c57f67d2.fa9d8",
+ "b7a6dad5.6dc8c"
]
]
},
{
- "id": "986620e4.a7ba3",
+ "id": "c57f67d2.fa9d8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2021.9645042419434,
- "y": 3041.4881093502045,
- "z": "9db1531d.07a1a",
+ "x": 2483.0599784851074,
+ "y": 2977.20205950737,
+ "z": "1e0169fe.460196",
"wires": [
[
- "d043ccbb.6e195"
+ "e5ae09f3.4e9b7"
]
]
},
{
- "id": "d275ec9.837569",
+ "id": "9e365126.584608",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1421.2144622802734,
- "y": 3042.1310205459595,
- "z": "9db1531d.07a1a",
+ "x": 1882.3099365234375,
+ "y": 2977.844970703125,
+ "z": "1e0169fe.460196",
"wires": [
[
- "7e13641e.d9c954"
+ "daef3d9b.976aa"
]
]
},
{
- "id": "eabe3654.2861f",
+ "id": "b0815fb0.6c8c58",
"type": "for",
"name": "for kidx in resource-key_length",
"xml": "<for index=\"kidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key_length`\">",
"comments": "",
"outputs": 1,
- "x": 1417.6393966674805,
- "y": 2293.0241141319275,
- "z": "9db1531d.07a1a",
+ "x": 1405.6393966674805,
+ "y": 2303.0241141319275,
+ "z": "1e0169fe.460196",
"wires": [
[
- "e4dea9e2.e240e8"
+ "52a3fa95.c6446c"
]
]
},
{
- "id": "3a044c4d.1e750c",
+ "id": "9d646260.b0f88",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 625.5358581542969,
- "y": 1961.9642333984375,
- "z": "9db1531d.07a1a",
+ "x": 613.5358581542969,
+ "y": 1971.9642333984375,
+ "z": "1e0169fe.460196",
"wires": [
[
- "c92d4312.5079b8",
- "4ffc883e.37e15"
+ "ca92a840.cb9a5",
+ "dddd3293.e9766"
]
]
},
{
- "id": "776bc197.c4cea8",
+ "id": "12508de3.d24ce2",
"type": "update",
"name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
"xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"UPDATE IPAM_IP_ASSIGNEMENT set ip_status = $tmp.status \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id\" >",
"comments": "",
"outputs": 1,
- "x": 2550.274139404297,
- "y": 3132.166787147522,
- "z": "9db1531d.07a1a",
+ "x": 3011.369613647461,
+ "y": 3067.8807373046875,
+ "z": "1e0169fe.460196",
"wires": [
[
- "b463a755.296e38"
+ "e08179b3.30edc"
]
]
},
{
- "id": "e61cd52d.9b53c8",
+ "id": "86f22edb.c1e37",
"type": "set",
"name": "set status = PENDING_DELETE",
"xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
"comments": "",
- "x": 2460.190643310547,
- "y": 3090.500039100647,
- "z": "9db1531d.07a1a",
+ "x": 2921.286117553711,
+ "y": 3026.2139892578125,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "b463a755.296e38",
+ "id": "e08179b3.30edc",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2857.9405975341797,
- "y": 3132.7501106262207,
- "z": "9db1531d.07a1a",
+ "x": 3319.0360717773438,
+ "y": 3068.4640607833862,
+ "z": "1e0169fe.460196",
"wires": [
[
- "623c3038.c77a88"
+ "a80cdb69.81f35"
]
]
},
{
- "id": "623c3038.c77a88",
+ "id": "a80cdb69.81f35",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Error updating NETBOX_IP_ASSIGNMENTS table to unassign ip with external_key=' + $tmp.ss.external-key + ' and service_instance_id=' + $tmp.ss.service-instance-id`\" />\n",
"comments": "",
- "x": 3036.940887451172,
- "y": 3132.5597314834595,
- "z": "9db1531d.07a1a",
+ "x": 3498.036361694336,
+ "y": 3068.273681640625,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "46730243.5a19d4",
+ "id": "2ba87204.72c89e",
"type": "execute",
"name": "execute Netbox unassign IP addresses",
"xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"unassignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
"comments": "",
"outputs": 1,
- "x": 2480.2740173339844,
- "y": 3178.416848182678,
- "z": "9db1531d.07a1a",
+ "x": 2941.3694915771484,
+ "y": 3114.1307983398438,
+ "z": "1e0169fe.460196",
"wires": [
[
- "41c93106.7eb858",
- "7f8823ca.cd3dd4"
+ "d761dd7d.5daac",
+ "70a92bf3.d01214"
]
]
},
{
- "id": "41c93106.7eb858",
+ "id": "d761dd7d.5daac",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2723.6072845458984,
- "y": 3178.4167976379395,
- "z": "9db1531d.07a1a",
+ "x": 3184.7027587890625,
+ "y": 3114.130747795105,
+ "z": "1e0169fe.460196",
"wires": [
[
- "572457e6.ddb978"
+ "ac3185a3.0297d8"
]
]
},
{
- "id": "572457e6.ddb978",
+ "id": "ac3185a3.0297d8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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 in NetboxClient#unassignIPAddress with external-key='+ $tmp.ss.external-key`\" />\n",
"comments": "",
- "x": 2885.6073112487793,
- "y": 3178.226532936096,
- "z": "9db1531d.07a1a",
+ "x": 3346.7027854919434,
+ "y": 3113.9404830932617,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "a33aa0af.bd279",
+ "id": "9487046d.9fad68",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2200.893051147461,
- "y": 3089.916666984558,
- "z": "9db1531d.07a1a",
+ "x": 2661.988525390625,
+ "y": 3025.6306171417236,
+ "z": "1e0169fe.460196",
"wires": [
[
- "e61cd52d.9b53c8",
- "776bc197.c4cea8",
- "46730243.5a19d4"
+ "86f22edb.c1e37",
+ "12508de3.d24ce2",
+ "2ba87204.72c89e"
]
]
},
{
- "id": "4ffc883e.37e15",
+ "id": "dddd3293.e9766",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'SS: pidx: ' + $pidx`\"/>\n",
"comments": "",
"outputs": 1,
- "x": 861.3414611816406,
- "y": 2018.9087219238281,
- "z": "9db1531d.07a1a",
+ "x": 849.3414611816406,
+ "y": 2028.9087219238281,
+ "z": "1e0169fe.460196",
"wires": [
[]
]
},
{
- "id": "33db91f0.e9f01e",
+ "id": "12d1fbad.020824",
"type": "outcome",
"name": "vf-module-id",
"xml": "<outcome value='vf-module-id'>\n",
"comments": "",
"outputs": 1,
- "x": 1954.000228881836,
- "y": 2340.885187625885,
- "z": "9db1531d.07a1a",
+ "x": 1942.000228881836,
+ "y": 2350.885187625885,
+ "z": "1e0169fe.460196",
"wires": [
[
- "6181952e.31b6cc"
+ "e91a4a82.52be28"
]
]
},
{
- "id": "6181952e.31b6cc",
+ "id": "e91a4a82.52be28",
"type": "set",
"name": "set tmp.ss.vf-module-id",
"xml": "<set>\n<parameter name='tmp.ss.vf-module-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
"comments": "",
- "x": 2220.0003509521484,
- "y": 2340.885187625885,
- "z": "9db1531d.07a1a",
+ "x": 2208.0003509521484,
+ "y": 2350.885187625885,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "369a3888.44684",
+ "id": "ae56d16c.edce5",
"type": "set",
"name": "set resource-resolution-data.status = DELETED",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status' \n\tvalue='DELETED' />\n",
"comments": "",
- "x": 2990.499969482422,
- "y": 3233.737548828125,
- "z": "9db1531d.07a1a",
+ "x": 3451.595443725586,
+ "y": 3169.4514989852905,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "5e2abf9b.b85b4",
+ "id": "8556b639.07cc4",
"type": "outcome",
"name": "prefix-id",
"xml": "<outcome value='prefix-id'>\n",
"comments": "",
"outputs": 1,
- "x": 1943.055892944336,
- "y": 2385.135218143463,
- "z": "9db1531d.07a1a",
+ "x": 1931.055892944336,
+ "y": 2395.135218143463,
+ "z": "1e0169fe.460196",
"wires": [
[
- "6a64ea7a.aa0bac"
+ "246a1d6a.080fa2"
]
]
},
{
- "id": "6a64ea7a.aa0bac",
+ "id": "246a1d6a.080fa2",
"type": "set",
"name": "set prefix-id",
"xml": "<set>\n<parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
"comments": "",
- "x": 2189.555892944336,
- "y": 2385.385187625885,
- "z": "9db1531d.07a1a",
+ "x": 2177.555892944336,
+ "y": 2395.385187625885,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "5ddc29c0.4ba838",
+ "id": "d994622b.100b98",
"type": "execute",
"name": "execute NetboxClient assignIpAddress",
"xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"assignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"vf_module_id\" value=\"`$tmp.ss.vf-module-id`\" />\n<parameter name=\"prefix_id\" value=\"`$tmp.ss.prefix-id`\" />\n<parameter name=\"resource_name\" value=\"`$tmp.ss.param.name`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
"comments": "",
"outputs": 1,
- "x": 1724.9526672363281,
- "y": 2699.655068397522,
- "z": "9db1531d.07a1a",
+ "x": 2204.38134765625,
+ "y": 2695.3692626953125,
+ "z": "1e0169fe.460196",
"wires": [
[
- "b4f4fccf.d98da",
- "69e14266.f416c4"
+ "5fcd5073.23e8c8",
+ "1a67a440.ccf65c"
]
]
},
{
- "id": "b4f4fccf.d98da",
+ "id": "5fcd5073.23e8c8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2041.9526672363281,
- "y": 2701.6550073623657,
- "z": "9db1531d.07a1a",
+ "x": 2521.38134765625,
+ "y": 2697.3692016601562,
+ "z": "1e0169fe.460196",
"wires": [
[
- "3690386c.790168"
+ "b53fc0c4.6e6db"
]
]
},
{
- "id": "3690386c.790168",
+ "id": "b53fc0c4.6e6db",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2249.952667236328,
- "y": 2705.6550073623657,
- "z": "9db1531d.07a1a",
+ "x": 2729.38134765625,
+ "y": 2701.3692016601562,
+ "z": "1e0169fe.460196",
"wires": [
[
- "e87ee382.86daa8",
- "8cda7799.2cc048"
+ "aefd9233.639b38",
+ "5924f9f1.b07eb"
]
]
},
{
- "id": "e87ee382.86daa8",
+ "id": "aefd9233.639b38",
"type": "set",
"name": "set resource-resolution-data.status = FAILED",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status' value='FAILED' />\n",
"comments": "",
- "x": 2566.9527282714844,
- "y": 2709.6549768447876,
- "z": "9db1531d.07a1a",
+ "x": 3046.3814086914062,
+ "y": 2705.369171142578,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "8cda7799.2cc048",
+ "id": "5924f9f1.b07eb",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2464.3335876464844,
- "y": 2759.2582397460938,
- "z": "9db1531d.07a1a",
+ "x": 2943.7622680664062,
+ "y": 2754.9724340438843,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "e9502efd.cfacb8",
+ "id": "8459943a.0741",
"type": "set",
"name": "set resource-resolution-data.status = SUCCESS",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status' \n\tvalue='SUCCESS' />\n",
"comments": "",
- "x": 2552.0357666015625,
- "y": 2930.3457641601562,
- "z": "9db1531d.07a1a",
+ "x": 3031.4644470214844,
+ "y": 2926.059958457947,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "a20a3dc.5fc3fc",
+ "id": "32ab7f7f.33dea",
"type": "outcome",
"name": "ip-address-id",
"xml": "<outcome value='ip-address-id'>\n",
"comments": "",
"outputs": 1,
- "x": 1956.9370422363281,
- "y": 2429.9922919273376,
- "z": "9db1531d.07a1a",
+ "x": 1944.9370422363281,
+ "y": 2439.9922919273376,
+ "z": "1e0169fe.460196",
"wires": [
[
- "a24b6a2f.50759"
+ "1be9a0f0.cb1137"
]
]
},
{
- "id": "a24b6a2f.50759",
+ "id": "1be9a0f0.cb1137",
"type": "set",
"name": "ip-address-id",
"xml": "<set>\n<parameter name='tmp.ss.ip-address-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
"comments": "",
- "x": 2191.9369201660156,
- "y": 2429.992352962494,
- "z": "9db1531d.07a1a",
+ "x": 2179.9369201660156,
+ "y": 2439.992352962494,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "82eaeb00.f8a53",
+ "id": "28ed7d99.2fd922",
"type": "outcome",
"name": "external_key",
"xml": "<outcome value='external_key'>\n",
"comments": "",
"outputs": 1,
- "x": 1944.5560607910156,
- "y": 2475.7065863609314,
- "z": "9db1531d.07a1a",
+ "x": 1932.5560607910156,
+ "y": 2485.7065863609314,
+ "z": "1e0169fe.460196",
"wires": [
[
- "f64e7f28.5f1c28"
+ "e3062b19.33e69"
]
]
},
{
- "id": "f64e7f28.5f1c28",
+ "id": "e3062b19.33e69",
"type": "set",
"name": "set external-key",
"xml": "<set>\n<parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
"comments": "",
- "x": 2193.127471923828,
- "y": 2475.7066473960876,
- "z": "9db1531d.07a1a",
+ "x": 2181.127471923828,
+ "y": 2485.7066473960876,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "f2a77014.d729d8",
+ "id": "864a8266.73cc7",
"type": "set",
"name": "set tmp.ss.param.name",
"xml": "<set>\n<parameter name='tmp.ss.param.name' \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].name`' />\n",
"comments": "",
- "x": 1170.8495254516602,
- "y": 2003.9602675437927,
- "z": "9db1531d.07a1a",
+ "x": 1158.8495254516602,
+ "y": 2013.9602675437927,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "8094ff69.1f8708",
- "type": "switchNode",
- "name": "switch: resource-resolution-data.status",
- "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 773.2856140136719,
- "y": 2269.9287109375,
- "z": "9db1531d.07a1a",
- "wires": [
- [
- "8231bfda.4aa0f8",
- "4c0fccb3.f454ac"
- ]
- ]
- },
- {
- "id": "8231bfda.4aa0f8",
- "type": "not-found",
- "name": "FAILED",
- "xml": "<outcome value='FAILED'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1004.7144165039062,
- "y": 2265.928756713867,
- "z": "9db1531d.07a1a",
- "wires": [
- [
- "575caaa7.2470a4"
- ]
- ]
- },
- {
- "id": "4c0fccb3.f454ac",
- "type": "success",
- "name": "PENDING",
- "xml": "<outcome value='PENDING'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1011.4285926818848,
- "y": 2317.6430847644806,
- "z": "9db1531d.07a1a",
- "wires": [
- [
- "575caaa7.2470a4"
- ]
- ]
- },
- {
- "id": "575caaa7.2470a4",
+ "id": "b6e45a86.008848",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1166.1429138183594,
- "y": 2289.9287719726562,
- "z": "9db1531d.07a1a",
- "wires": [
- [
- "eabe3654.2861f",
- "423ab3ab.c683cc"
- ]
- ]
- },
- {
- "id": "e4db42f9.ac9b4",
- "type": "outcome",
- "name": "assign",
- "xml": "<outcome value='assign'>",
- "comments": "",
- "outputs": 1,
- "x": 1224.0000305175781,
- "y": 2697.738320350647,
- "z": "9db1531d.07a1a",
+ "x": 1154.1429138183594,
+ "y": 2299.9287719726562,
+ "z": "1e0169fe.460196",
"wires": [
[
- "de47a062.0e7368"
+ "b0815fb0.6c8c58",
+ "ea11f211.eef478"
]
]
},
{
- "id": "423ab3ab.c683cc",
+ "id": "ea11f211.eef478",
"type": "switchNode",
"name": "switch: ss.capability-action",
"xml": "<switch test='`$ss.capability-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 988.0000305175781,
- "y": 2695.738320350647,
- "z": "9db1531d.07a1a",
+ "x": 976.0000305175781,
+ "y": 2705.738320350647,
+ "z": "1e0169fe.460196",
"wires": [
[
- "e4db42f9.ac9b4",
- "19870db6.43192a"
+ "398f1da9.7fc262",
+ "c615cc08.6cc77"
]
]
},
{
- "id": "de47a062.0e7368",
+ "id": "b4174ab1.8632e",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1399.4286804199219,
- "y": 2698.595559120178,
- "z": "9db1531d.07a1a",
+ "x": 1878.8573608398438,
+ "y": 2694.3097534179688,
+ "z": "1e0169fe.460196",
"wires": [
[
- "5ddc29c0.4ba838"
+ "d994622b.100b98"
]
]
},
{
- "id": "95406bea.6b1b6",
+ "id": "b7a6dad5.6dc8c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2018.6786499023438,
- "y": 3089.202422142029,
- "z": "9db1531d.07a1a",
+ "x": 2479.774124145508,
+ "y": 3024.9163722991943,
+ "z": "1e0169fe.460196",
"wires": [
[
- "a33aa0af.bd279"
+ "9487046d.9fad68"
]
]
},
{
- "id": "69e14266.f416c4",
+ "id": "1a67a440.ccf65c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2050.0000915527344,
- "y": 2765.1666259765625,
- "z": "9db1531d.07a1a",
+ "x": 2529.4287719726562,
+ "y": 2760.880820274353,
+ "z": "1e0169fe.460196",
"wires": [
[
- "3337d755.bc6f9"
+ "6b7d48cd.fe82"
]
]
},
{
- "id": "d043ccbb.6e195",
+ "id": "e5ae09f3.4e9b7",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2192.1073128836497,
- "y": 3041.916687147958,
- "z": "9db1531d.07a1a",
+ "x": 2653.2027871268137,
+ "y": 2977.6306373051234,
+ "z": "1e0169fe.460196",
"wires": [
[]
]
},
{
- "id": "3337d755.bc6f9",
+ "id": "6b7d48cd.fe82",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2244.2857360839844,
- "y": 2845.166748046875,
- "z": "9db1531d.07a1a",
+ "x": 2723.7144165039062,
+ "y": 2840.8809423446655,
+ "z": "1e0169fe.460196",
"wires": [
[
- "e9502efd.cfacb8",
- "b434a262.2a412",
- "fd2e7345.c27e6"
+ "8459943a.0741",
+ "702f24b8.ab2b14",
+ "722fee02.ac2218"
]
]
},
{
- "id": "7f8823ca.cd3dd4",
+ "id": "70a92bf3.d01214",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2728.571990966797,
- "y": 3232.3094482421875,
- "z": "9db1531d.07a1a",
+ "x": 3189.667465209961,
+ "y": 3168.023398399353,
+ "z": "1e0169fe.460196",
"wires": [
[
- "369a3888.44684"
+ "ae56d16c.edce5"
]
]
},
{
- "id": "a51df821.acc4",
+ "id": "612ded0b.7aa5c4",
"type": "not-found",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 600.4285583496094,
- "y": 441.4284896850586,
- "z": "9db1531d.07a1a",
+ "x": 588.4285583496094,
+ "y": 451.4284896850586,
+ "z": "1e0169fe.460196",
"wires": [
[
- "a0639b3c.7eba9"
+ "c436ca39.dad55"
]
]
},
{
- "id": "9b5b9dd.e182f6",
+ "id": "f91de1d4.ae1798",
"type": "switchNode",
"name": "switch capability-type. vnf",
"xml": "<switch test=\"`$ss.capability-type == 'vnf'`\">\n",
"comments": "",
"outputs": 1,
- "x": 397,
- "y": 442.14276123046875,
- "z": "9db1531d.07a1a",
+ "x": 385,
+ "y": 452.14276123046875,
+ "z": "1e0169fe.460196",
"wires": [
[
- "a51df821.acc4"
+ "612ded0b.7aa5c4"
]
]
},
{
- "id": "727a4c78.25da9c",
+ "id": "2734c8ea.c23828",
"type": "switchNode",
"name": "switch capability-type vf-module",
"xml": "<switch test=\"`$ss.capability-type == 'vf-module'`\">\n",
"comments": "",
"outputs": 1,
- "x": 419.28582763671875,
- "y": 1827.6666259765625,
- "z": "9db1531d.07a1a",
+ "x": 407.28582763671875,
+ "y": 1837.6666259765625,
+ "z": "1e0169fe.460196",
"wires": [
[
- "5b0a7046.83e3"
+ "76727ba.3b8bb04"
]
]
},
{
- "id": "5b0a7046.83e3",
+ "id": "76727ba.3b8bb04",
"type": "not-found",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 638.2858276367188,
- "y": 1828.6666870117188,
- "z": "9db1531d.07a1a",
+ "x": 626.2858276367188,
+ "y": 1838.6666870117188,
+ "z": "1e0169fe.460196",
"wires": [
[
- "3a044c4d.1e750c"
+ "9d646260.b0f88"
]
]
},
{
- "id": "25965467.621de4",
+ "id": "74139423.e17614",
"type": "outcome",
"name": "unassign",
"xml": "<outcome value='unassign'>",
"comments": "",
"outputs": 1,
- "x": 1213.3333129882812,
- "y": 1557.3690576553345,
- "z": "9db1531d.07a1a",
+ "x": 1177.5833129882812,
+ "y": 1389.8692016601562,
+ "z": "1e0169fe.460196",
"wires": [
[
- "f0b88a86.aebb68"
+ "e51b7888.989928"
]
]
},
{
- "id": "e7afaccf.d0036",
+ "id": "b8362705.36557",
"type": "set",
"name": "set tmp.ss.param.capability-name",
"xml": "<set>\n<parameter name='tmp.ss.param.capability-name' \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.capability-name`' />\n",
"comments": "",
- "x": 1222.1705474853516,
- "y": 537.4722971916199,
- "z": "9db1531d.07a1a",
+ "x": 1210.1705474853516,
+ "y": 547.4722971916199,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "bfedad8c.b95118",
+ "id": "37af35ce.c8f9aa",
"type": "for",
"name": "for pidx in param_length",
"xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 932.3847732543945,
- "y": 537.54376745224,
- "z": "9db1531d.07a1a",
+ "x": 920.3847732543945,
+ "y": 547.54376745224,
+ "z": "1e0169fe.460196",
"wires": [
[
- "eadf5468.9c709",
- "f0ad10ad.1e953",
- "e7afaccf.d0036"
+ "f4266bba.68463",
+ "ea3f1334.a266f8",
+ "b8362705.36557"
]
]
},
{
- "id": "f0ad10ad.1e953",
+ "id": "ea3f1334.a266f8",
"type": "switchNode",
"name": "switch: capability-name - ss vs param",
"xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
"comments": "",
"outputs": 1,
- "x": 1235.2460098266602,
- "y": 618.8215498924255,
- "z": "9db1531d.07a1a",
+ "x": 1223.2460098266602,
+ "y": 628.8215498924255,
+ "z": "1e0169fe.460196",
"wires": [
[
- "6a7d5101.40aa8"
+ "d7993c29.a6c5f8"
]
]
},
{
- "id": "6a7d5101.40aa8",
+ "id": "d7993c29.a6c5f8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1473.9960174560547,
- "y": 618.5715498924255,
- "z": "9db1531d.07a1a",
+ "x": 1461.9960174560547,
+ "y": 628.5715498924255,
+ "z": "1e0169fe.460196",
"wires": [
[
- "b4530e81.fa1df"
+ "35313136.60f71e"
]
]
},
{
- "id": "e13f79d4.74035",
+ "id": "85af5a4b.a2187",
"type": "switchNode",
"name": "switch: resource-key[].name",
"xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].name`'>\n",
"comments": "",
"outputs": 1,
- "x": 1662.2185287475586,
- "y": 810.8654227256775,
- "z": "9db1531d.07a1a",
+ "x": 1650.2185287475586,
+ "y": 820.8654227256775,
+ "z": "1e0169fe.460196",
"wires": [
[
- "2eeaa08a.1d2c78",
- "9af0367b.dbd1f8",
- "f747f187.002e28",
- "81e1796a.cad958"
+ "6c06e68b.da7eb8",
+ "8b40c4df.047c2",
+ "5bcfaea0.c0c0f8",
+ "714a9ad3.25a814"
]
]
},
{
- "id": "9af0367b.dbd1f8",
+ "id": "8b40c4df.047c2",
"type": "outcome",
"name": "service-instance-id",
"xml": "<outcome value='service-instance-id'>\n",
"comments": "",
"outputs": 1,
- "x": 1933.607437133789,
- "y": 810.3376412391663,
- "z": "9db1531d.07a1a",
+ "x": 1921.607437133789,
+ "y": 820.3376412391663,
+ "z": "1e0169fe.460196",
"wires": [
[
- "c656a145.06dbc"
+ "ee744de2.8b10f8"
]
]
},
{
- "id": "c656a145.06dbc",
+ "id": "ee744de2.8b10f8",
"type": "set",
"name": "set tmp.ss.service-instance-id",
"xml": "<set>\n<parameter name='tmp.ss.service-instance-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
"comments": "",
- "x": 2199.857437133789,
- "y": 810.0876412391663,
- "z": "9db1531d.07a1a",
+ "x": 2187.857437133789,
+ "y": 820.0876412391663,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "41f4db04.700f14",
+ "id": "53877355.ae41ac",
"type": "update",
"name": "get-resource IPAM_IP_ASSIGNEMENT",
"xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n\tkey='SELECT * from IPAM_IP_ASSIGNEMENT \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id' >",
"comments": "",
"outputs": 1,
- "x": 1688.8173828125,
- "y": 1556.190468788147,
- "z": "9db1531d.07a1a",
+ "x": 2175.3888549804688,
+ "y": 1491.9048852920532,
+ "z": "1e0169fe.460196",
"wires": [
[
- "b267b2b4.23a3e8",
- "9b01dbab.a7a7a8"
+ "1455e2db.491d8d",
+ "f61d39ca.54246"
]
]
},
{
- "id": "b267b2b4.23a3e8",
+ "id": "1455e2db.491d8d",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1983.4047203063965,
- "y": 1557.1905019283295,
- "z": "9db1531d.07a1a",
+ "x": 2469.9761924743652,
+ "y": 1492.9049184322357,
+ "z": "1e0169fe.460196",
"wires": [
[
- "c67fc199.97dec"
+ "4d3d930a.c74edc"
]
]
},
{
- "id": "f0b88a86.aebb68",
+ "id": "2e96e14a.d8a666",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1382.6546783447266,
- "y": 1557.8334131240845,
- "z": "9db1531d.07a1a",
+ "x": 1872.9761352539062,
+ "y": 1408.5477905273438,
+ "z": "1e0169fe.460196",
"wires": [
[
- "41f4db04.700f14"
+ "53877355.ae41ac"
]
]
},
{
- "id": "e6246ef9.3e7788",
+ "id": "8b797c86.449c88",
"type": "for",
"name": "for kidx in resource-key_length",
"xml": "<for index=\"kidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key_length`\">",
"comments": "",
"outputs": 1,
- "x": 1379.0796127319336,
- "y": 808.7265067100525,
- "z": "9db1531d.07a1a",
+ "x": 1367.0796127319336,
+ "y": 818.7265067100525,
+ "z": "1e0169fe.460196",
"wires": [
[
- "e13f79d4.74035"
+ "85af5a4b.a2187"
]
]
},
{
- "id": "a0639b3c.7eba9",
+ "id": "c436ca39.dad55",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 648.642822265625,
- "y": 535.666748046875,
- "z": "9db1531d.07a1a",
+ "x": 636.642822265625,
+ "y": 545.666748046875,
+ "z": "1e0169fe.460196",
"wires": [
[
- "bfedad8c.b95118",
- "dd52194f.db49b8"
+ "37af35ce.c8f9aa",
+ "419443bc.89754c"
]
]
},
{
- "id": "37aec3a4.7d6aa4",
+ "id": "7d36e25f.6ea3f4",
"type": "update",
"name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
"xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"UPDATE IPAM_IP_ASSIGNEMENT set ip_status = $tmp.status \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id\" >",
"comments": "",
"outputs": 1,
- "x": 2511.71435546875,
- "y": 1647.869179725647,
- "z": "9db1531d.07a1a",
+ "x": 2998.2858276367188,
+ "y": 1583.5835962295532,
+ "z": "1e0169fe.460196",
"wires": [
[
- "f17fba04.5953f8"
+ "ca94a980.5b06e"
]
]
},
{
- "id": "f7bb8b39.bef09",
+ "id": "954b1950.33da8",
"type": "set",
"name": "set status = PENDING_DELETE",
"xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
"comments": "",
- "x": 2421.630859375,
- "y": 1606.202431678772,
- "z": "9db1531d.07a1a",
+ "x": 2908.2023315429688,
+ "y": 1541.9168481826782,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "f17fba04.5953f8",
+ "id": "ca94a980.5b06e",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2819.380813598633,
- "y": 1648.4525032043457,
- "z": "9db1531d.07a1a",
+ "x": 3305.9522857666016,
+ "y": 1584.166919708252,
+ "z": "1e0169fe.460196",
"wires": [
[
- "7d1f077f.575248"
+ "ddd93d50.c85558"
]
]
},
{
- "id": "7d1f077f.575248",
+ "id": "ddd93d50.c85558",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Error updating NETBOX_IP_ASSIGNMENTS table to unassign ip with external_key=' + $tmp.ss.external-key + ' and service_instance_id=' + $tmp.ss.service-instance-id`\" />\n",
"comments": "",
- "x": 2998.381103515625,
- "y": 1648.2621240615845,
- "z": "9db1531d.07a1a",
+ "x": 3484.9525756835938,
+ "y": 1583.9765405654907,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "91f6c6fc.2974a8",
+ "id": "d3428a19.b74a38",
"type": "execute",
"name": "execute Netbox unassign IP addresses",
"xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"unassignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
"comments": "",
"outputs": 1,
- "x": 2441.7142333984375,
- "y": 1694.1192407608032,
- "z": "9db1531d.07a1a",
+ "x": 2928.2857055664062,
+ "y": 1629.8336572647095,
+ "z": "1e0169fe.460196",
"wires": [
[
- "54af54c4.b3a344",
- "286269c8.56b2fe"
+ "a11ee488.c69c1",
+ "bacc37f5.251158"
]
]
},
{
- "id": "54af54c4.b3a344",
+ "id": "a11ee488.c69c1",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2685.0475006103516,
- "y": 1694.1191902160645,
- "z": "9db1531d.07a1a",
+ "x": 3171.6189727783203,
+ "y": 1629.8336067199707,
+ "z": "1e0169fe.460196",
"wires": [
[
- "3d527d1f.8bda2a"
+ "727fae.421bc054"
]
]
},
{
- "id": "3d527d1f.8bda2a",
+ "id": "727fae.421bc054",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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 in NetboxClient#unassignIPAddress with external-key='+ $tmp.ss.external-key`\" />\n",
"comments": "",
- "x": 2847.0475273132324,
- "y": 1693.9289255142212,
- "z": "9db1531d.07a1a",
+ "x": 3333.618999481201,
+ "y": 1629.6433420181274,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "8bad1bbc.e7a648",
+ "id": "199cb084.41994f",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2162.333267211914,
- "y": 1605.619059562683,
- "z": "9db1531d.07a1a",
+ "x": 2648.904739379883,
+ "y": 1541.3334760665894,
+ "z": "1e0169fe.460196",
"wires": [
[
- "f7bb8b39.bef09",
- "37aec3a4.7d6aa4",
- "91f6c6fc.2974a8"
+ "954b1950.33da8",
+ "7d36e25f.6ea3f4",
+ "d3428a19.b74a38"
]
]
},
{
- "id": "dd52194f.db49b8",
+ "id": "419443bc.89754c",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'SS: pidx: ' + $pidx`\"/>\n",
"comments": "",
"outputs": 1,
- "x": 884.4484252929688,
- "y": 592.6112365722656,
- "z": "9db1531d.07a1a",
+ "x": 872.4484252929688,
+ "y": 602.6112365722656,
+ "z": "1e0169fe.460196",
"wires": [
[]
]
},
{
- "id": "2eeaa08a.1d2c78",
+ "id": "6c06e68b.da7eb8",
"type": "outcome",
"name": "vnf-id",
"xml": "<outcome value='vnf-id'>\n",
"comments": "",
"outputs": 1,
- "x": 1915.440444946289,
- "y": 856.58758020401,
- "z": "9db1531d.07a1a",
+ "x": 1903.440444946289,
+ "y": 866.58758020401,
+ "z": "1e0169fe.460196",
"wires": [
[
- "e99c4040.fdfb6"
+ "48b45ebc.19189"
]
]
},
{
- "id": "e99c4040.fdfb6",
+ "id": "48b45ebc.19189",
"type": "set",
"name": "set tmp.ss.vnf-id",
"xml": "<set>\n<parameter name='tmp.ss.vnf-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
"comments": "",
- "x": 2181.4405670166016,
- "y": 856.58758020401,
- "z": "9db1531d.07a1a",
+ "x": 2169.4405670166016,
+ "y": 866.58758020401,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "8b1d70.bdf8029",
+ "id": "4c0830f.966f55",
"type": "set",
"name": "set resource-resolution-data.status = DELETED",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status' \n\tvalue='DELETED' />\n",
"comments": "",
- "x": 2951.940185546875,
- "y": 1749.43994140625,
- "z": "9db1531d.07a1a",
+ "x": 3438.5116577148438,
+ "y": 1685.1543579101562,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "f747f187.002e28",
+ "id": "5bcfaea0.c0c0f8",
"type": "outcome",
"name": "prefix-id",
"xml": "<outcome value='prefix-id'>\n",
"comments": "",
"outputs": 1,
- "x": 1904.496109008789,
- "y": 900.8376107215881,
- "z": "9db1531d.07a1a",
+ "x": 1892.496109008789,
+ "y": 910.8376107215881,
+ "z": "1e0169fe.460196",
"wires": [
[
- "2ed5a6cf.2a2e6a"
+ "dd169952.c2ddc8"
]
]
},
{
- "id": "2ed5a6cf.2a2e6a",
+ "id": "dd169952.c2ddc8",
"type": "set",
"name": "set prefix-id",
"xml": "<set>\n<parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
"comments": "",
- "x": 2150.996109008789,
- "y": 901.08758020401,
- "z": "9db1531d.07a1a",
+ "x": 2138.996109008789,
+ "y": 911.08758020401,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "cb98d7d9.b5a08",
+ "id": "3246d2cf.e446ce",
"type": "execute",
"name": "execute NetboxClient assignIpAddress",
"xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"assignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"vf_module_id\" value=\"`$tmp.ss.vnf-id`\" />\n<parameter name=\"prefix_id\" value=\"`$tmp.ss.prefix-id`\" />\n<parameter name=\"resource_name\" value=\"`$tmp.ss.param.name`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
"comments": "",
"outputs": 1,
- "x": 1686.3928833007812,
- "y": 1215.357460975647,
- "z": "9db1531d.07a1a",
+ "x": 2200.1068725585938,
+ "y": 1209.6432886123657,
+ "z": "1e0169fe.460196",
"wires": [
[
- "158c4088.3cd6c7",
- "2aec43bd.80530c"
+ "bc02f9c5.d3009",
+ "5a42ccdf.863d7c"
]
]
},
{
- "id": "158c4088.3cd6c7",
+ "id": "bc02f9c5.d3009",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2003.3928833007812,
- "y": 1217.3573999404907,
- "z": "9db1531d.07a1a",
+ "x": 2517.1068725585938,
+ "y": 1211.6432275772095,
+ "z": "1e0169fe.460196",
"wires": [
[
- "2e7a036b.bc0adc"
+ "9be2285f.3688f8"
]
]
},
{
- "id": "2e7a036b.bc0adc",
+ "id": "9be2285f.3688f8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2211.3928833007812,
- "y": 1221.3573999404907,
- "z": "9db1531d.07a1a",
+ "x": 2725.1068725585938,
+ "y": 1215.6432275772095,
+ "z": "1e0169fe.460196",
"wires": [
[
- "51bf773d.df62b",
- "bc6879f4.baae4"
+ "be8fa4c5.70a7a",
+ "742a806a.1c8b48"
]
]
},
{
- "id": "51bf773d.df62b",
+ "id": "be8fa4c5.70a7a",
"type": "set",
"name": "set resource-resolution-data.status = FAILED",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status' value='FAILED' />\n",
"comments": "",
- "x": 2528.3929443359375,
- "y": 1225.3573694229126,
- "z": "9db1531d.07a1a",
+ "x": 3042.10693359375,
+ "y": 1219.6431970596313,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "bc6879f4.baae4",
+ "id": "742a806a.1c8b48",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2425.7738037109375,
- "y": 1274.9606323242188,
- "z": "9db1531d.07a1a",
+ "x": 2939.48779296875,
+ "y": 1269.2464599609375,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "49b2f547.09aa04",
+ "id": "291a0f5b.065428",
"type": "set",
"name": "set resource-resolution-data.status = SUCCESS",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status' \n\tvalue='SUCCESS' />\n",
"comments": "",
- "x": 2505.47607421875,
- "y": 1420.0482177734375,
- "z": "9db1531d.07a1a",
+ "x": 3019.1900634765625,
+ "y": 1414.3340454101562,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "81e1796a.cad958",
+ "id": "714a9ad3.25a814",
"type": "outcome",
"name": "external_key",
"xml": "<outcome value='external_key'>\n",
"comments": "",
"outputs": 1,
- "x": 1927.246337890625,
- "y": 951.4089965820312,
- "z": "9db1531d.07a1a",
+ "x": 1915.246337890625,
+ "y": 961.4089965820312,
+ "z": "1e0169fe.460196",
"wires": [
[
- "96f2e2c3.446d68"
+ "bc0a0828.40d9d8"
]
]
},
{
- "id": "96f2e2c3.446d68",
+ "id": "bc0a0828.40d9d8",
"type": "set",
"name": "set external-key",
"xml": "<set>\n<parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />\n",
"comments": "",
- "x": 2175.8177490234375,
- "y": 951.4090576171875,
- "z": "9db1531d.07a1a",
+ "x": 2163.8177490234375,
+ "y": 961.4090576171875,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "eadf5468.9c709",
+ "id": "f4266bba.68463",
"type": "set",
"name": "set tmp.ss.param.name",
"xml": "<set>\n<parameter name='tmp.ss.param.name' \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].name`' />\n",
"comments": "",
- "x": 1193.9564895629883,
- "y": 577.6627821922302,
- "z": "9db1531d.07a1a",
+ "x": 1181.9564895629883,
+ "y": 587.6627821922302,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "b4530e81.fa1df",
- "type": "switchNode",
- "name": "switch: resource-resolution-data.status",
- "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 734.725830078125,
- "y": 785.631103515625,
- "z": "9db1531d.07a1a",
- "wires": [
- [
- "ef20c0ae.2f0268",
- "fe2c0013.43141"
- ]
- ]
- },
- {
- "id": "ef20c0ae.2f0268",
- "type": "not-found",
- "name": "FAILED",
- "xml": "<outcome value='FAILED'>\n",
- "comments": "",
- "outputs": 1,
- "x": 966.1546325683594,
- "y": 781.6311492919922,
- "z": "9db1531d.07a1a",
- "wires": [
- [
- "b3e8cd71.0d271"
- ]
- ]
- },
- {
- "id": "fe2c0013.43141",
- "type": "success",
- "name": "PENDING",
- "xml": "<outcome value='PENDING'>\n",
- "comments": "",
- "outputs": 1,
- "x": 972.8688087463379,
- "y": 833.3454773426056,
- "z": "9db1531d.07a1a",
- "wires": [
- [
- "b3e8cd71.0d271"
- ]
- ]
- },
- {
- "id": "b3e8cd71.0d271",
+ "id": "35313136.60f71e",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1127.5831298828125,
- "y": 805.6311645507812,
- "z": "9db1531d.07a1a",
+ "x": 1115.5831298828125,
+ "y": 815.6311645507812,
+ "z": "1e0169fe.460196",
"wires": [
[
- "e6246ef9.3e7788",
- "e6294bd0.41d4c8"
+ "8b797c86.449c88",
+ "f17ee439.871ec"
]
]
},
{
- "id": "c1c70c33.d44a98",
+ "id": "3ab742ab.07506e",
"type": "outcome",
"name": "assign",
"xml": "<outcome value='assign'>",
"comments": "",
"outputs": 1,
- "x": 1185.4402465820312,
- "y": 1213.440712928772,
- "z": "9db1531d.07a1a",
+ "x": 1172.190185546875,
+ "y": 1227.190673828125,
+ "z": "1e0169fe.460196",
"wires": [
[
- "1bb6495a.fa8da7"
+ "ac9eaafc.1d31a"
]
]
},
{
- "id": "e6294bd0.41d4c8",
+ "id": "f17ee439.871ec",
"type": "switchNode",
"name": "switch: ss.capability-action",
"xml": "<switch test='`$ss.capability-action`'>\n",
"comments": "",
"outputs": 1,
- "x": 949.4402465820312,
- "y": 1211.440712928772,
- "z": "9db1531d.07a1a",
+ "x": 934.9402770996094,
+ "y": 1232.690673828125,
+ "z": "1e0169fe.460196",
"wires": [
[
- "c1c70c33.d44a98",
- "25965467.621de4"
+ "3ab742ab.07506e",
+ "74139423.e17614"
]
]
},
{
- "id": "1bb6495a.fa8da7",
+ "id": "26e5147.b2e3b6c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1360.868896484375,
- "y": 1214.2979516983032,
- "z": "9db1531d.07a1a",
+ "x": 1920.8328857421875,
+ "y": 1214.8339233398438,
+ "z": "1e0169fe.460196",
"wires": [
[
- "cb98d7d9.b5a08"
+ "3246d2cf.e446ce"
]
]
},
{
- "id": "9b01dbab.a7a7a8",
+ "id": "f61d39ca.54246",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1980.1188659667969,
- "y": 1604.9048147201538,
- "z": "9db1531d.07a1a",
+ "x": 2466.6903381347656,
+ "y": 1540.61923122406,
+ "z": "1e0169fe.460196",
"wires": [
[
- "8bad1bbc.e7a648"
+ "199cb084.41994f"
]
]
},
{
- "id": "2aec43bd.80530c",
+ "id": "5a42ccdf.863d7c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2011.4403076171875,
- "y": 1280.8690185546873,
- "z": "9db1531d.07a1a",
+ "x": 2525.154296875,
+ "y": 1275.154846191406,
+ "z": "1e0169fe.460196",
"wires": [
[
- "b964039a.43a1a"
+ "82bf193e.1c3e9"
]
]
},
{
- "id": "c67fc199.97dec",
+ "id": "4d3d930a.c74edc",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2153.547528948103,
- "y": 1557.6190797260829,
- "z": "9db1531d.07a1a",
+ "x": 2640.1190011160716,
+ "y": 1493.3334962299891,
+ "z": "1e0169fe.460196",
"wires": [
[]
]
},
{
- "id": "b964039a.43a1a",
+ "id": "82bf193e.1c3e9",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2205.7259521484375,
- "y": 1360.869140625,
- "z": "9db1531d.07a1a",
+ "x": 2719.43994140625,
+ "y": 1355.1549682617188,
+ "z": "1e0169fe.460196",
"wires": [
[
- "49b2f547.09aa04",
- "3bdfdc4f.b39f24",
- "4628865b.a3d7d"
+ "291a0f5b.065428",
+ "ddc0044e.197a88",
+ "96318d27.c30ac8"
]
]
},
{
- "id": "286269c8.56b2fe",
+ "id": "bacc37f5.251158",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2690.01220703125,
- "y": 1748.0118408203125,
- "z": "9db1531d.07a1a",
+ "x": 3176.5836791992188,
+ "y": 1683.7262573242188,
+ "z": "1e0169fe.460196",
"wires": [
[
- "8b1d70.bdf8029"
+ "4c0830f.966f55"
]
]
},
{
- "id": "4628865b.a3d7d",
+ "id": "96318d27.c30ac8",
"type": "set",
"name": "set service-data...param[].value = ip-address",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].value' \n\tvalue='`$ip[0]`' />\n",
"comments": "",
- "x": 2495,
- "y": 1380,
- "z": "9db1531d.07a1a",
+ "x": 3008.7139892578125,
+ "y": 1374.2858276367188,
+ "z": "1e0169fe.460196",
"wires": []
},
{
- "id": "3bdfdc4f.b39f24",
+ "id": "ddc0044e.197a88",
"type": "execute",
"name": "SliStringUtils - split subnet",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n <parameter name=\"original_string\" value=\"`$self_serve_netbox_ip_assignement.ip-address`\" />\n <parameter name=\"regex\" value=\"/\"/>\n <parameter name=\"ctx_memory_result_key\" value=\"ip\" />\n \n",
"comments": "",
"outputs": 1,
- "x": 2439,
- "y": 1340,
- "z": "9db1531d.07a1a",
+ "x": 2952.7139892578125,
+ "y": 1334.2858276367188,
+ "z": "1e0169fe.460196",
"wires": [
[]
]
},
{
- "id": "fd2e7345.c27e6",
+ "id": "722fee02.ac2218",
"type": "execute",
"name": "SliStringUtils - split subnet",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n <parameter name=\"original_string\" value=\"`$self_serve_netbox_ip_assignement.ip-address`\" />\n <parameter name=\"regex\" value=\"/\"/>\n <parameter name=\"ctx_memory_result_key\" value=\"ip\" />\n \n",
"comments": "",
"outputs": 1,
- "x": 2481,
- "y": 2829,
- "z": "9db1531d.07a1a",
+ "x": 2960.428680419922,
+ "y": 2824.7141942977905,
+ "z": "1e0169fe.460196",
"wires": [
[]
]
+ },
+ {
+ "id": "ac9eaafc.1d31a",
+ "type": "switchNode",
+ "name": "switch: resource-resolution-data.status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1408.392822265625,
+ "y": 1221.9642944335938,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "e91661da.3b8608",
+ "bf37d131.8b2478"
+ ]
+ ]
+ },
+ {
+ "id": "e91661da.3b8608",
+ "type": "not-found",
+ "name": "FAILED",
+ "xml": "<outcome value='FAILED'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1694.643310546875,
+ "y": 1191.53564453125,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "26e5147.b2e3b6c"
+ ]
+ ]
+ },
+ {
+ "id": "bf37d131.8b2478",
+ "type": "success",
+ "name": "PENDING",
+ "xml": "<outcome value='PENDING'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1693.678466796875,
+ "y": 1235.3931274414062,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "26e5147.b2e3b6c"
+ ]
+ ]
+ },
+ {
+ "id": "e51b7888.989928",
+ "type": "switchNode",
+ "name": "switch: resource-resolution-data.status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1431.249755859375,
+ "y": 1393.750244140625,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "26889fb2.5ce19"
+ ]
+ ]
+ },
+ {
+ "id": "26889fb2.5ce19",
+ "type": "success",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1688.678466796875,
+ "y": 1393.9644775390625,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "2e96e14a.d8a666"
+ ]
+ ]
+ },
+ {
+ "id": "c615cc08.6cc77",
+ "type": "outcome",
+ "name": "unassign",
+ "xml": "<outcome value='unassign'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1181.428466796875,
+ "y": 2975.71435546875,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "5bd2efc8.0cc53"
+ ]
+ ]
+ },
+ {
+ "id": "398f1da9.7fc262",
+ "type": "outcome",
+ "name": "assign",
+ "xml": "<outcome value='assign'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1181.749755859375,
+ "y": 2705.8930053710938,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "71585e8c.8a959"
+ ]
+ ]
+ },
+ {
+ "id": "71585e8c.8a959",
+ "type": "switchNode",
+ "name": "switch: resource-resolution-data.status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1417.952392578125,
+ "y": 2700.6666259765625,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "83c2a9a4.58aa98",
+ "bd2c6000.241588"
+ ]
+ ]
+ },
+ {
+ "id": "83c2a9a4.58aa98",
+ "type": "not-found",
+ "name": "FAILED",
+ "xml": "<outcome value='FAILED'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1704.202880859375,
+ "y": 2670.2379760742188,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "b4174ab1.8632e"
+ ]
+ ]
+ },
+ {
+ "id": "bd2c6000.241588",
+ "type": "success",
+ "name": "PENDING",
+ "xml": "<outcome value='PENDING'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1703.238037109375,
+ "y": 2714.095458984375,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "b4174ab1.8632e"
+ ]
+ ]
+ },
+ {
+ "id": "5bd2efc8.0cc53",
+ "type": "switchNode",
+ "name": "switch: resource-resolution-data.status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1435.0949096679688,
+ "y": 2979.5953979492188,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "9c7404ad.aa898"
+ ]
+ ]
+ },
+ {
+ "id": "9c7404ad.aa898",
+ "type": "success",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1692.5236206054688,
+ "y": 2979.8096313476562,
+ "z": "1e0169fe.460196",
+ "wires": [
+ [
+ "9e365126.584608"
+ ]
+ ]
}
] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.json
index ec9841e1..df489bd7 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.json
@@ -1 +1,457 @@
-[{"id":"e165f010.244d3","type":"dgstart","name":"DGSTART","outputs":1,"x":130,"y":62.85714340209961,"z":"e620a365.4a257","wires":[["4deb4c65.576eb4"]]},{"id":"4deb4c65.576eb4","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":244.28570556640625,"y":103.09525489807129,"z":"e620a365.4a257","wires":[["aa880087.e2472"]]},{"id":"aa880087.e2472","type":"method","name":"method self-serve-vf-module-forking-logic","xml":"<method rpc='self-serve-vf-module-forking-logic' mode='sync'>\n","comments":"","outputs":1,"x":267.85719299316406,"y":151.42857551574707,"z":"e620a365.4a257","wires":[["d3462033.237df"]]},{"id":"c11380d2.2767f","type":"switchNode","name":"switch: param[].name","xml":"<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$p].name`\">\n","comments":"","outputs":1,"x":787.5833282470703,"y":408,"z":"e620a365.4a257","wires":[["b8195917.3db608","df581beb.247948"]]},{"id":"86ff4916.e930e8","type":"for","name":"for p in vf-module-input-parameters.param[]","xml":"<for silentFailure='true' index='p' start='0' end='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`' >\n","comments":"","outputs":1,"x":493.6904754638672,"y":408.50003242492676,"z":"e620a365.4a257","wires":[["c11380d2.2767f"]]},{"id":"c8a0fdfa.fd72b","type":"set","name":"set tmp.exist.vf_module_label = true","xml":"<set>\n<parameter name='tmp.exist.vf_module_label' value='true' />","comments":"","x":1329.4762573242188,"y":456.85717010498047,"z":"e620a365.4a257","wires":[]},{"id":"b371231d.f6d19","type":"set","name":"set tmp.exist.sdnc-model-name = true","xml":"<set>\n<parameter name='tmp.exist.sdnc-model-name' value='true' />\n","comments":"","x":1332.1903648376465,"y":407.85718536376953,"z":"e620a365.4a257","wires":[]},{"id":"d3462033.237df","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":173,"y":302.809513092041,"z":"e620a365.4a257","wires":[["86ff4916.e930e8","72d0f5dc.50ef7c","75ac533a.ce71cc","db5f2cda.e500e"]]},{"id":"b8195917.3db608","type":"outcome","name":"sdnc_model_name","xml":"<outcome value='sdnc_model_name'>\n","comments":"","outputs":1,"x":1043.7619040352956,"y":407.9047944205147,"z":"e620a365.4a257","wires":[["b371231d.f6d19"]]},{"id":"df581beb.247948","type":"outcome","name":"vf_module_label","xml":"<outcome value='vf_module_label'>\n","comments":"","outputs":1,"x":1046.619026184082,"y":457.33336639404297,"z":"e620a365.4a257","wires":[["c8a0fdfa.fd72b"]]},{"id":"8b2508c1.bc86a8","type":"get-resource","name":"get VF_MODEL.sdnc_model_name","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT sdnc_model_name from VF_MODEL \n \tWHERE customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid \n \tAND sdnc_model_name is not null'\n pfx='db.vf-model-name'>\n\n","comments":"","outputs":1,"x":1199.8572235107422,"y":689.1187467575073,"z":"e620a365.4a257","wires":[["af18ec02.f7299","8e3154c6.67b2b8","4cedd1e8.5cfed"]]},{"id":"af18ec02.f7299","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1450.2143478393555,"y":599.4996871948242,"z":"e620a365.4a257","wires":[["52ada15a.6e3a4"]]},{"id":"8e3154c6.67b2b8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1455.928596496582,"y":786.642599105835,"z":"e620a365.4a257","wires":[["8672ba0c.2720a8"]]},{"id":"52ada15a.6e3a4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error reading VF_MODEL table to determine self-serve forking criteria\" />\n","comments":"","x":1631.2143287658691,"y":599.6425943374634,"z":"e620a365.4a257","wires":[]},{"id":"4d4baf34.251d7","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":951.7026138305664,"y":689.3090238571167,"z":"e620a365.4a257","wires":[["8b2508c1.bc86a8"]]},{"id":"db5f2cda.e500e","type":"switchNode","name":"switch: tmp.exist.sdnc-model-name && tmp.exist.vf_module_label == true","xml":"<switch test=\"`$tmp.exist.sdnc-model-name == 'true' and $tmp.exist.vf_module_label == 'true'`\">\n","comments":"","outputs":1,"x":582.0594329833984,"y":602.571252822876,"z":"e620a365.4a257","wires":[["4d4baf34.251d7","aa171664.89cd08"]]},{"id":"aa171664.89cd08","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":954.6668395996094,"y":522.9283447265625,"z":"e620a365.4a257","wires":[["c7aef73a.253c28"]]},{"id":"fbd180e.095ed8","type":"get-resource","name":"get VF_MODULE_MODEL.vf-module-label","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT vf_module_label from VF_MODULE_MODEL \n \tWHERE vf_customization_uuid = $vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid\n \tAND vf_module_label is not null '\n pfx='db.vf-module-label'>\n\n","comments":"","outputs":1,"x":1728.0953903198242,"y":689.3570070266724,"z":"e620a365.4a257","wires":[["e361309f.659c5","49207b1f.4607b4","c961fc85.cf2a1"]]},{"id":"e361309f.659c5","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2003.4526138305664,"y":689.4521379470825,"z":"e620a365.4a257","wires":[["5894d7f0.070508"]]},{"id":"49207b1f.4607b4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2014.0239715576172,"y":737.1664037704468,"z":"e620a365.4a257","wires":[["3bf1408b.9009b"]]},{"id":"5894d7f0.070508","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error reading VF_MODULE_MODEL table to determine self-serve forking criteria\" />\n","comments":"","x":2177.5951232910156,"y":690.0235834121704,"z":"e620a365.4a257","wires":[]},{"id":"c961fc85.cf2a1","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2007.809684753418,"y":640.3570623397827,"z":"e620a365.4a257","wires":[["67e5bedb.4b89e"]]},{"id":"4cedd1e8.5cfed","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1453.8691101074219,"y":689.1188116073608,"z":"e620a365.4a257","wires":[["fbd180e.095ed8"]]},{"id":"72d0f5dc.50ef7c","type":"set","name":"initialize tmp.exist.sdnc-model-name && tmp.exist.vf_module_label = false","xml":"<set>\n<parameter name='tmp.exist.sdnc-model-name' value='false' />\n<parameter name='tmp.exist.vf_module_label' value='false' />\n","comments":"","x":585.5833053588867,"y":303.08317470550537,"z":"e620a365.4a257","wires":[]},{"id":"75ac533a.ce71cc","type":"switchNode","name":"switch: vf-module-input-parameters.param_length","xml":"<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n","comments":"","outputs":1,"x":513.4404830932617,"y":351.559458732605,"z":"e620a365.4a257","wires":[["5f717077.c3f3c"]]},{"id":"5f717077.c3f3c","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":777.0119018554688,"y":351.8451986312866,"z":"e620a365.4a257","wires":[["ddeb321c.3bad4"]]},{"id":"ddeb321c.3bad4","type":"set","name":"set vf-module-input-parameters.param_length = 0","xml":"<set>\n<parameter name='vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length' value='0' />\n","comments":"","x":1050.7261428833008,"y":351.70236015319824,"z":"e620a365.4a257","wires":[]},{"id":"3bf1408b.9009b","type":"set","name":"set ss.self-serve-flag = false","xml":"<set>\n<parameter name='ss.self-serve-flag' value='false' />\n","comments":"","x":2229.999801635742,"y":737.1428709030151,"z":"e620a365.4a257","wires":[]},{"id":"c7aef73a.253c28","type":"set","name":"set ss.self-serve-flag = true","xml":"<set>\n<parameter name='ss.self-serve-flag' value='true' />\n","comments":"","x":1166.0001373291016,"y":522.428596496582,"z":"e620a365.4a257","wires":[]},{"id":"8672ba0c.2720a8","type":"set","name":"set ss.self-serve-flag = false","xml":"<set>\n<parameter name='ss.self-serve-flag' value='false' />\n","comments":"","x":1682.857192993164,"y":786.1428442001343,"z":"e620a365.4a257","wires":[]},{"id":"67e5bedb.4b89e","type":"set","name":"set ss.self-serve-flag = true","xml":"<set>\n<parameter name='ss.self-serve-flag' value='true' />\n","comments":"","x":2218.571548461914,"y":640.1428442001343,"z":"e620a365.4a257","wires":[]}] \ No newline at end of file
+[
+ {
+ "id": "8aa8ea11.740be",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 100,
+ "y": 50,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "69365dae.668034"
+ ]
+ ]
+ },
+ {
+ "id": "69365dae.668034",
+ "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.28570556640625,
+ "y": 90.23811149597168,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "f7dcbe91.e46188"
+ ]
+ ]
+ },
+ {
+ "id": "f7dcbe91.e46188",
+ "type": "method",
+ "name": "method self-serve-vf-module-forking-logic",
+ "xml": "<method rpc='self-serve-vf-module-forking-logic' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 237.85719299316406,
+ "y": 138.57143211364746,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "8ac3a01b.fa2a38"
+ ]
+ ]
+ },
+ {
+ "id": "66ba1bad.63f02c",
+ "type": "switchNode",
+ "name": "switch: param[].name",
+ "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$p].name`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 757.5833282470703,
+ "y": 395.1428565979004,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "f1b12470.776ec8",
+ "540a60cc.25f5f8"
+ ]
+ ]
+ },
+ {
+ "id": "e59ddfff.f29228",
+ "type": "for",
+ "name": "for p in vf-module-input-parameters.param[]",
+ "xml": "<for silentFailure='true' index='p' start='0' end='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 463.6904754638672,
+ "y": 395.64288902282715,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "66ba1bad.63f02c"
+ ]
+ ]
+ },
+ {
+ "id": "736b235f.f41374",
+ "type": "set",
+ "name": "set tmp.exist.vf_module_label = true",
+ "xml": "<set>\n<parameter name='tmp.exist.vf_module_label' value='true' />",
+ "comments": "",
+ "x": 1299.4762573242188,
+ "y": 444.00002670288086,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ },
+ {
+ "id": "8f743c14.96209",
+ "type": "set",
+ "name": "set tmp.exist.sdnc-model-name = true",
+ "xml": "<set>\n<parameter name='tmp.exist.sdnc-model-name' value='true' />\n",
+ "comments": "",
+ "x": 1302.1903648376465,
+ "y": 395.0000419616699,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ },
+ {
+ "id": "8ac3a01b.fa2a38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 143,
+ "y": 289.9523696899414,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "e59ddfff.f29228",
+ "968d6f83.1e8cb8",
+ "87abb41.4b21fc8",
+ "71f24135.a396b8"
+ ]
+ ]
+ },
+ {
+ "id": "f1b12470.776ec8",
+ "type": "outcome",
+ "name": "sdnc_model_name",
+ "xml": "<outcome value='sdnc_model_name'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1013.7619040352956,
+ "y": 395.0476510184151,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "8f743c14.96209"
+ ]
+ ]
+ },
+ {
+ "id": "540a60cc.25f5f8",
+ "type": "outcome",
+ "name": "vf_module_label",
+ "xml": "<outcome value='vf_module_label'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1016.619026184082,
+ "y": 444.47622299194336,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "736b235f.f41374"
+ ]
+ ]
+ },
+ {
+ "id": "18b84933.21068f",
+ "type": "get-resource",
+ "name": "get VF_MODEL.sdnc_model_name",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT sdnc_model_name from VF_MODEL \n \tWHERE customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid \n \tAND sdnc_model_name is not null'\n pfx='db.vf-model-name'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1169.8572235107422,
+ "y": 676.2616033554077,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "d95cfab.cfa8f08",
+ "91b70953.025358",
+ "e5e4f7b1.a891f"
+ ]
+ ]
+ },
+ {
+ "id": "d95cfab.cfa8f08",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1420.2143478393555,
+ "y": 586.6425437927246,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "4d1797d1.55ba98"
+ ]
+ ]
+ },
+ {
+ "id": "91b70953.025358",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1425.928596496582,
+ "y": 773.7854557037354,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "cdc75221.415348"
+ ]
+ ]
+ },
+ {
+ "id": "4d1797d1.55ba98",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error reading VF_MODEL table to determine self-serve forking criteria\" />\n",
+ "comments": "",
+ "x": 1601.2143287658691,
+ "y": 586.7854509353638,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ },
+ {
+ "id": "da046f4e.feca88",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 921.7026138305664,
+ "y": 676.4518804550171,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "18b84933.21068f"
+ ]
+ ]
+ },
+ {
+ "id": "71f24135.a396b8",
+ "type": "switchNode",
+ "name": "switch: tmp.exist.sdnc-model-name && tmp.exist.vf_module_label == true",
+ "xml": "<switch test=\"`$tmp.exist.sdnc-model-name == 'true' and $tmp.exist.vf_module_label == 'true'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 552.0594329833984,
+ "y": 589.7141094207764,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "da046f4e.feca88",
+ "af375362.061b2"
+ ]
+ ]
+ },
+ {
+ "id": "af375362.061b2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 924.6668395996094,
+ "y": 510.0712013244629,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "b5bbd060.67f058"
+ ]
+ ]
+ },
+ {
+ "id": "c6dbcf48.080eb8",
+ "type": "get-resource",
+ "name": "get VF_MODULE_MODEL.vf-module-label",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT vf_module_label from VF_MODULE_MODEL \n \tWHERE vf_customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid\n \tAND vf_module_label is not null '\n pfx='db.vf-module-label'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1698.0953903198242,
+ "y": 676.4998636245728,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "89568209.e5f728",
+ "2dda5e9d.c9b972",
+ "cbe36505.a168d8"
+ ]
+ ]
+ },
+ {
+ "id": "89568209.e5f728",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1973.4526138305664,
+ "y": 676.5949945449829,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "aa612980.7b237"
+ ]
+ ]
+ },
+ {
+ "id": "2dda5e9d.c9b972",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1984.0239715576172,
+ "y": 724.3092603683472,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "2bea618b.553156"
+ ]
+ ]
+ },
+ {
+ "id": "aa612980.7b237",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error reading VF_MODULE_MODEL table to determine self-serve forking criteria\" />\n",
+ "comments": "",
+ "x": 2147.5951232910156,
+ "y": 677.1664400100708,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ },
+ {
+ "id": "cbe36505.a168d8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1977.809684753418,
+ "y": 627.4999189376831,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "69e505b7.70a894"
+ ]
+ ]
+ },
+ {
+ "id": "e5e4f7b1.a891f",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1423.8691101074219,
+ "y": 676.2616682052612,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "c6dbcf48.080eb8"
+ ]
+ ]
+ },
+ {
+ "id": "968d6f83.1e8cb8",
+ "type": "set",
+ "name": "initialize tmp.exist.sdnc-model-name && tmp.exist.vf_module_label = false",
+ "xml": "<set>\n<parameter name='tmp.exist.sdnc-model-name' value='false' />\n<parameter name='tmp.exist.vf_module_label' value='false' />\n",
+ "comments": "",
+ "x": 555.5833053588867,
+ "y": 290.22603130340576,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ },
+ {
+ "id": "87abb41.4b21fc8",
+ "type": "switchNode",
+ "name": "switch: vf-module-input-parameters.param_length",
+ "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 483.4404830932617,
+ "y": 338.70231533050537,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "afd3db14.e78eb"
+ ]
+ ]
+ },
+ {
+ "id": "afd3db14.e78eb",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 747.0119018554688,
+ "y": 338.988055229187,
+ "z": "8316db2b.abe9a",
+ "wires": [
+ [
+ "460cb6a0.e01ee8"
+ ]
+ ]
+ },
+ {
+ "id": "460cb6a0.e01ee8",
+ "type": "set",
+ "name": "set vf-module-input-parameters.param_length = 0",
+ "xml": "<set>\n<parameter name='vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length' value='0' />\n",
+ "comments": "",
+ "x": 1020.7261428833008,
+ "y": 338.84521675109863,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ },
+ {
+ "id": "2bea618b.553156",
+ "type": "set",
+ "name": "set ss.self-serve-flag = false",
+ "xml": "<set>\n<parameter name='ss.self-serve-flag' value='false' />\n",
+ "comments": "",
+ "x": 2199.999801635742,
+ "y": 724.2857275009155,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ },
+ {
+ "id": "b5bbd060.67f058",
+ "type": "set",
+ "name": "set ss.self-serve-flag = true",
+ "xml": "<set>\n<parameter name='ss.self-serve-flag' value='true' />\n",
+ "comments": "",
+ "x": 1143.5,
+ "y": 508.32147216796875,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ },
+ {
+ "id": "cdc75221.415348",
+ "type": "set",
+ "name": "set ss.self-serve-flag = false",
+ "xml": "<set>\n<parameter name='ss.self-serve-flag' value='false' />\n",
+ "comments": "",
+ "x": 1652.857192993164,
+ "y": 773.2857007980347,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ },
+ {
+ "id": "69e505b7.70a894",
+ "type": "set",
+ "name": "set ss.self-serve-flag = true",
+ "xml": "<set>\n<parameter name='ss.self-serve-flag' value='true' />\n",
+ "comments": "",
+ "x": 2196.07177734375,
+ "y": 624.7857666015625,
+ "z": "8316db2b.abe9a",
+ "wires": []
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.json
index b077d2de..7476b037 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.json
@@ -1 +1,791 @@
-[{"id":"2fd9471b.69af38","type":"dgstart","name":"DGSTART","outputs":1,"x":158.57142639160156,"y":106.6993715763092,"z":"4c9ab6a.7151748","wires":[["e752038e.d1f5a"]]},{"id":"e752038e.d1f5a","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":272.8571319580078,"y":146.93748307228088,"z":"4c9ab6a.7151748","wires":[["d99c33c9.917fc"]]},{"id":"d99c33c9.917fc","type":"method","name":"method vnf-topology-operation-unassign","xml":"<method rpc='vnf-topology-operation-unassign' mode='sync'>\n","comments":"","outputs":1,"x":255.00005340576172,"y":186.6993715763092,"z":"4c9ab6a.7151748","wires":[["d7bc4779.1eda58"]]},{"id":"6b4e98eb.f45fd8","type":"comment","name":"vnf-topology-operation-unassign","info":"","comments":"","x":552.9162826538086,"y":54.28571534156799,"z":"4c9ab6a.7151748","wires":[]},{"id":"57b1a585.c0996c","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":562.0952377319336,"y":285.5565092563629,"z":"4c9ab6a.7151748","wires":[["95806c13.7cfc4","c0203520.38f9e8"]]},{"id":"95806c13.7cfc4","type":"outcome","name":"DeleteVnfInstance","xml":"<outcome value='DeleteVnfInstance'>\n","comments":"","outputs":1,"x":815.8095321655273,"y":262.69939064979553,"z":"4c9ab6a.7151748","wires":[["510e3baf.6c03d4"]]},{"id":"c0203520.38f9e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":777.809497833252,"y":308.41371846199036,"z":"4c9ab6a.7151748","wires":[["76420941.8dbeb8"]]},{"id":"510e3baf.6c03d4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1000.6666603088379,"y":262.69942021369934,"z":"4c9ab6a.7151748","wires":[[]]},{"id":"76420941.8dbeb8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"If svc-action is 'deactivate' then request-action must be 'DeleteVnfInstance'\" />\n","comments":"","x":1017.8095054626465,"y":308.41367650032043,"z":"4c9ab6a.7151748","wires":[]},{"id":"d7bc4779.1eda58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":236.9047622680664,"y":580.0327055454254,"z":"4c9ab6a.7151748","wires":[["57b1a585.c0996c","ef167729.c653b8","242976d0.d2fb7a","f9db2fc6.f607d","e75b1912.e02048","b229bc58.834c5","5f46dba8.c562c4"]]},{"id":"ef167729.c653b8","type":"switchNode","name":"switch vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":548.5714111328125,"y":355.0327351093292,"z":"4c9ab6a.7151748","wires":[["df45106f.9abac"]]},{"id":"df45106f.9abac","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":735.2380905151367,"y":354.3660328388214,"z":"4c9ab6a.7151748","wires":[["3704f169.a2fc9e"]]},{"id":"3704f169.a2fc9e","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=\"There are no VNFs in MD-SAL\" />\n","comments":"","x":916.9047164916992,"y":354.3660328388214,"z":"4c9ab6a.7151748","wires":[]},{"id":"f9db2fc6.f607d","type":"for","name":"for each vnf","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":530.2380905151367,"y":403.36605286598206,"z":"4c9ab6a.7151748","wires":[["29131551.89e82a"]]},{"id":"29131551.89e82a","type":"switchNode","name":"switch this vnf-id == input vnf-id","xml":"<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`' >\n","comments":"","outputs":1,"x":785.2381782531738,"y":402.0327208042145,"z":"4c9ab6a.7151748","wires":[["797c5e5.ac056a"]]},{"id":"797c5e5.ac056a","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1023.5714645385742,"y":401.0326988697052,"z":"4c9ab6a.7151748","wires":[["68e43d11.eea054"]]},{"id":"68e43d11.eea054","type":"set","name":"set vnf-index","xml":"<set>\n<parameter name='vnf-index' value='`$idx`' />\n","comments":"","x":1191.9046592712402,"y":401.0327208042145,"z":"4c9ab6a.7151748","wires":[]},{"id":"e75b1912.e02048","type":"switchNode","name":"switch vnf-index","xml":"<switch test='`$vnf-index`'>\n","comments":"","outputs":1,"x":541.9047546386719,"y":450.0327227115631,"z":"4c9ab6a.7151748","wires":[["8227e3f6.9aa9a"]]},{"id":"8227e3f6.9aa9a","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":723.5713729858398,"y":449.36605286598206,"z":"4c9ab6a.7151748","wires":[["b4e649ce.eb6988"]]},{"id":"b4e649ce.eb6988","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=\"'Could not find VNF ' + $vnf-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'\" />\n","comments":"","x":890.2380599975586,"y":449.03267884254456,"z":"4c9ab6a.7151748","wires":[]},{"id":"aacab2cf.b24bf","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":1191.698501586914,"y":1084.5562915802002,"z":"4c9ab6a.7151748","wires":[]},{"id":"8a0320db.451c4","type":"for","name":"for each vnf","xml":"<for index='idx' start='`$vnf-index + 1`' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1712.1760787963867,"y":830.112060546875,"z":"4c9ab6a.7151748","wires":[["cefd1cf4.4bf99"]]},{"id":"d25cea27.cb6248","type":"comment","name":"Remove VNF from service data","info":"","comments":"","x":1154.334846496582,"y":788.6837129592896,"z":"4c9ab6a.7151748","wires":[]},{"id":"cefd1cf4.4bf99","type":"set","name":"move vnf to remove one","xml":"<set>\n\t<parameter name=\"$tmpidx\" value=\"`$idx - 1`\"/>\n\t<parameter name=\"service-data.vnfs.vnf[$tmpidx].\" value=\"$service-data.vnfs.vnf[$idx].\" />\n\t\n","comments":"","x":1945.7672119140625,"y":829.1360120773315,"z":"4c9ab6a.7151748","wires":[]},{"id":"7a3c4303.9ec5ec","type":"switchNode","name":"switch vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":1198.4339408874512,"y":831.691689491272,"z":"4c9ab6a.7151748","wires":[["9f19ae27.d107e","b366d422.c1b158"]]},{"id":"9f19ae27.d107e","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1375.433982849121,"y":792.3582763671875,"z":"4c9ab6a.7151748","wires":[["68a27479.2c17fc"]]},{"id":"68a27479.2c17fc","type":"set","name":"Remove vnfs","xml":"<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n","comments":"","x":1539.1004791259766,"y":792.3583755493164,"z":"4c9ab6a.7151748","wires":[]},{"id":"b366d422.c1b158","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1376.9578742980957,"y":872.834415435791,"z":"4c9ab6a.7151748","wires":[["87575c7b.87768"]]},{"id":"fa8677dd.7dc038","type":"set","name":"set new vnf length","xml":"<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n","comments":"","x":1731.730167388916,"y":920.6916341781616,"z":"4c9ab6a.7151748","wires":[]},{"id":"452d1003.58e5f","type":"set","name":"Remove the last vnf in the list","xml":"<set>\n\t<parameter name=\"service-data.vnfs.vnf[$service-data.vnfs.vnf_length-1].\" value=\"\"/>\n\n","comments":"","x":1767.433822631836,"y":875.8026552200317,"z":"4c9ab6a.7151748","wires":[]},{"id":"87575c7b.87768","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1542.7672157287598,"y":876.3581962585449,"z":"4c9ab6a.7151748","wires":[["8a0320db.451c4","452d1003.58e5f","fa8677dd.7dc038"]]},{"id":"75c7b96f.9b29d8","type":"switchNode","name":"switch current vnf-level-oper-status == Created","xml":"<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status == 'Created'`\">\n","comments":"","outputs":1,"x":641.2380676269531,"y":495.69939255714417,"z":"4c9ab6a.7151748","wires":[["b51a2a52.cee1c8"]]},{"id":"b51a2a52.cee1c8","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":945.90478515625,"y":495.3660318851471,"z":"4c9ab6a.7151748","wires":[["4197f006.511ff"]]},{"id":"4197f006.511ff","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Cannot delete a VNF in a Created state\" />\n","comments":"","x":1104.2380599975586,"y":494.69935631752014,"z":"4c9ab6a.7151748","wires":[]},{"id":"242976d0.d2fb7a","type":"switchNode","name":"switch current vf-module_length","xml":"<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`\">\n","comments":"","outputs":1,"x":591.5714111328125,"y":581.6993582248688,"z":"4c9ab6a.7151748","wires":[["1d4bad90.637232","d3006cf2.7221a","66c6314f.cac37"]]},{"id":"1d4bad90.637232","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":820.2380523681641,"y":538.3659994602203,"z":"4c9ab6a.7151748","wires":[["9c08ffe4.4e1f6"]]},{"id":"d3006cf2.7221a","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":818.8094635009766,"y":579.7946569919586,"z":"4c9ab6a.7151748","wires":[["9c08ffe4.4e1f6"]]},{"id":"9c08ffe4.4e1f6","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":967.3809776306152,"y":559.7946579456329,"z":"4c9ab6a.7151748","wires":[[]]},{"id":"66c6314f.cac37","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":818.809513092041,"y":621.2232449054718,"z":"4c9ab6a.7151748","wires":[["e0770e38.daef2"]]},{"id":"e0770e38.daef2","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Cannot delete the VNF because there are VFs defined\" />\n","comments":"","x":985.9524078369141,"y":620.7946331501007,"z":"4c9ab6a.7151748","wires":[]},{"id":"ec129d0c.3da5d","type":"call","name":"call GENERIC-RESOURCE-API:naming-policy-generate-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":1339.8411331176758,"y":1028.3333406448364,"z":"4c9ab6a.7151748","wires":[[]]},{"id":"945a4b25.df5d68","type":"set","name":"set variables for deleting name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n","comments":"","x":1241.2697525024414,"y":981.190411567688,"z":"4c9ab6a.7151748","wires":[]},{"id":"8c9c9812.e2add8","type":"comment","name":"check removed with US622450","info":"","comments":"","x":1311.4284362792969,"y":494.28574204444885,"z":"4c9ab6a.7151748","wires":[]},{"id":"fb7893eb.5d51b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":948.8571472167969,"y":914.2857551574707,"z":"4c9ab6a.7151748","wires":[["7a3c4303.9ec5ec","945a4b25.df5d68","ec129d0c.3da5d","aacab2cf.b24bf"]]},{"id":"b229bc58.834c5","type":"call","name":"call self-serve-vnf-forking-logic","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-forking-logic' mode='sync' >\n","comments":"","outputs":1,"x":574.4286956787109,"y":724.285665512085,"z":"4c9ab6a.7151748","wires":[[]]},{"id":"5f46dba8.c562c4","type":"switchNode","name":"switch ss.self-serve-flag","xml":"<switch test=\"`$ss.self-serve-flag`\">\n","comments":"","outputs":1,"x":555.7143096923828,"y":914.14284324646,"z":"4c9ab6a.7151748","wires":[["ac0b2fd9.2b5cb","afe49b4f.f40a98"]]},{"id":"ac0b2fd9.2b5cb","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":771.7143096923828,"y":914.5714282989502,"z":"4c9ab6a.7151748","wires":[["fb7893eb.5d51b"]]},{"id":"8488e183.5299c","type":"call","name":"call self-serve-vnf-unassign","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-unassign' mode='sync' >\n","comments":"","outputs":1,"x":987.4285736083984,"y":1229.9999895095825,"z":"4c9ab6a.7151748","wires":[["94ec55d8.a11158","fac6e4ae.85d5b8"]]},{"id":"94ec55d8.a11158","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1195.1785583496094,"y":1230.2499780654907,"z":"4c9ab6a.7151748","wires":[["f8e2b999.669308"]]},{"id":"f8e2b999.669308","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error while unassigning self-serve resources with error: '+ $error-message`\" />\n","comments":"","x":1360.749984741211,"y":1229.8928728103638,"z":"4c9ab6a.7151748","wires":[]},{"id":"fac6e4ae.85d5b8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1199.785732269287,"y":1280.8055124282837,"z":"4c9ab6a.7151748","wires":[["941cfed4.1684d"]]},{"id":"941cfed4.1684d","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":1368.3571472167969,"y":1280.3769540786743,"z":"4c9ab6a.7151748","wires":[]},{"id":"afe49b4f.f40a98","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":772.9999885559082,"y":1230.4285688400269,"z":"4c9ab6a.7151748","wires":[["8488e183.5299c"]]}] \ No newline at end of file
+[
+ {
+ "id": "8760ee4d.bacba",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 121.25,
+ "y": 101.16365623474121,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "a9ae8cec.2004d"
+ ]
+ ]
+ },
+ {
+ "id": "a9ae8cec.2004d",
+ "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": 235.53570556640625,
+ "y": 141.4017677307129,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "3dac1de6.47703a"
+ ]
+ ]
+ },
+ {
+ "id": "3dac1de6.47703a",
+ "type": "method",
+ "name": "method vnf-topology-operation-unassign",
+ "xml": "<method rpc='vnf-topology-operation-unassign' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 217.67862701416016,
+ "y": 181.1636562347412,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "8aa731f2.f78648"
+ ]
+ ]
+ },
+ {
+ "id": "287c593d.cb7aa6",
+ "type": "comment",
+ "name": "vnf-topology-operation-unassign",
+ "info": "",
+ "comments": "",
+ "x": 515.594856262207,
+ "y": 48.75,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "da8ed21c.290538",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 524.773811340332,
+ "y": 280.0207939147949,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "50a65b42.041c0c",
+ "85a5b069.51ff2"
+ ]
+ ]
+ },
+ {
+ "id": "50a65b42.041c0c",
+ "type": "outcome",
+ "name": "DeleteVnfInstance",
+ "xml": "<outcome value='DeleteVnfInstance'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 778.4881057739258,
+ "y": 257.16367530822754,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "93688742.285b9"
+ ]
+ ]
+ },
+ {
+ "id": "85a5b069.51ff2",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 740.4880714416504,
+ "y": 302.87800312042236,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "bfa2ad9d.0bdb1"
+ ]
+ ]
+ },
+ {
+ "id": "93688742.285b9",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 963.3452339172363,
+ "y": 257.16370487213135,
+ "z": "b679ce73.4725c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bfa2ad9d.0bdb1",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"If svc-action is 'deactivate' then request-action must be 'DeleteVnfInstance'\" />\n",
+ "comments": "",
+ "x": 980.4880790710449,
+ "y": 302.87796115875244,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "8aa731f2.f78648",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 199.58333587646484,
+ "y": 574.4969902038574,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "da8ed21c.290538",
+ "9b073e31.2b9548",
+ "d811a825.e4506",
+ "230a1984.7eb2de",
+ "1570abd0.28319c",
+ "91a3386a.faef3",
+ "12606f3f.12bf41",
+ "a2ededb3.20eb68"
+ ]
+ ]
+ },
+ {
+ "id": "9b073e31.2b9548",
+ "type": "switchNode",
+ "name": "switch vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 511.24998474121094,
+ "y": 349.49701976776123,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "835264a.de01c98"
+ ]
+ ]
+ },
+ {
+ "id": "835264a.de01c98",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 697.9166641235352,
+ "y": 348.8303174972534,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "43688a60.e15ccc"
+ ]
+ ]
+ },
+ {
+ "id": "43688a60.e15ccc",
+ "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=\"There are no VNFs in MD-SAL\" />\n",
+ "comments": "",
+ "x": 879.5832901000977,
+ "y": 348.8303174972534,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "230a1984.7eb2de",
+ "type": "for",
+ "name": "for each vnf",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 492.91666412353516,
+ "y": 397.83033752441406,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "11f49056.b848d"
+ ]
+ ]
+ },
+ {
+ "id": "11f49056.b848d",
+ "type": "switchNode",
+ "name": "switch this vnf-id == input vnf-id",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 747.9167518615723,
+ "y": 396.4970054626465,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "2be53867.ef76e8"
+ ]
+ ]
+ },
+ {
+ "id": "2be53867.ef76e8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.2500381469727,
+ "y": 395.4969835281372,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "e4f701ed.1bfb3"
+ ]
+ ]
+ },
+ {
+ "id": "e4f701ed.1bfb3",
+ "type": "set",
+ "name": "set vnf-index",
+ "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
+ "comments": "",
+ "x": 1154.5832328796387,
+ "y": 395.4970054626465,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "1570abd0.28319c",
+ "type": "switchNode",
+ "name": "switch vnf-index",
+ "xml": "<switch test='`$vnf-index`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 504.5833282470703,
+ "y": 444.4970073699951,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "29a81e7f.f25dfa"
+ ]
+ ]
+ },
+ {
+ "id": "29a81e7f.f25dfa",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 686.2499465942383,
+ "y": 443.83033752441406,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "f6710847.bb5d"
+ ]
+ ]
+ },
+ {
+ "id": "f6710847.bb5d",
+ "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=\"'Could not find VNF ' + $vnf-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'\" />\n",
+ "comments": "",
+ "x": 852.916633605957,
+ "y": 443.49696350097656,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "8ffa54f2.b78158",
+ "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": 1154.3770751953125,
+ "y": 1079.0205762386322,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "54c41547.567a8c",
+ "type": "for",
+ "name": "for each vnf",
+ "xml": "<for index='idx' start='`$vnf-index + 1`' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1674.8546524047852,
+ "y": 824.576345205307,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "c8a587bb.5748d8"
+ ]
+ ]
+ },
+ {
+ "id": "3f28287f.120ca",
+ "type": "comment",
+ "name": "Remove VNF from service data",
+ "info": "",
+ "comments": "",
+ "x": 1117.0134201049805,
+ "y": 783.1479976177216,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "c8a587bb.5748d8",
+ "type": "set",
+ "name": "move vnf to remove one",
+ "xml": "<set>\n\t<parameter name=\"$tmpidx\" value=\"`$idx - 1`\"/>\n\t<parameter name=\"service-data.vnfs.vnf[$tmpidx].\" value=\"$service-data.vnfs.vnf[$idx].\" />\n\t\n",
+ "comments": "",
+ "x": 1908.445785522461,
+ "y": 823.6002967357635,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "c879ce9c.9d72a",
+ "type": "switchNode",
+ "name": "switch vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1161.1125144958496,
+ "y": 826.155974149704,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "9f8acc10.c48f28",
+ "901a2ab8.48409"
+ ]
+ ]
+ },
+ {
+ "id": "9f8acc10.c48f28",
+ "type": "outcome",
+ "name": "1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1338.1125564575195,
+ "y": 786.8225610256195,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "4a1274f6.357d5c"
+ ]
+ ]
+ },
+ {
+ "id": "4a1274f6.357d5c",
+ "type": "set",
+ "name": "Remove vnfs",
+ "xml": "<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n",
+ "comments": "",
+ "x": 1501.779052734375,
+ "y": 786.8226602077484,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "901a2ab8.48409",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1339.6364479064941,
+ "y": 867.298700094223,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "209c0646.4c650a"
+ ]
+ ]
+ },
+ {
+ "id": "cd8767d7.87479",
+ "type": "set",
+ "name": "set new vnf length",
+ "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n",
+ "comments": "",
+ "x": 1694.4087409973145,
+ "y": 915.1559188365936,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "e2f2c18b.32612",
+ "type": "set",
+ "name": "Remove the last vnf in the list",
+ "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$service-data.vnfs.vnf_length-1].\" value=\"\"/>\n\n",
+ "comments": "",
+ "x": 1730.1123962402344,
+ "y": 870.2669398784637,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "209c0646.4c650a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1505.4457893371582,
+ "y": 870.8224809169769,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "54c41547.567a8c",
+ "e2f2c18b.32612",
+ "cd8767d7.87479"
+ ]
+ ]
+ },
+ {
+ "id": "793a50a1.0d6658",
+ "type": "switchNode",
+ "name": "switch current vnf-level-oper-status == Created",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status == 'Created'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 603.9166412353516,
+ "y": 490.1636772155762,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "33d47343.98cc6c"
+ ]
+ ]
+ },
+ {
+ "id": "33d47343.98cc6c",
+ "type": "outcomeFalse",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 908.5833587646484,
+ "y": 489.8303165435791,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "6c7a81eb.1c4e68"
+ ]
+ ]
+ },
+ {
+ "id": "6c7a81eb.1c4e68",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Cannot delete a VNF in a Created state\" />\n",
+ "comments": "",
+ "x": 1066.916633605957,
+ "y": 489.16364097595215,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "d811a825.e4506",
+ "type": "switchNode",
+ "name": "switch current vf-module_length",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 554.2499847412109,
+ "y": 576.1636428833008,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "973bc91a.8f52e8",
+ "d0ced9dc.3f8238",
+ "2b82476d.deb568"
+ ]
+ ]
+ },
+ {
+ "id": "973bc91a.8f52e8",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 782.9166259765625,
+ "y": 532.8302841186523,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "cb334531.9a038"
+ ]
+ ]
+ },
+ {
+ "id": "d0ced9dc.3f8238",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 781.488037109375,
+ "y": 574.2589416503906,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "cb334531.9a038"
+ ]
+ ]
+ },
+ {
+ "id": "cb334531.9a038",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 930.0595512390137,
+ "y": 554.2589426040649,
+ "z": "b679ce73.4725c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2b82476d.deb568",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 781.4880867004395,
+ "y": 615.6875295639038,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "7cec3149.76d4d"
+ ]
+ ]
+ },
+ {
+ "id": "7cec3149.76d4d",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Cannot delete the VNF because there are VFs defined\" />\n",
+ "comments": "",
+ "x": 948.6309814453125,
+ "y": 615.2589178085327,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "88d07f29.c5dc6",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:naming-policy-generate-name",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1302.5197067260742,
+ "y": 1022.7976253032684,
+ "z": "b679ce73.4725c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b74c2ae7.ae87a",
+ "type": "set",
+ "name": "set variables for deleting name",
+ "xml": "<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n",
+ "comments": "",
+ "x": 1203.9483261108398,
+ "y": 975.65469622612,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "8a7b5d97.e8b09",
+ "type": "comment",
+ "name": "check removed with US622450",
+ "info": "",
+ "comments": "",
+ "x": 1274.1070098876953,
+ "y": 488.75002670288086,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "484f70af.519a08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 911.5357208251953,
+ "y": 908.7500398159027,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "c879ce9c.9d72a",
+ "b74c2ae7.ae87a",
+ "88d07f29.c5dc6",
+ "8ffa54f2.b78158"
+ ]
+ ]
+ },
+ {
+ "id": "91a3386a.faef3",
+ "type": "call",
+ "name": "call self-serve-vnf-forking-logic",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-forking-logic' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 548.3572998046875,
+ "y": 722.4999084472656,
+ "z": "b679ce73.4725c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "12606f3f.12bf41",
+ "type": "switchNode",
+ "name": "switch ss.self-serve-flag",
+ "xml": "<switch test=\"`$ss.self-serve-flag`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 518.3928833007812,
+ "y": 908.607127904892,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "69816793.5f1658",
+ "77171191.032938"
+ ]
+ ]
+ },
+ {
+ "id": "69816793.5f1658",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 734.3928833007812,
+ "y": 909.0357129573822,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "484f70af.519a08"
+ ]
+ ]
+ },
+ {
+ "id": "f6d24b45.0d4258",
+ "type": "call",
+ "name": "call self-serve-vnf-unassign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-unassign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 950.1071472167969,
+ "y": 1224.4642741680145,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "b5167dbe.7d8bf8",
+ "a7770dc.3f6cef"
+ ]
+ ]
+ },
+ {
+ "id": "b5167dbe.7d8bf8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1157.8571319580078,
+ "y": 1224.7142627239227,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "9c54474e.6dc798"
+ ]
+ ]
+ },
+ {
+ "id": "9c54474e.6dc798",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error while unassigning self-serve resources with error: '+ $error-message`\" />\n",
+ "comments": "",
+ "x": 1323.4285583496094,
+ "y": 1224.3571574687958,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "a7770dc.3f6cef",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1162.4643058776855,
+ "y": 1275.2697970867157,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "f989b85.ea14548"
+ ]
+ ]
+ },
+ {
+ "id": "f989b85.ea14548",
+ "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": 1331.0357208251953,
+ "y": 1274.8412387371063,
+ "z": "b679ce73.4725c",
+ "wires": []
+ },
+ {
+ "id": "77171191.032938",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 735.6785621643066,
+ "y": 1224.8928534984589,
+ "z": "b679ce73.4725c",
+ "wires": [
+ [
+ "f6d24b45.0d4258"
+ ]
+ ]
+ },
+ {
+ "id": "a2ededb3.20eb68",
+ "type": "get-resource",
+ "name": "get VF_MODEL.sdnc_model_name",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 563.75,
+ "y": 655,
+ "z": "b679ce73.4725c",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json
index bd279399..8dd29ed3 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json
@@ -1,1305 +1,1320 @@
-[
- {
- "id": "ad2ef973.e6a378",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 131,
- "y": 55,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "151183ce.27c78c"
- ]
- ]
- },
- {
- "id": "151183ce.27c78c",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "comments": "",
- "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
- "outputs": 1,
- "x": 314.00000381469727,
- "y": 129.000018119812,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "89afc74f.956348"
- ]
- ]
- },
- {
- "id": "89afc74f.956348",
- "type": "method",
- "name": "sdwan-attachment-topology-operation-create",
- "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 302.0001220703125,
- "y": 217.00000095367432,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "580de8c5.e06e78"
- ]
- ]
- },
- {
- "id": "580de8c5.e06e78",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 222.00005340576172,
- "y": 966.0002489089966,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "1fbb291d.155017",
- "f8c6b86f.980db8",
- "655b6d38.675514",
- "87b8ca30.cf86e8",
- "3718c342.00f4ac",
- "3fc33b48.8d6bf4",
- "15c0d821.288668",
- "99b25b64.985da8",
- "cc1d8a7e.c8e908",
- "aec371b2.f4eb6",
- "7c0d6a4c.141ba4",
- "605ed84a.e90ef8",
- "cf809c65.e205f",
- "5ffc39de.e33178",
- "b70e6d89.61807",
- "2fe0bf35.0314b",
- "4b90a515.ea737c",
- "30825693.105b0a",
- "a79587b.c624178",
- "9d0211a4.58ce8",
- "5c590a79.9e0264",
- "adeabb6e.cf7758",
- "7ee858c0.930c58"
- ]
- ]
- },
- {
- "id": "74beb7.011b0148",
- "type": "comment",
- "name": "Set allotted resource id if not sent by SO",
- "info": "",
- "comments": "",
- "x": 706.0767517089844,
- "y": 126.43391990661621,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "1fbb291d.155017",
- "type": "switchNode",
- "name": "switch allotted-resource-id",
- "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 652.0000305175781,
- "y": 181.99999332427979,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "4a85a033.b553c",
- "de2e876a.0ba078"
- ]
- ]
- },
- {
- "id": "4a85a033.b553c",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 850.0001182556152,
- "y": 151.999981880188,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "63eb9d84.765954"
- ]
- ]
- },
- {
- "id": "de2e876a.0ba078",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 849.0000267028809,
- "y": 188.99999237060547,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "eef884cd.26a128"
- ]
- ]
- },
- {
- "id": "eef884cd.26a128",
- "type": "set",
- "name": "set tmp.ar.allotted-resource-id",
- "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
- "comments": "",
- "x": 1047.000015258789,
- "y": 186.0000114440918,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "f8c6b86f.980db8",
- "type": "set",
- "name": "set tmp.ar.self-link",
- "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
- "comments": "",
- "x": 619.9999542236328,
- "y": 403.0001001358032,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "655b6d38.675514",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 620.2618713378906,
- "y": 484.6667814254761,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "87b8ca30.cf86e8",
- "type": "execute",
- "name": "generate allotted-resource tmp.ar-url",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 673.2619323730469,
- "y": 571.6666994094849,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "63eb9d84.765954",
- "type": "execute",
- "name": "execute tmp.ar.allotted-resource-id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1065.0000953674316,
- "y": 152.9999876022339,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "7fcc0333.e4b76c"
- ]
- ]
- },
- {
- "id": "7fcc0333.e4b76c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1283.0001373291016,
- "y": 152.99995136260986,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "dc8faa82.0a80d8"
- ]
- ]
- },
- {
- "id": "dc8faa82.0a80d8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
- "comments": "",
- "x": 1449.0000915527344,
- "y": 152.9999656677246,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "83948a24.3af768",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1179.0002307891846,
- "y": 643.7778720855713,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "64a66d0e.2cab24"
- ]
- ]
- },
- {
- "id": "fd6c452f.f52a18",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error: Existing connection attachment allotted resource\" />\n \n",
- "comments": "",
- "x": 1912.5186100006104,
- "y": 644.8439435958862,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "df1c313d.a9cf4",
- "type": "comment",
- "name": "Check for non existence of allotted resource",
- "info": "",
- "comments": "",
- "x": 1035.0001525878906,
- "y": 577.7779388427734,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "3c6b3ac8.5f54b6",
- "type": "for",
- "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
- "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1555.6666984558105,
- "y": 788.0000512599945,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "e0e0a661.74b9e8"
- ]
- ]
- },
- {
- "id": "3fc33b48.8d6bf4",
- "type": "switchNode",
- "name": "switch service-data.consumed-allotted-resources_length",
- "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 737.6660232543945,
- "y": 764.7140836715698,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "98246edb.9d503",
- "303d6837.0384d8"
- ]
- ]
- },
- {
- "id": "98246edb.9d503",
- "type": "other",
- "name": "outcome Null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1041.8089218139648,
- "y": 733.5715208053589,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "1bc15eed.fd45b1"
- ]
- ]
- },
- {
- "id": "303d6837.0384d8",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1018.8089714050293,
- "y": 794.571475982666,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "b930de42.50a21"
- ]
- ]
- },
- {
- "id": "b930de42.50a21",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1178.9360618591309,
- "y": 792.697452545166,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "3c6b3ac8.5f54b6",
- "7d532296.0d9bfc",
- "6dd5cf93.f0258"
- ]
- ]
- },
- {
- "id": "1bc15eed.fd45b1",
- "type": "set",
- "name": "set cidx",
- "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
- "comments": "",
- "x": 1191.6659049987793,
- "y": 731.2855710983276,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "15c0d821.288668",
- "type": "set",
- "name": "set consumed allotted resources",
- "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
- "comments": "",
- "x": 666.5233154296875,
- "y": 868.2856483459473,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "7d532296.0d9bfc",
- "type": "switchNode",
- "name": "switch tmp.found-cidx",
- "xml": "<switch test='`$tmp.found-cidx`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1368.0511093139648,
- "y": 824.708975315094,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "106270aa.e9c6ff"
- ]
- ]
- },
- {
- "id": "106270aa.e9c6ff",
- "type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1558.0510635375977,
- "y": 824.7089123725891,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "e1144596.6d5ba8"
- ]
- ]
- },
- {
- "id": "e1144596.6d5ba8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1724.0510635375977,
- "y": 824.7089123725891,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "b93f3869.6459e8"
- ]
- ]
- },
- {
- "id": "e0e0a661.74b9e8",
- "type": "switchNode",
- "name": "switch allotted-resource-id",
- "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1972.7783279418945,
- "y": 785.000078201294,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "326d00a0.76b6c"
- ]
- ]
- },
- {
- "id": "326d00a0.76b6c",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2154.587902069092,
- "y": 785.4645252227783,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "cec76fbc.ec734"
- ]
- ]
- },
- {
- "id": "b93f3869.6459e8",
- "type": "set",
- "name": "set tmp.cidx",
- "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
- "comments": "",
- "x": 1885.924446105957,
- "y": 824.2206134796143,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "9dc9afd9.071d8",
- "type": "comment",
- "name": "Add to consumed service consumed-allotted-resources in mdsal",
- "info": "Prepare data and add to service-data",
- "comments": "",
- "x": 758.667236328125,
- "y": 695.0000476837158,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "79d72e28.e5bf",
- "type": "comment",
- "name": "This set resource will be added to MDSAL by provider code",
- "info": "Below we add to service-data.consumed-allotted-resource at last index",
- "comments": "",
- "x": 746.0001525878906,
- "y": 833.7781400680542,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "7ee858c0.930c58",
- "type": "update",
- "name": "save AAI allotted-resource",
- "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"role\" value=\"`$prop.connection-attachment.role`\" />\t\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sdwanVpnName`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Created\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 656.6908569335938,
- "y": 1793.531904220581,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "54e2f563.b3af5c",
- "291816ed.18393a"
- ]
- ]
- },
- {
- "id": "54e2f563.b3af5c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 851.4527931213379,
- "y": 1784.4845056533813,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "a3778d99.3c015"
- ]
- ]
- },
- {
- "id": "a3778d99.3c015",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
- "comments": "",
- "x": 1017.9766731262207,
- "y": 1796.1035766601562,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "291816ed.18393a",
- "type": "failure",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 858.5480804443359,
- "y": 1817.246473312378,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "a3778d99.3c015"
- ]
- ]
- },
- {
- "id": "ac365c56.4b2",
- "type": "comment",
- "name": "Save Resource to AAI",
- "info": "",
- "comments": "",
- "x": 690.5005340576172,
- "y": 1761.833875656128,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "81ef7e04.cd917",
- "type": "comment",
- "name": "Set allotted resource type if not sent by SO",
- "info": "",
- "comments": "",
- "x": 692,
- "y": 235.00000095367432,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "3718c342.00f4ac",
- "type": "switchNode",
- "name": "switch allotted-resource-type",
- "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 653.9233093261719,
- "y": 275.5660572052002,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "64aa0e9c.b1d09",
- "7800ea8d.a7f124"
- ]
- ]
- },
- {
- "id": "64aa0e9c.b1d09",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 856.9234619140625,
- "y": 260.56606006622314,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "f530af4a.706e5"
- ]
- ]
- },
- {
- "id": "7800ea8d.a7f124",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 849.9232902526855,
- "y": 300.5660800933838,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "7a986711.0ca2d8"
- ]
- ]
- },
- {
- "id": "7a986711.0ca2d8",
- "type": "set",
- "name": "set tmp.ar.allotted-resource-type",
- "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
- "comments": "",
- "x": 1081.9232749938965,
- "y": 300.56608486175537,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "369cb772.706cb8",
- "type": "comment",
- "name": "For storage in AAI connection-attachment-topology",
- "info": "",
- "comments": "",
- "x": 716.9999618530273,
- "y": 370.0000009536743,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "492255d4.2adf4c",
- "type": "comment",
- "name": "Obtain different URL, template location etc",
- "info": "For saving resource information to MDSAL & for AAI",
- "comments": "",
- "x": 691.9999465942383,
- "y": 451.8889102935791,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "ddea3893.c96cd8",
- "type": "comment",
- "name": "Used for Put AR by id to MDSAL",
- "info": "",
- "comments": "",
- "x": 658.0000305175781,
- "y": 540.8889274597168,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "a440e95e.3176f8",
- "type": "comment",
- "name": "Obtain the last index in services",
- "info": "ServiceData is added by Provider code",
- "comments": "",
- "x": 659.4444732666016,
- "y": 726.8888721466064,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "a79587b.c624178",
- "type": "set",
- "name": "set output to api handler",
- "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
- "comments": "",
- "x": 642.2681427001953,
- "y": 1700.359203338623,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "9d0211a4.58ce8",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
- "comments": "",
- "x": 610.6812286376953,
- "y": 1862.9749298095703,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "f530af4a.706e5",
- "type": "set",
- "name": "set tmp.ar.allotted-resource-type",
- "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
- "comments": "",
- "x": 1096.0001487731934,
- "y": 260.99998664855957,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "30825693.105b0a",
- "type": "execute",
- "name": "execute RestApiCallNode - PUT AR by id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 693.0002746582031,
- "y": 1634.00013256073,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "7725804e.b7ea",
- "ff126c78.d9f65",
- "34ce7aa1.c96186"
- ]
- ]
- },
- {
- "id": "7725804e.b7ea",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 942.6416282653809,
- "y": 1672.3314628601074,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "d7cd6db2.d2286"
- ]
- ]
- },
- {
- "id": "ff126c78.d9f65",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 933.6416778564453,
- "y": 1640.831488609314,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "d7cd6db2.d2286"
- ]
- ]
- },
- {
- "id": "34ce7aa1.c96186",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 937.391716003418,
- "y": 1611.1885934844613,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "6ccc24c6.03b4dc"
- ]
- ]
- },
- {
- "id": "d7cd6db2.d2286",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
- "comments": "",
- "x": 1103.391716003418,
- "y": 1641.5815124511719,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "6ccc24c6.03b4dc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1079.0476837158203,
- "y": 1607.3807626739144,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "7c0d6a4c.141ba4",
- "type": "execute",
- "name": "execute RestApiCallNode - Update parent provided service AR",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 757.9999542236328,
- "y": 1150.000165939331,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "494a716e.866ba",
- "227c3021.44dc4",
- "ff8b452c.8d9bc8"
- ]
- ]
- },
- {
- "id": "494a716e.866ba",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1066.3080139160156,
- "y": 1181.998441696167,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "aaeb645f.80fed8"
- ]
- ]
- },
- {
- "id": "227c3021.44dc4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1057.30806350708,
- "y": 1150.4984674453735,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "aaeb645f.80fed8"
- ]
- ]
- },
- {
- "id": "ff8b452c.8d9bc8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1061.0581016540527,
- "y": 1120.8555723205209,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "74f3a310.0128fc"
- ]
- ]
- },
- {
- "id": "aaeb645f.80fed8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
- "comments": "",
- "x": 1227.0581016540527,
- "y": 1151.2484912872314,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "74f3a310.0128fc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1202.714069366455,
- "y": 1117.047741509974,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "9405156b.c649a8",
- "type": "comment",
- "name": "Put the parent allotted resource in mdsal",
- "info": "",
- "comments": "",
- "x": 686.9999008178711,
- "y": 1112.000072479248,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "cf809c65.e205f",
- "type": "set",
- "name": "set connection-attachment-ar-identifiers",
- "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
- "comments": "",
- "x": 683.3570861816406,
- "y": 1314.5716915130615,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "605ed84a.e90ef8",
- "type": "set",
- "name": "set ar-data",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />",
- "comments": "",
- "x": 603.2139129638672,
- "y": 1282.381194114685,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "5ffc39de.e33178",
- "type": "set",
- "name": "set identifiers in overall structure",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n",
- "comments": "",
- "x": 662.1668853759766,
- "y": 1348.6668767929077,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "b70e6d89.61807",
- "type": "execute",
- "name": "execute getTime",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 614.4997253417969,
- "y": 1422.0004043579102,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "2fe0bf35.0314b",
- "type": "set",
- "name": "set allotted-resource-oper-status",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
- "comments": "",
- "x": 665.4867630004883,
- "y": 1477.9516372680664,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "4b90a515.ea737c",
- "type": "set",
- "name": "set model-data",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
- "comments": "",
- "x": 610.0553817749023,
- "y": 1383.5557622909546,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "a3fd3ef0.9cf2",
- "type": "comment",
- "name": "Prepare data for allotted-resource addition to MDSAL",
- "info": "This will add to allotted-resource which is present inside service.",
- "comments": "",
- "x": 727.3888702392578,
- "y": 1248.5556087493896,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "aec371b2.f4eb6",
- "type": "execute",
- "name": "generate parent-ar url - replace allotted-resource-id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 722.5000152587891,
- "y": 1076.0000114440918,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "cc1d8a7e.c8e908",
- "type": "execute",
- "name": "generate parent-ar url - replace service-instance-id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 718.4999389648438,
- "y": 1033.000147819519,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "af622d17.e96e6",
- "type": "comment",
- "name": "Prepare Parent AR URL",
- "info": "Preparation to set provided-allotted-resource in parent service instance",
- "comments": "",
- "x": 636.5003967285156,
- "y": 962.0001010894775,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "99b25b64.985da8",
- "type": "set",
- "name": "set tmp.ar.parent-service-instance-id",
- "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
- "comments": "",
- "x": 675.5001907348633,
- "y": 995.5000405311584,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "cec76fbc.ec734",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource as cosumed allotted resource already exists.\" />\n",
- "comments": "",
- "x": 2232.7569732666016,
- "y": 833.645830154419,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "6dd5cf93.f0258",
- "type": "set",
- "name": "set tmp.found-cidx",
- "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
- "comments": "",
- "x": 1358.6461448669434,
- "y": 745.3125731945038,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "fcf58d3f.726c9",
- "type": "comment",
- "name": "Add to parent services provided-allotted-resources in mdsal",
- "info": "",
- "comments": "",
- "x": 747.2015075683594,
- "y": 929.9792575836182,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "edb39741.2151b8",
- "type": "comment",
- "name": "Add to allotted-resources in mdsal",
- "info": "",
- "comments": "",
- "x": 667.9686965942383,
- "y": 1215.9689378738403,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "64a66d0e.2cab24",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1341.000051498413,
- "y": 643.2777614593506,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "c5b1dd9f.c626c"
- ]
- ]
- },
- {
- "id": "c5b1dd9f.c626c",
- "type": "switchNode",
- "name": "switch cr length",
- "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1528.8574314117432,
- "y": 643.8968968391418,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "dea64b0a.33d1a8"
- ]
- ]
- },
- {
- "id": "dea64b0a.33d1a8",
- "type": "other",
- "name": "outcome 1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1728.1905536651611,
- "y": 643.896975517273,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "fd6c452f.f52a18"
- ]
- ]
- },
- {
- "id": "5c590a79.9e0264",
- "type": "execute",
- "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 813.0000534057617,
- "y": 638.0000371932983,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "83948a24.3af768",
- "a688402e.6a3a9"
- ]
- ]
- },
- {
- "id": "a688402e.6a3a9",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1181.0000839233398,
- "y": 608.0000352859497,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "a6697dc2.ce9f3"
- ]
- ]
- },
- {
- "id": "a6697dc2.ce9f3",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1333.0000839233398,
- "y": 607.0000352859497,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "adeabb6e.cf7758",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 619.0039215087891,
- "y": 1553.2500038146973,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "96f36120.1f9af",
- "6b505cd5.c78924"
- ]
- ]
- },
- {
- "id": "96f36120.1f9af",
- "type": "for",
- "name": "for each sdwan-get-request-input-param",
- "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 954.0041198730469,
- "y": 1499.2501260638237,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "7401fe63.179e9"
- ]
- ]
- },
- {
- "id": "4e61fb49.c94114",
- "type": "comment",
- "name": "Required for filling template values",
- "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
- "comments": "",
- "x": 976.4486236572266,
- "y": 1533.0832867622375,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "d4660c0f.147f3",
- "type": "comment",
- "name": "Remove VNFC prefix",
- "info": "",
- "comments": "",
- "x": 1037.003963470459,
- "y": 1455.6944618225098,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "7401fe63.179e9",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1201.0039672851562,
- "y": 1500.6943712234497,
- "z": "77e7049e.a5a37c",
- "wires": [
- [
- "6a638cf5.ebb554",
- "3e399a15.de4336"
- ]
- ]
- },
- {
- "id": "50ce4566.040d7c",
- "type": "comment",
- "name": "Take the parameter names by removing prefix",
- "info": "",
- "comments": "",
- "x": 1469.0038146972656,
- "y": 1416.250369310379,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "6a638cf5.ebb554",
- "type": "execute",
- "name": "execute split parameterName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1420.0384826660156,
- "y": 1451.2294654846191,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- },
- {
- "id": "3e399a15.de4336",
- "type": "set",
- "name": "set parameterName",
- "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
- "comments": "",
- "x": 1408.4829559326172,
- "y": 1555.2294359207153,
- "z": "77e7049e.a5a37c",
- "wires": []
- },
- {
- "id": "6b505cd5.c78924",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 995.0039672851562,
- "y": 1573.2500658035278,
- "z": "77e7049e.a5a37c",
- "wires": [
- []
- ]
- }
-]
+[
+ {
+ "id": "41a7b6d3.f9b528",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 104.03125,
+ "y": 62.99999749660492,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f309be9c.cefce"
+ ]
+ ]
+ },
+ {
+ "id": "f309be9c.cefce",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 287.03125381469727,
+ "y": 137.00001561641693,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "63686a7b.f7aa94"
+ ]
+ ]
+ },
+ {
+ "id": "63686a7b.f7aa94",
+ "type": "method",
+ "name": "sdwan-attachment-topology-operation-create",
+ "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 275.0313720703125,
+ "y": 224.99999845027924,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "445b402d.36165"
+ ]
+ ]
+ },
+ {
+ "id": "445b402d.36165",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 195.03130340576172,
+ "y": 974.0002464056015,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "57abe88c.4f1e28",
+ "da2ee563.ca49c8",
+ "d7db7598.ec6a58",
+ "b1a31713.a74f68",
+ "bb52c8b.9210938",
+ "e248322d.07f73",
+ "e3ed6a01.033e28",
+ "49207aa3.305be4",
+ "e7fc7beb.0c2218",
+ "fff0be1d.b2bcf",
+ "6737ccd9.1b9484",
+ "3d98ece2.536f54",
+ "279d04d9.311b7c",
+ "bd2101b.463ff",
+ "a593e64c.edffe8",
+ "ad258829.1a9fb8",
+ "d28d77a4.947808",
+ "b3ca8b3e.e57468",
+ "4f85eb.0fdeca14",
+ "4b8ef133.24669",
+ "3a0fc26c.48c2fe",
+ "13f594ad.41064b",
+ "571ae355.45c2fc",
+ "936a519f.07274"
+ ]
+ ]
+ },
+ {
+ "id": "f44d3a22.e968a8",
+ "type": "comment",
+ "name": "Set allotted resource id if not sent by SO",
+ "info": "",
+ "comments": "",
+ "x": 679.1080017089844,
+ "y": 134.43391740322113,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "57abe88c.4f1e28",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 625.0312805175781,
+ "y": 189.9999908208847,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "4ebc9e25.f0a41",
+ "c5e852a7.8a1b7"
+ ]
+ ]
+ },
+ {
+ "id": "4ebc9e25.f0a41",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 823.0313682556152,
+ "y": 159.9999793767929,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "80de8467.db5608"
+ ]
+ ]
+ },
+ {
+ "id": "c5e852a7.8a1b7",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 822.0312767028809,
+ "y": 196.9999898672104,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f37c96f7.6c5a88"
+ ]
+ ]
+ },
+ {
+ "id": "f37c96f7.6c5a88",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
+ "comments": "",
+ "x": 1020.0312652587891,
+ "y": 194.00000894069672,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "da2ee563.ca49c8",
+ "type": "set",
+ "name": "set tmp.ar.self-link",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "comments": "",
+ "x": 593.0312042236328,
+ "y": 411.00009763240814,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "d7db7598.ec6a58",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 593.2931213378906,
+ "y": 492.666778922081,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b1a31713.a74f68",
+ "type": "execute",
+ "name": "generate allotted-resource tmp.ar-url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 646.2931823730469,
+ "y": 579.6666969060898,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80de8467.db5608",
+ "type": "execute",
+ "name": "execute tmp.ar.allotted-resource-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1038.0313453674316,
+ "y": 160.9999850988388,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "827e9a97.124e48"
+ ]
+ ]
+ },
+ {
+ "id": "827e9a97.124e48",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1256.0313873291016,
+ "y": 160.99994885921478,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "153037d4.5daa68"
+ ]
+ ]
+ },
+ {
+ "id": "153037d4.5daa68",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
+ "comments": "",
+ "x": 1422.0313415527344,
+ "y": 160.99996316432953,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "8fcb37f5.98d048",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1152.0314807891846,
+ "y": 651.7778695821762,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "91db96ee.5f5ab8"
+ ]
+ ]
+ },
+ {
+ "id": "bc59ed7b.1de9c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error: Existing connection attachment allotted resource\" />\n \n",
+ "comments": "",
+ "x": 1885.5498600006104,
+ "y": 652.8439410924911,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "b0f210fa.eabdf",
+ "type": "comment",
+ "name": "Check for non existence of allotted resource",
+ "info": "",
+ "comments": "",
+ "x": 1008.0314025878906,
+ "y": 585.7779363393784,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "a2101ce1.011fb",
+ "type": "for",
+ "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
+ "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1528.6979484558105,
+ "y": 796.0000487565994,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f78e26b6.71e388"
+ ]
+ ]
+ },
+ {
+ "id": "e248322d.07f73",
+ "type": "switchNode",
+ "name": "switch service-data.consumed-allotted-resources_length",
+ "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 710.6972732543945,
+ "y": 772.7140811681747,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "30dfa22f.78a2de",
+ "3fbb9163.26209e"
+ ]
+ ]
+ },
+ {
+ "id": "30dfa22f.78a2de",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1014.8401718139648,
+ "y": 741.5715183019638,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "a8a680b4.767d6"
+ ]
+ ]
+ },
+ {
+ "id": "3fbb9163.26209e",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 991.8402214050293,
+ "y": 802.5714734792709,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c3b51f9c.33bcc"
+ ]
+ ]
+ },
+ {
+ "id": "c3b51f9c.33bcc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1151.9673118591309,
+ "y": 800.6974500417709,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "a2101ce1.011fb",
+ "e3a80e4a.14e7d",
+ "6c9a2abd.a627f4"
+ ]
+ ]
+ },
+ {
+ "id": "a8a680b4.767d6",
+ "type": "set",
+ "name": "set cidx",
+ "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
+ "comments": "",
+ "x": 1164.6971549987793,
+ "y": 739.2855685949326,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e3ed6a01.033e28",
+ "type": "set",
+ "name": "set consumed allotted resources",
+ "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
+ "comments": "",
+ "x": 639.5545654296875,
+ "y": 876.2856458425522,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e3a80e4a.14e7d",
+ "type": "switchNode",
+ "name": "switch tmp.found-cidx",
+ "xml": "<switch test='`$tmp.found-cidx`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1341.0823593139648,
+ "y": 832.7089728116989,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "cbb92020.3ddcd"
+ ]
+ ]
+ },
+ {
+ "id": "cbb92020.3ddcd",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1531.0823135375977,
+ "y": 832.708909869194,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "808efd55.65f55"
+ ]
+ ]
+ },
+ {
+ "id": "808efd55.65f55",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1697.0823135375977,
+ "y": 832.708909869194,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "6d2d79a2.093ad8"
+ ]
+ ]
+ },
+ {
+ "id": "f78e26b6.71e388",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1945.8095779418945,
+ "y": 793.0000756978989,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "b1c9d43a.bd2f08"
+ ]
+ ]
+ },
+ {
+ "id": "b1c9d43a.bd2f08",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2127.619152069092,
+ "y": 793.4645227193832,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "1288ae5b.1e1ce2"
+ ]
+ ]
+ },
+ {
+ "id": "6d2d79a2.093ad8",
+ "type": "set",
+ "name": "set tmp.cidx",
+ "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
+ "comments": "",
+ "x": 1858.955696105957,
+ "y": 832.2206109762192,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "8e24c24b.d6fc2",
+ "type": "comment",
+ "name": "Add to consumed service consumed-allotted-resources in mdsal",
+ "info": "Prepare data and add to service-data",
+ "comments": "",
+ "x": 731.698486328125,
+ "y": 703.0000451803207,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "2cffaf1f.4fc49",
+ "type": "comment",
+ "name": "This set resource will be added to MDSAL by provider code",
+ "info": "Below we add to service-data.consumed-allotted-resource at last index",
+ "comments": "",
+ "x": 719.0314025878906,
+ "y": 841.7781375646591,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "571ae355.45c2fc",
+ "type": "update",
+ "name": "save AAI allotted-resource",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"role\" value=\"`$prop.connection-attachment.role`\" />\t\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sdwanVpnName`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Created\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 629.7221069335938,
+ "y": 1801.531901717186,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "bad0c727.d486c8",
+ "6744df38.44f3c"
+ ]
+ ]
+ },
+ {
+ "id": "bad0c727.d486c8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 824.4840431213379,
+ "y": 1792.4845031499863,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "be610d32.68478"
+ ]
+ ]
+ },
+ {
+ "id": "be610d32.68478",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 991.0079231262207,
+ "y": 1804.1035741567612,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "6744df38.44f3c",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 831.5793304443359,
+ "y": 1825.2464708089828,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "be610d32.68478"
+ ]
+ ]
+ },
+ {
+ "id": "7ddcb0e1.3b36d",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 663.5317840576172,
+ "y": 1769.8338731527328,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "42977fdb.9150a",
+ "type": "comment",
+ "name": "Set allotted resource type if not sent by SO",
+ "info": "",
+ "comments": "",
+ "x": 665.03125,
+ "y": 242.99999845027924,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "bb52c8b.9210938",
+ "type": "switchNode",
+ "name": "switch allotted-resource-type",
+ "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 626.9545593261719,
+ "y": 283.5660547018051,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "ebcdd7cc.5ddb28",
+ "5e1b4704.ff03b8"
+ ]
+ ]
+ },
+ {
+ "id": "ebcdd7cc.5ddb28",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 829.9547119140625,
+ "y": 268.56605756282806,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "e292f924.218148"
+ ]
+ ]
+ },
+ {
+ "id": "5e1b4704.ff03b8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 822.9545402526855,
+ "y": 308.5660775899887,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "bc4b0c6b.6b5dc"
+ ]
+ ]
+ },
+ {
+ "id": "bc4b0c6b.6b5dc",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-type",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
+ "comments": "",
+ "x": 1054.9545249938965,
+ "y": 308.5660823583603,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e49aa8f1.f12588",
+ "type": "comment",
+ "name": "For storage in AAI connection-attachment-topology",
+ "info": "",
+ "comments": "",
+ "x": 690.0312118530273,
+ "y": 377.99999845027924,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "c0fccf31.3b1b7",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 665.0311965942383,
+ "y": 459.888907790184,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "100bd889.c313d7",
+ "type": "comment",
+ "name": "Used for Put AR by id to MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 631.0312805175781,
+ "y": 548.8889249563217,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "18c10c65.2f90b4",
+ "type": "comment",
+ "name": "Obtain the last index in services",
+ "info": "ServiceData is added by Provider code",
+ "comments": "",
+ "x": 632.4757232666016,
+ "y": 734.8888696432114,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "4f85eb.0fdeca14",
+ "type": "set",
+ "name": "set output to api handler",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "comments": "",
+ "x": 615.2993927001953,
+ "y": 1708.359200835228,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "4b8ef133.24669",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "x": 583.7125244140625,
+ "y": 1957.974946975708,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "e292f924.218148",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-type",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
+ "comments": "",
+ "x": 1069.0313987731934,
+ "y": 268.9999841451645,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "b3ca8b3e.e57468",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT AR by id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 666.0315246582031,
+ "y": 1642.000130057335,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "891b6f50.0b8ca",
+ "17f28b89.81c5a4",
+ "6238cca6.7c6784"
+ ]
+ ]
+ },
+ {
+ "id": "891b6f50.0b8ca",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 915.6728782653809,
+ "y": 1680.3314603567123,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c7ada304.940bb"
+ ]
+ ]
+ },
+ {
+ "id": "17f28b89.81c5a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 906.6729278564453,
+ "y": 1648.8314861059189,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c7ada304.940bb"
+ ]
+ ]
+ },
+ {
+ "id": "6238cca6.7c6784",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 910.422966003418,
+ "y": 1619.1885909810662,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "9d842474.1d5df8"
+ ]
+ ]
+ },
+ {
+ "id": "c7ada304.940bb",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1076.422966003418,
+ "y": 1649.5815099477768,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "9d842474.1d5df8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1052.0789337158203,
+ "y": 1615.3807601705194,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6737ccd9.1b9484",
+ "type": "execute",
+ "name": "execute RestApiCallNode - Update parent provided service AR",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 731.0312042236328,
+ "y": 1158.000163435936,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "ce9d67c0.fef428",
+ "32ea0966.e31a46",
+ "8052d936.8da758"
+ ]
+ ]
+ },
+ {
+ "id": "ce9d67c0.fef428",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1039.3392639160156,
+ "y": 1189.998439192772,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "cecd64fe.528bd8"
+ ]
+ ]
+ },
+ {
+ "id": "32ea0966.e31a46",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1030.33931350708,
+ "y": 1158.4984649419785,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "cecd64fe.528bd8"
+ ]
+ ]
+ },
+ {
+ "id": "8052d936.8da758",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1034.0893516540527,
+ "y": 1128.8555698171258,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c4a631eb.caa38"
+ ]
+ ]
+ },
+ {
+ "id": "cecd64fe.528bd8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1200.0893516540527,
+ "y": 1159.2484887838364,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "c4a631eb.caa38",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1175.745319366455,
+ "y": 1125.047739006579,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9c5665b2.ee98f8",
+ "type": "comment",
+ "name": "Put the parent allotted resource in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 660.0311508178711,
+ "y": 1120.000069975853,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "279d04d9.311b7c",
+ "type": "set",
+ "name": "set connection-attachment-ar-identifiers",
+ "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
+ "comments": "",
+ "x": 656.3883361816406,
+ "y": 1322.5716890096664,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "3d98ece2.536f54",
+ "type": "set",
+ "name": "set ar-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />",
+ "comments": "",
+ "x": 576.2451629638672,
+ "y": 1290.38119161129,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "bd2101b.463ff",
+ "type": "set",
+ "name": "set identifiers in overall structure",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n",
+ "comments": "",
+ "x": 635.1981353759766,
+ "y": 1356.6668742895126,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "a593e64c.edffe8",
+ "type": "execute",
+ "name": "execute getTime",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 587.5309753417969,
+ "y": 1430.000401854515,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ad258829.1a9fb8",
+ "type": "set",
+ "name": "set allotted-resource-oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
+ "comments": "",
+ "x": 638.5180130004883,
+ "y": 1485.9516347646713,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "d28d77a4.947808",
+ "type": "set",
+ "name": "set model-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
+ "comments": "",
+ "x": 583.0866317749023,
+ "y": 1391.5557597875595,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "23859bfe.f043f4",
+ "type": "comment",
+ "name": "Prepare data for allotted-resource addition to MDSAL",
+ "info": "This will add to allotted-resource which is present inside service.",
+ "comments": "",
+ "x": 700.4201202392578,
+ "y": 1256.5556062459946,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "fff0be1d.b2bcf",
+ "type": "execute",
+ "name": "generate parent-ar url - replace allotted-resource-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 695.5312652587891,
+ "y": 1084.0000089406967,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e7fc7beb.0c2218",
+ "type": "execute",
+ "name": "generate parent-ar url - replace service-instance-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 691.5311889648438,
+ "y": 1041.000145316124,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80cf2b3b.3e92b8",
+ "type": "comment",
+ "name": "Prepare Parent AR URL",
+ "info": "Preparation to set provided-allotted-resource in parent service instance",
+ "comments": "",
+ "x": 609.5316467285156,
+ "y": 970.0000985860825,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "49207aa3.305be4",
+ "type": "set",
+ "name": "set tmp.ar.parent-service-instance-id",
+ "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
+ "comments": "",
+ "x": 648.5314407348633,
+ "y": 1003.5000380277634,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "1288ae5b.1e1ce2",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource as cosumed allotted resource already exists.\" />\n",
+ "comments": "",
+ "x": 2205.7882232666016,
+ "y": 841.6458276510239,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "6c9a2abd.a627f4",
+ "type": "set",
+ "name": "set tmp.found-cidx",
+ "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
+ "comments": "",
+ "x": 1331.6773948669434,
+ "y": 753.3125706911087,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "57452405.e26b5c",
+ "type": "comment",
+ "name": "Add to parent services provided-allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 720.2327575683594,
+ "y": 937.9792550802231,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "6013a8b1.8cfec8",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 640.9999465942383,
+ "y": 1223.9689353704453,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "91db96ee.5f5ab8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1314.031301498413,
+ "y": 651.2777589559555,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "d36cd8c7.bbc8c8"
+ ]
+ ]
+ },
+ {
+ "id": "d36cd8c7.bbc8c8",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1501.8886814117432,
+ "y": 651.8968943357468,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c670c701.c3ff18"
+ ]
+ ]
+ },
+ {
+ "id": "c670c701.c3ff18",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1701.2218036651611,
+ "y": 651.8969730138779,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "bc59ed7b.1de9c"
+ ]
+ ]
+ },
+ {
+ "id": "3a0fc26c.48c2fe",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 786.0313034057617,
+ "y": 646.0000346899033,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "8fcb37f5.98d048",
+ "230adea5.52af62"
+ ]
+ ]
+ },
+ {
+ "id": "230adea5.52af62",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1154.0313339233398,
+ "y": 616.0000327825546,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "f02fcbfc.47bf28"
+ ]
+ ]
+ },
+ {
+ "id": "f02fcbfc.47bf28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1306.0313339233398,
+ "y": 615.0000327825546,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "13f594ad.41064b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 592.0351715087891,
+ "y": 1561.2500013113022,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c4d3876.e194578",
+ "a56d9e1e.69cb5"
+ ]
+ ]
+ },
+ {
+ "id": "c4d3876.e194578",
+ "type": "for",
+ "name": "for each sdwan-get-request-input-param",
+ "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 927.0353698730469,
+ "y": 1507.2501235604286,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "c009da24.7d2598"
+ ]
+ ]
+ },
+ {
+ "id": "654cbf55.2b8ad",
+ "type": "comment",
+ "name": "Required for filling template values",
+ "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
+ "comments": "",
+ "x": 949.4798736572266,
+ "y": 1541.0832842588425,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "eaf3595.bafe4a8",
+ "type": "comment",
+ "name": "Remove VNFC prefix",
+ "info": "",
+ "comments": "",
+ "x": 1010.035213470459,
+ "y": 1463.6944593191147,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "c009da24.7d2598",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1174.0352172851562,
+ "y": 1508.6943687200546,
+ "z": "588621bb.e9fef",
+ "wires": [
+ [
+ "447c6486.c17b2c",
+ "fb95c554.72d748"
+ ]
+ ]
+ },
+ {
+ "id": "6b76a58c.b29a1c",
+ "type": "comment",
+ "name": "Take the parameter names by removing prefix",
+ "info": "",
+ "comments": "",
+ "x": 1442.0350646972656,
+ "y": 1424.250366806984,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "447c6486.c17b2c",
+ "type": "execute",
+ "name": "execute split parameterName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1393.0697326660156,
+ "y": 1459.229462981224,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fb95c554.72d748",
+ "type": "set",
+ "name": "set parameterName",
+ "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
+ "comments": "",
+ "x": 1381.5142059326172,
+ "y": 1563.2294334173203,
+ "z": "588621bb.e9fef",
+ "wires": []
+ },
+ {
+ "id": "a56d9e1e.69cb5",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 968.0352172851562,
+ "y": 1581.2500633001328,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "936a519f.07274",
+ "type": "save",
+ "name": "save allotted relationship in AAI",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance:relationship-list\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id\" \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"allotted-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/business/customers/customer/' + $connection-attachment-topology-operation-input.service-information.global-customer-id + '/service-subscriptions/service-subscription/' + $connection-attachment-topology-operation-input.service-information.subscription-service-type + '/service-instances/service-instance/' + $connection-attachment-topology-operation-input.service-information.service-instance-id + '/allotted-resources/allotted-resource/' + $tmp.ar.allotted-resource-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"allotted-resource.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 641.0312767028809,
+ "y": 1884.531162261963,
+ "z": "588621bb.e9fef",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
index 919c397a..d0888583 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
@@ -1,212 +1,212 @@
-[
- {
- "id": "30fe9468.76f32c",
- "type": "get-resource",
- "name": "get-resource service-subscription",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data-tenant\">\n \n",
- "comments": "",
- "outputs": 1,
- "x": 632.8652648925781,
- "y": 374.2938051223755,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "a889eb39.2fcd08",
- "483504b1.ecba4c"
- ]
- ]
- },
- {
- "id": "516f9f53.00463",
- "type": "switchNode",
- "name": "switch temp-ub-sub-account-id",
- "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1044.8653564453125,
- "y": 339.0438861846924,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "f1e993a3.ae05f",
- "6af3c030.9694c"
- ]
- ]
- },
- {
- "id": "f1e993a3.ae05f",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 1237.5798072814941,
- "y": 313.043927192688,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "be0f95e9.861918"
- ]
- ]
- },
- {
- "id": "6af3c030.9694c",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 1237.8653717041016,
- "y": 368.04388999938965,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "3bf7a2b9.96247e"
- ]
- ]
- },
- {
- "id": "a889eb39.2fcd08",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 843.3651275634766,
- "y": 347.0398635864258,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "516f9f53.00463"
- ]
- ]
- },
- {
- "id": "483504b1.ecba4c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 837.0437164306641,
- "y": 399.2541751861572,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "212060fe.4fc32"
- ]
- ]
- },
- {
- "id": "212060fe.4fc32",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
- "comments": "",
- "x": 989.7937164306641,
- "y": 399.0042362213135,
- "z": "97aa802d.404bc",
- "wires": []
- },
- {
- "id": "b6a8c3c7.8bc03",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "comments": "",
- "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
- "outputs": 1,
- "x": 212.86526489257812,
- "y": 101.43669128417969,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "68fe5032.b2685"
- ]
- ]
- },
- {
- "id": "f788aa3b.dab3e8",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 133.57955932617188,
- "y": 39.19858169555664,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "b6a8c3c7.8bc03"
- ]
- ]
- },
- {
- "id": "672a5bc8.7ace04",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 366.81766510009766,
- "y": 338.0081157684326,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "30fe9468.76f32c",
- "ef87bbc7.0bf428"
- ]
- ]
- },
- {
- "id": "68fe5032.b2685",
- "type": "method",
- "name": "method sdwan-get-tenant-auth",
- "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 224.57955932617188,
- "y": 195.7849235534668,
- "z": "97aa802d.404bc",
- "wires": [
- [
- "672a5bc8.7ace04"
- ]
- ]
- },
- {
- "id": "3bf7a2b9.96247e",
- "type": "set",
- "name": "set prop.tenant-id",
- "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",
- "comments": "",
- "x": 1415.7224426269531,
- "y": 367.15094566345215,
- "z": "97aa802d.404bc",
- "wires": []
- },
- {
- "id": "ef87bbc7.0bf428",
- "type": "execute",
- "name": "execute RestApiCallNode Create tenant auth",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 660.3652954101562,
- "y": 477.1866149902344,
- "z": "97aa802d.404bc",
- "wires": [
- []
- ]
- },
- {
- "id": "be0f95e9.861918",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
- "comments": "",
- "x": 1420.0080490112305,
- "y": 312.86523628234863,
- "z": "97aa802d.404bc",
- "wires": []
- }
-]
+[
+ {
+ "id": "b8581db5.dbca7",
+ "type": "get-resource",
+ "name": "get-resource service-subscription",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data-tenant\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 597,
+ "y": 418.09522092342377,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "1a771e75.f79d12",
+ "ac62029.181ce"
+ ]
+ ]
+ },
+ {
+ "id": "5d45ba87.92c374",
+ "type": "switchNode",
+ "name": "switch temp-ub-sub-account-id",
+ "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1009.0000915527344,
+ "y": 382.84530198574066,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "5358b5db.d1e49c",
+ "28c300d9.7fa36"
+ ]
+ ]
+ },
+ {
+ "id": "5358b5db.d1e49c",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1201.714542388916,
+ "y": 356.84534299373627,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "831b80bb.e08e8"
+ ]
+ ]
+ },
+ {
+ "id": "28c300d9.7fa36",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1202.0001068115234,
+ "y": 411.8453058004379,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "e1a74ece.52f65"
+ ]
+ ]
+ },
+ {
+ "id": "1a771e75.f79d12",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 807.4998626708984,
+ "y": 390.84127938747406,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "5d45ba87.92c374"
+ ]
+ ]
+ },
+ {
+ "id": "ac62029.181ce",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 801.1784515380859,
+ "y": 443.0555909872055,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "f81e2009.7dbd5"
+ ]
+ ]
+ },
+ {
+ "id": "f81e2009.7dbd5",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 953.9284515380859,
+ "y": 442.80565202236176,
+ "z": "a703782b.2992b8",
+ "wires": []
+ },
+ {
+ "id": "4bd31b43.411d14",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 177,
+ "y": 145.23810708522797,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "d79d2c6f.11854"
+ ]
+ ]
+ },
+ {
+ "id": "c863bd10.503ce",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 97.71429443359375,
+ "y": 82.99999749660492,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "4bd31b43.411d14"
+ ]
+ ]
+ },
+ {
+ "id": "5dc11f37.9dd37",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 330.95240020751953,
+ "y": 381.8095315694809,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "b8581db5.dbca7",
+ "c8c0bf77.157a7"
+ ]
+ ]
+ },
+ {
+ "id": "d79d2c6f.11854",
+ "type": "method",
+ "name": "method sdwan-get-tenant-auth",
+ "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 188.71429443359375,
+ "y": 239.58633935451508,
+ "z": "a703782b.2992b8",
+ "wires": [
+ [
+ "5dc11f37.9dd37"
+ ]
+ ]
+ },
+ {
+ "id": "e1a74ece.52f65",
+ "type": "set",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",
+ "comments": "",
+ "x": 1379.857177734375,
+ "y": 410.9523614645004,
+ "z": "a703782b.2992b8",
+ "wires": []
+ },
+ {
+ "id": "c8c0bf77.157a7",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 624.5000305175781,
+ "y": 520.9880307912827,
+ "z": "a703782b.2992b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "831b80bb.e08e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1384.1427841186523,
+ "y": 356.6666520833969,
+ "z": "a703782b.2992b8",
+ "wires": []
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
index 3f7cbdc4..9d8b0292 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
@@ -1,847 +1,847 @@
-[
- {
- "id": "b728dcab.e2e08",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 93,
- "y": 47,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "f1013e83.11195"
- ]
- ]
- },
- {
- "id": "f1013e83.11195",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "comments": "",
- "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
- "outputs": 1,
- "x": 279.00000381469727,
- "y": 119.0000171661377,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "4636719f.41274"
- ]
- ]
- },
- {
- "id": "4636719f.41274",
- "type": "method",
- "name": "method sdwan-network-topology-operation-activate",
- "xml": "<method rpc='sdwan-network-topology-operation-activate' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 267.0001220703125,
- "y": 207,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "c7a7aadf.8ed488"
- ]
- ]
- },
- {
- "id": "c7a7aadf.8ed488",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 441.00001525878906,
- "y": 315.0000591278076,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "98d3b92f.70fc48",
- "189da6d2.5a6819",
- "e988ff0f.b5aae",
- "e4aad21c.e7ff7",
- "39e02c84.3177e4",
- "b96459be.6fd7a8",
- "747d96dd.f43d58",
- "39860903.53b456",
- "69af4cc7.202f04",
- "bc16f27b.ec50b",
- "29cb6e2b.ecafd2",
- "f71b9190.340d8",
- "3eb35468.4702ac",
- "d3877bd.f214188",
- "73dbb3c3.f1d1fc",
- "9bf6657f.dd37a8"
- ]
- ]
- },
- {
- "id": "98d3b92f.70fc48",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 899.3889007568359,
- "y": 64,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "189da6d2.5a6819",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 699.5555992126465,
- "y": 117.77785301208496,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "e988ff0f.b5aae",
- "type": "set",
- "name": "set networkId and network-object-path",
- "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
- "comments": "",
- "x": 786.5558776855469,
- "y": 1040.313469171524,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "e4aad21c.e7ff7",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
- "comments": "",
- "x": 708.3336791992188,
- "y": 1229.868889093399,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "39e02c84.3177e4",
- "type": "set",
- "name": "set network-level-oper-status",
- "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
- "comments": "",
- "x": 753.4447937011719,
- "y": 1101.5356438159943,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "b96459be.6fd7a8",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 731.8577041625977,
- "y": 170.77788925170898,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "747d96dd.f43d58",
- "type": "update",
- "name": "update SDWAN VPN status to AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanat-id' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />",
- "comments": "",
- "outputs": 1,
- "x": 770.6635093688965,
- "y": 1164.2388553619385,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "39860903.53b456",
- "type": "set",
- "name": "set network in service-data",
- "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
- "comments": "",
- "x": 747.0004081726074,
- "y": 987.0913031101227,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "69af4cc7.202f04",
- "type": "for",
- "name": "for each network-input-parameters",
- "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 784,
- "y": 241.00390753149986,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "e4f0bee4.ba4a3"
- ]
- ]
- },
- {
- "id": "e4f0bee4.ba4a3",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1040.8334312438965,
- "y": 175.33725866675377,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "9e11c248.9eb9d",
- "9793f672.805878"
- ]
- ]
- },
- {
- "id": "9e11c248.9eb9d",
- "type": "switchNode",
- "name": "switch name",
- "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1231.8334922790527,
- "y": 171.33729109168053,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "8c9ad24.52d233"
- ]
- ]
- },
- {
- "id": "8c9ad24.52d233",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1405.8336181640625,
- "y": 171.3372949063778,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "360dce92.bcd8b2"
- ]
- ]
- },
- {
- "id": "360dce92.bcd8b2",
- "type": "set",
- "name": "set name",
- "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 1568.8335037231445,
- "y": 170.93728956580162,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "f71b9190.340d8",
- "type": "get-resource",
- "name": "get-resource esr-thirdparty-sdnc",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = 'SDWANController' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 778,
- "y": 350.00390625,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "35c5eced.422b74",
- "5db3feca.9679c",
- "84542dcd.8c846"
- ]
- ]
- },
- {
- "id": "35c5eced.422b74",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1023,
- "y": 296.00390753149986,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "b858bea3.dfbd9"
- ]
- ]
- },
- {
- "id": "5db3feca.9679c",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1026.490966796875,
- "y": 343.5779431760311,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "ea674168.c4155"
- ]
- ]
- },
- {
- "id": "84542dcd.8c846",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1021.823974609375,
- "y": 384.91125616431236,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "95ebd94d.24be88"
- ]
- ]
- },
- {
- "id": "b858bea3.dfbd9",
- "type": "set",
- "name": "set controller data",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
- "comments": "",
- "x": 1220.5000610351562,
- "y": 284.00390753149986,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "ea674168.c4155",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 1203.0623779296875,
- "y": 331.8636792600155,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "95ebd94d.24be88",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 1209.5965309143066,
- "y": 380.350448936224,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "3eb35468.4702ac",
- "type": "execute",
- "name": "execute RestApiCallNode Get token",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
- "comments": "",
- "outputs": 1,
- "x": 786,
- "y": 461.00390625,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "d801cca4.51d79",
- "c1258051.e7f45"
- ]
- ]
- },
- {
- "id": "d801cca4.51d79",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1025.000072479248,
- "y": 439.00393772125244,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "f717dae9.6ebf18"
- ]
- ]
- },
- {
- "id": "c1258051.e7f45",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1017.250072479248,
- "y": 492.6468210220337,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "d37810c8.811c7"
- ]
- ]
- },
- {
- "id": "f717dae9.6ebf18",
- "type": "set",
- "name": "set token-id",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
- "comments": "",
- "x": 1175,
- "y": 440.00390625,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "d37810c8.811c7",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
- "comments": "",
- "x": 1170.000072479248,
- "y": 492.39688205718994,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "9793f672.805878",
- "type": "switchNode",
- "name": "switch topology",
- "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1230.25,
- "y": 224.00390753149986,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "cfe36c58.4801f"
- ]
- ]
- },
- {
- "id": "cfe36c58.4801f",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1404.2501258850098,
- "y": 224.00391134619713,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "3cd1ca28.cc1526"
- ]
- ]
- },
- {
- "id": "3cd1ca28.cc1526",
- "type": "set",
- "name": "set topology",
- "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 1567.2500114440918,
- "y": 223.60390600562096,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "d3877bd.f214188",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 707.7500457763672,
- "y": 707.0040292739868,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "7110150.fd1e8ec"
- ]
- ]
- },
- {
- "id": "7110150.fd1e8ec",
- "type": "execute",
- "name": "execute RestApiCallNode Create network orchestration",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1028.2501525878906,
- "y": 696.0041122436523,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "bc16f27b.ec50b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 710.2500152587891,
- "y": 769.0039575994015,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "39c058d0.1d59d8",
- "4d96e12b.86876",
- "50f144c4.b6b2ac"
- ]
- ]
- },
- {
- "id": "4d96e12b.86876",
- "type": "execute",
- "name": "execute RestApiCallNode Create vpn",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 981.7500610351562,
- "y": 759.0040815770626,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "39c058d0.1d59d8",
- "type": "set",
- "name": "set prop.vpn-id and prop.vpn1Id",
- "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.success[0].id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.success[0].id`' />\n",
- "comments": "",
- "x": 977.7502174377441,
- "y": 811.0041809082031,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "50f144c4.b6b2ac",
- "type": "execute",
- "name": "execute RestApiCallNode Create vpn topology",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn-id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1009.2500648498535,
- "y": 863.0039558410645,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "29cb6e2b.ecafd2",
- "type": "set",
- "name": "set tenant-id to service-data",
- "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='tenant-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.tenant-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
- "comments": "",
- "x": 745.2501525878906,
- "y": 904.7540903091431,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "9bf6657f.dd37a8",
- "type": "get-resource",
- "name": "get-resource service-subscription",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n \n",
- "comments": "",
- "outputs": 1,
- "x": 762.0715408325195,
- "y": 611.6825218200684,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "fbe99e6e.4017e",
- "457e75b8.5e8e7c"
- ]
- ]
- },
- {
- "id": "ba35b9dd.539428",
- "type": "switchNode",
- "name": "switch temp-ub-sub-account-id",
- "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1174.071632385254,
- "y": 576.4326028823853,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "76b51f1a.0801",
- "efbb35c.45c87c8"
- ]
- ]
- },
- {
- "id": "76b51f1a.0801",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 1366.78609085083,
- "y": 550.432635307312,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "a2a000be.ae6b"
- ]
- ]
- },
- {
- "id": "efbb35c.45c87c8",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 1367.071647644043,
- "y": 605.4326066970825,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "864dc517.ee5aa8"
- ]
- ]
- },
- {
- "id": "5407a489.2a82dc",
- "type": "set",
- "name": "set prop.tenant-id",
- "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
- "comments": "",
- "x": 1614.5002403259277,
- "y": 690.5754070281982,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "a2a000be.ae6b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1506.2499885559082,
- "y": 550.7539038658142,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "d533a7b3.2b7aa8",
- "68abe37a.a97c3c",
- "ebb2a924.447738",
- "3179cec4.da2412",
- "df370d35.edba",
- "5f23c930.bf33c8",
- "d5098f7f.2d7c"
- ]
- ]
- },
- {
- "id": "3179cec4.da2412",
- "type": "set",
- "name": "set prop.customer-id",
- "xml": "<set>\n<parameter name='prop.customer-id' value='`$ctx.network-data.service-information.global-customer-id`' />\n",
- "comments": "",
- "x": 1717.8930969238281,
- "y": 361.3254642486572,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "d533a7b3.2b7aa8",
- "type": "execute",
- "name": "execute RestApiCallNode Create tenant",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1776.8929138183594,
- "y": 491.89675521850586,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "68abe37a.a97c3c",
- "type": "set",
- "name": "set prop.tenant-id",
- "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
- "comments": "",
- "x": 1729.7502326965332,
- "y": 616.753984451294,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "ebb2a924.447738",
- "type": "execute",
- "name": "execute RestApiCallNode Create tenant auth",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1797.250228881836,
- "y": 652.503984451294,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "df370d35.edba",
- "type": "get-resource",
- "name": "update-resource customer-id in service-subscription",
- "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$tenant-result.data.tenantId`' />\n<!--parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' /-->\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1821.1786041259766,
- "y": 552.8968715667725,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "fbe99e6e.4017e",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 972.571403503418,
- "y": 584.4285802841187,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "ba35b9dd.539428"
- ]
- ]
- },
- {
- "id": "457e75b8.5e8e7c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 966.2499923706055,
- "y": 636.6428918838501,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "df05b13b.b352c"
- ]
- ]
- },
- {
- "id": "df05b13b.b352c",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
- "comments": "",
- "x": 1118.9999923706055,
- "y": 636.3929529190063,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "73dbb3c3.f1d1fc",
- "type": "set",
- "name": "set vpn-id to service-data",
- "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='vpn-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.vpn-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
- "comments": "",
- "x": 743.5000762939453,
- "y": 942.5039682388306,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "864dc517.ee5aa8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1425.7224044799805,
- "y": 688.5795984268188,
- "z": "4c287bc.f107e84",
- "wires": [
- [
- "5407a489.2a82dc",
- "75fd5cb0.1720a4"
- ]
- ]
- },
- {
- "id": "75fd5cb0.1720a4",
- "type": "execute",
- "name": "execute RestApiCallNode Create tenant auth",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1697.1510009765625,
- "y": 737.1510009765625,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- },
- {
- "id": "5f23c930.bf33c8",
- "type": "set",
- "name": "set prop.userAccount",
- "xml": "<set>\n<parameter name='prop.userAccount' value='`$tmp.userAccountEmail`' />\n<parameter name='prop.userEmail' value='`$tmp.userAccountEmail`' />",
- "comments": "",
- "x": 1718,
- "y": 439,
- "z": "4c287bc.f107e84",
- "wires": []
- },
- {
- "id": "d5098f7f.2d7c",
- "type": "execute",
- "name": "execute concat customer-id and @test.com",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1793.0038757324219,
- "y": 403.003942489624,
- "z": "4c287bc.f107e84",
- "wires": [
- []
- ]
- }
-]
+[
+ {
+ "id": "803ab026.91f8f",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 107.03125,
+ "y": 31.031251907348633,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "c6313a09.482648"
+ ]
+ ]
+ },
+ {
+ "id": "c6313a09.482648",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 293.03125381469727,
+ "y": 103.03126907348633,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "95ab199b.094c18"
+ ]
+ ]
+ },
+ {
+ "id": "95ab199b.094c18",
+ "type": "method",
+ "name": "method sdwan-network-topology-operation-activate",
+ "xml": "<method rpc='sdwan-network-topology-operation-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 281.0313720703125,
+ "y": 191.03125190734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "1c62871.b17ef79"
+ ]
+ ]
+ },
+ {
+ "id": "1c62871.b17ef79",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 455.03126525878906,
+ "y": 299.03131103515625,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "3b3f6a1b.7b4ca6",
+ "4e3bd6cb.ba9f78",
+ "694fbbd7.3f5854",
+ "17e80004.9e42d",
+ "285802e9.ef74ae",
+ "620b9b98.d14b04",
+ "8b0e2661.6611b8",
+ "418307b4.ccc048",
+ "96303f3f.254fa",
+ "2f6a3a39.effb56",
+ "e079dd14.d6c7f",
+ "c053f4f5.ddb828",
+ "9311c45c.c481e8",
+ "f2e5b424.d52178",
+ "9cac03d4.f972",
+ "9720bf6e.06444"
+ ]
+ ]
+ },
+ {
+ "id": "3b3f6a1b.7b4ca6",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 913.4201507568359,
+ "y": 48.03125190734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4e3bd6cb.ba9f78",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 713.5868492126465,
+ "y": 101.8091049194336,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "694fbbd7.3f5854",
+ "type": "set",
+ "name": "set networkId and network-object-path",
+ "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
+ "comments": "",
+ "x": 800.5871276855469,
+ "y": 1024.3447210788727,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "17e80004.9e42d",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "x": 722.3649291992188,
+ "y": 1213.9001410007477,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "285802e9.ef74ae",
+ "type": "set",
+ "name": "set network-level-oper-status",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
+ "comments": "",
+ "x": 767.4760437011719,
+ "y": 1085.566895723343,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "620b9b98.d14b04",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 745.8889541625977,
+ "y": 154.80914115905762,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8b0e2661.6611b8",
+ "type": "update",
+ "name": "update SDWAN VPN status to AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanat-id' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 784.6947593688965,
+ "y": 1148.270107269287,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "418307b4.ccc048",
+ "type": "set",
+ "name": "set network in service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
+ "comments": "",
+ "x": 761.0316581726074,
+ "y": 971.1225550174713,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "96303f3f.254fa",
+ "type": "for",
+ "name": "for each network-input-parameters",
+ "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 798.03125,
+ "y": 225.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "ce83acb3.4528a"
+ ]
+ ]
+ },
+ {
+ "id": "ce83acb3.4528a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1054.8646812438965,
+ "y": 159.3685105741024,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "ecc115d.f7101e8",
+ "d7b4205b.949d1"
+ ]
+ ]
+ },
+ {
+ "id": "ecc115d.f7101e8",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1245.8647422790527,
+ "y": 155.36854299902916,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "f5dbb094.881f6"
+ ]
+ ]
+ },
+ {
+ "id": "f5dbb094.881f6",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1419.8648681640625,
+ "y": 155.36854681372643,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "d151144e.a69038"
+ ]
+ ]
+ },
+ {
+ "id": "d151144e.a69038",
+ "type": "set",
+ "name": "set name",
+ "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1582.8647537231445,
+ "y": 154.96854147315025,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "c053f4f5.ddb828",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = 'SDWANController' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 792.03125,
+ "y": 334.03515815734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "6d5ba109.a3671",
+ "90ffe3bf.39fcd",
+ "dbe2a88c.8b12f8"
+ ]
+ ]
+ },
+ {
+ "id": "6d5ba109.a3671",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1037.03125,
+ "y": 280.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "f907f929.492558"
+ ]
+ ]
+ },
+ {
+ "id": "90ffe3bf.39fcd",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1040.522216796875,
+ "y": 327.60919508337975,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "b624a8b6.bf4ac8"
+ ]
+ ]
+ },
+ {
+ "id": "dbe2a88c.8b12f8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1035.855224609375,
+ "y": 368.942508071661,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "7d3f8d7a.844044"
+ ]
+ ]
+ },
+ {
+ "id": "f907f929.492558",
+ "type": "set",
+ "name": "set controller data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
+ "comments": "",
+ "x": 1234.5313110351562,
+ "y": 268.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "b624a8b6.bf4ac8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 1217.0936279296875,
+ "y": 315.8949311673641,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "7d3f8d7a.844044",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 1223.6277809143066,
+ "y": 364.3817008435726,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "9311c45c.c481e8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 800.03125,
+ "y": 445.03515815734863,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "e9b6301b.a1571",
+ "27918c6e.3a59a4"
+ ]
+ ]
+ },
+ {
+ "id": "e9b6301b.a1571",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1039.031322479248,
+ "y": 423.0351896286011,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "25b0c9da.a209a6"
+ ]
+ ]
+ },
+ {
+ "id": "27918c6e.3a59a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1031.281322479248,
+ "y": 476.6780729293823,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "5b42d4fd.ac727c"
+ ]
+ ]
+ },
+ {
+ "id": "25b0c9da.a209a6",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 1189.03125,
+ "y": 424.03515815734863,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "5b42d4fd.ac727c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1184.031322479248,
+ "y": 476.4281339645386,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "d7b4205b.949d1",
+ "type": "switchNode",
+ "name": "switch topology",
+ "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1244.28125,
+ "y": 208.0351594388485,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "9f3b4d42.904a6"
+ ]
+ ]
+ },
+ {
+ "id": "9f3b4d42.904a6",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1418.2813758850098,
+ "y": 208.03516325354576,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "c7a8b800.265778"
+ ]
+ ]
+ },
+ {
+ "id": "c7a8b800.265778",
+ "type": "set",
+ "name": "set topology",
+ "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1581.2812614440918,
+ "y": 207.6351579129696,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "f2e5b424.d52178",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 721.7812957763672,
+ "y": 691.0352811813354,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "be08c0ea.c5f31"
+ ]
+ ]
+ },
+ {
+ "id": "be08c0ea.c5f31",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create network orchestration",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1042.2814025878906,
+ "y": 680.035364151001,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2f6a3a39.effb56",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 724.2812652587891,
+ "y": 753.0352095067501,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "7ec8c1c5.bf91a",
+ "8dc97b4a.332098",
+ "cd1c7839.bb73a8"
+ ]
+ ]
+ },
+ {
+ "id": "8dc97b4a.332098",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create vpn",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 995.7813110351562,
+ "y": 743.0353334844112,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7ec8c1c5.bf91a",
+ "type": "set",
+ "name": "set prop.vpn-id and prop.vpn1Id",
+ "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.success[0].id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.success[0].id`' />\n",
+ "comments": "",
+ "x": 991.7814674377441,
+ "y": 795.0354328155518,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "cd1c7839.bb73a8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create vpn topology",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology-create.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn-id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1023.2813148498535,
+ "y": 847.0352077484131,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e079dd14.d6c7f",
+ "type": "set",
+ "name": "set tenant-id to service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='tenant-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.tenant-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
+ "comments": "",
+ "x": 759.2814025878906,
+ "y": 888.7853422164917,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "9720bf6e.06444",
+ "type": "get-resource",
+ "name": "get-resource service-subscription",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 776.1027908325195,
+ "y": 595.713773727417,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "bbcbdc4.862f32",
+ "4736bcfb.a0c9e4"
+ ]
+ ]
+ },
+ {
+ "id": "b8d38e16.8f50d",
+ "type": "switchNode",
+ "name": "switch temp-ub-sub-account-id",
+ "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1188.102882385254,
+ "y": 560.4638547897339,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "59cc568a.83f018",
+ "73ddfac2.a0d4e4"
+ ]
+ ]
+ },
+ {
+ "id": "59cc568a.83f018",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1380.81734085083,
+ "y": 534.4638872146606,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "e9b5fb34.606db8"
+ ]
+ ]
+ },
+ {
+ "id": "73ddfac2.a0d4e4",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1381.102897644043,
+ "y": 589.4638586044312,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "b0968203.54d37"
+ ]
+ ]
+ },
+ {
+ "id": "fb4eb84c.02a668",
+ "type": "set",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
+ "comments": "",
+ "x": 1628.5314903259277,
+ "y": 674.6066589355469,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "e9b5fb34.606db8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1520.2812385559082,
+ "y": 534.7851557731628,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "caa8d5b4.0ad2b8",
+ "a7278d93.3720c",
+ "160a6c8c.918963",
+ "da44425a.02876",
+ "416c4dbb.36fe64",
+ "4cac2ec3.0933d",
+ "33b241ad.e4aa3e"
+ ]
+ ]
+ },
+ {
+ "id": "da44425a.02876",
+ "type": "set",
+ "name": "set prop.customer-id",
+ "xml": "<set>\n<parameter name='prop.customer-id' value='`$ctx.network-data.service-information.global-customer-id`' />\n",
+ "comments": "",
+ "x": 1731.9243469238281,
+ "y": 345.35671615600586,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "caa8d5b4.0ad2b8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1790.9241638183594,
+ "y": 475.9280071258545,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a7278d93.3720c",
+ "type": "set",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
+ "comments": "",
+ "x": 1743.7814826965332,
+ "y": 600.7852363586426,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "160a6c8c.918963",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1811.281478881836,
+ "y": 636.5352363586426,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "416c4dbb.36fe64",
+ "type": "get-resource",
+ "name": "update-resource customer-id in service-subscription",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$tenant-result.data.tenantId`' />\n<!--parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' /-->\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1835.2098541259766,
+ "y": 536.9281234741211,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bbcbdc4.862f32",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.602653503418,
+ "y": 568.4598321914673,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "b8d38e16.8f50d"
+ ]
+ ]
+ },
+ {
+ "id": "4736bcfb.a0c9e4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 980.2812423706055,
+ "y": 620.6741437911987,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "f07e116f.03b5"
+ ]
+ ]
+ },
+ {
+ "id": "f07e116f.03b5",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1133.0312423706055,
+ "y": 620.424204826355,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "9cac03d4.f972",
+ "type": "set",
+ "name": "set vpn-id to service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='vpn-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.vpn-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />",
+ "comments": "",
+ "x": 757.5313262939453,
+ "y": 926.5352201461792,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "b0968203.54d37",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1439.7536544799805,
+ "y": 672.6108503341675,
+ "z": "b086040b.a7e558",
+ "wires": [
+ [
+ "fb4eb84c.02a668",
+ "a2f6331e.2d634"
+ ]
+ ]
+ },
+ {
+ "id": "a2f6331e.2d634",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1711.1822509765625,
+ "y": 721.1822528839111,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4cac2ec3.0933d",
+ "type": "set",
+ "name": "set prop.userAccount",
+ "xml": "<set>\n<parameter name='prop.userAccount' value='`$tmp.userAccountEmail`' />\n<parameter name='prop.userEmail' value='`$tmp.userAccountEmail`' />",
+ "comments": "",
+ "x": 1732.03125,
+ "y": 423.03125190734863,
+ "z": "b086040b.a7e558",
+ "wires": []
+ },
+ {
+ "id": "33b241ad.e4aa3e",
+ "type": "execute",
+ "name": "execute concat customer-id and @test.com",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1807.0351257324219,
+ "y": 387.03519439697266,
+ "z": "b086040b.a7e558",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json
index bd24e0f2..89e1e861 100644
--- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json
@@ -1,2997 +1,3087 @@
-[
- {
- "id": "510329fc.5eb288",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 92,
- "y": 51,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "d0754e51.43601"
- ]
- ]
- },
- {
- "id": "d0754e51.43601",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "comments": "",
- "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
- "outputs": 1,
- "x": 304.00000381469727,
- "y": 123.0000171661377,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "5324d186.c424e"
- ]
- ]
- },
- {
- "id": "5324d186.c424e",
- "type": "method",
- "name": "sotn-attachment-topology-operation-activate",
- "xml": "<method rpc='sotn-attachment-topology-operation-activate' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 292.0001220703125,
- "y": 211,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "200d23ad.1ba52c"
- ]
- ]
- },
- {
- "id": "200d23ad.1ba52c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 308.0001220703125,
- "y": 766.0002446174622,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "50fa98f0.7c4998",
- "6f233fc4.4456d",
- "8ef678b.4678d88",
- "41e3aa85.858d54",
- "b2920bb5.1af8e8",
- "525ecaee.ee9b24",
- "ab2f4625.6243a8",
- "b09745d8.bb7668",
- "b13bf095.cdea1",
- "dcca5b8a.14d818",
- "5d5e7f8f.d3d28",
- "b3a2976e.016ed8",
- "33c05db5.bb8532",
- "dde46f65.1623c",
- "3d236d8e.1a1ed2",
- "9dd9851c.cc5e08",
- "21b8bdc2.b30a32",
- "c4803883.47c5a8",
- "ad2575da.f719b8",
- "c4ade364.dff4"
- ]
- ]
- },
- {
- "id": "50fa98f0.7c4998",
- "type": "set",
- "name": "set tmp.ar.allotted-resource-id,etc",
- "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
- "comments": "",
- "x": 704.9935607910156,
- "y": 164.9934868812561,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "d87c2a28.d4a808",
- "type": "comment",
- "name": "set tmp ar-id to fetch resource from MDSAL",
- "info": "",
- "comments": "",
- "x": 733.9538726806641,
- "y": 129.02528285980225,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "6f233fc4.4456d",
- "type": "set",
- "name": "set tmp.ar.self-link",
- "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
- "comments": "",
- "x": 658.9934997558594,
- "y": 257.99349212646484,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "b2920bb5.1af8e8",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 665.2553901672363,
- "y": 345.6602210998535,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "8ef678b.4678d88",
- "type": "execute",
- "name": "generate allotted-resource tmp.ar-url",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 712.2554473876953,
- "y": 433.6602249145508,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "2c8ad64b.5a9c0a",
- "type": "comment",
- "name": "GET connection-attachment-allotted-resource from mdsal",
- "info": "",
- "comments": "",
- "x": 758.8083801269531,
- "y": 564.5386590957642,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "3f345735.382a78",
- "type": "comment",
- "name": "Used for setting output to API Handler",
- "info": "",
- "comments": "",
- "x": 712.9935302734375,
- "y": 224.993501663208,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "dc7c3756.7911f8",
- "type": "comment",
- "name": "Obtain different URL, template location etc",
- "info": "For saving resource information to MDSAL & for AAI",
- "comments": "",
- "x": 730.9934959411621,
- "y": 310.8823823928833,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "385fcb45.8d58e4",
- "type": "comment",
- "name": "Used to Get AR by id to MDSAL, same as self-link",
- "info": "",
- "comments": "",
- "x": 756.9935150146484,
- "y": 397.8823413848877,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "fb3f3db1.2e857",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1218.6667919158936,
- "y": 581.9999847412109,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "7924d66d.1039e8"
- ]
- ]
- },
- {
- "id": "7924d66d.1039e8",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1362.6668701171875,
- "y": 539.4999027252197,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "2e9884a4.fb6aac"
- ]
- ]
- },
- {
- "id": "2e9884a4.fb6aac",
- "type": "switchNode",
- "name": "switch cr length",
- "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1531.5242938995361,
- "y": 537.1190738677979,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "a5020a5a.1a8de8",
- "a75f121c.781a7"
- ]
- ]
- },
- {
- "id": "a5020a5a.1a8de8",
- "type": "other",
- "name": "outcome 1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1686.8574295043945,
- "y": 509.1189889907837,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "dc7b8304.a3929"
- ]
- ]
- },
- {
- "id": "dc7b8304.a3929",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic='true'>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1845.381233215332,
- "y": 507.02383613586426,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "2e53bf10.53616",
- "4d06247.7481adc",
- "16d5ef9e.67621"
- ]
- ]
- },
- {
- "id": "57e48b3f.e4d594",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connection attachment resource not exist\" />\n \n",
- "comments": "",
- "x": 1785.5191650390625,
- "y": 614.0660705566406,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "549a2a73.774b74",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1210.5185947418213,
- "y": 617.0660696029663,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "13c58b6.0463e75"
- ]
- ]
- },
- {
- "id": "13c58b6.0463e75",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1390.5185451507568,
- "y": 617.7326202392578,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "57e48b3f.e4d594"
- ]
- ]
- },
- {
- "id": "a75f121c.781a7",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1678.185432434082,
- "y": 568.3993635177612,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "57e48b3f.e4d594"
- ]
- ]
- },
- {
- "id": "2e53bf10.53616",
- "type": "set",
- "name": "set connection-attachment-ar from get",
- "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
- "comments": "",
- "x": 2092.4446868896484,
- "y": 480.00008821487427,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "16d5ef9e.67621",
- "type": "set",
- "name": "set oper-status",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
- "comments": "",
- "x": 2026.4447174072266,
- "y": 553.4285907745361,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "4d06247.7481adc",
- "type": "switchNode",
- "name": "switch order-status",
- "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2036.4444961547852,
- "y": 519.0000247955322,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "13c3c1da.98e52e",
- "c01b9863.c31138",
- "bd2b5022.a474e"
- ]
- ]
- },
- {
- "id": "13c3c1da.98e52e",
- "type": "outcome",
- "name": "outcome Created",
- "xml": "<outcome value='Created'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2272.044578552246,
- "y": 513.0000557899475,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "29af8103.34f60e"
- ]
- ]
- },
- {
- "id": "c01b9863.c31138",
- "type": "outcome",
- "name": "outcome Other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2265.759078979492,
- "y": 593.4286904335022,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "869d355f.ff5a28"
- ]
- ]
- },
- {
- "id": "29af8103.34f60e",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2430.515251159668,
- "y": 513.37571144104,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "869d355f.ff5a28",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
- "comments": "",
- "x": 2441.666893005371,
- "y": 592.0000896453857,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "4c9dfad4.b5cb94",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 929.303050994873,
- "y": 664.4936046600342,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "525ecaee.ee9b24",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 623.3091506958008,
- "y": 665.4999752044678,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "4c9dfad4.b5cb94"
- ]
- ]
- },
- {
- "id": "f0374b61.7fdcc8",
- "type": "comment",
- "name": "GET parent-service-data from mdsal to check existence of other End point",
- "info": "",
- "comments": "",
- "x": 811.00048828125,
- "y": 710.5317525863647,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "ee77ccab.555f2",
- "type": "for",
- "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
- "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1702.1851959228516,
- "y": 863.0042300224304,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "1d8e18c9.612a97"
- ]
- ]
- },
- {
- "id": "41e3aa85.858d54",
- "type": "switchNode",
- "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
- "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 786.1842193603516,
- "y": 970.7182664871216,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "227fe562.bef93a",
- "30f6347f.71f27c",
- "8d3aa09e.93736"
- ]
- ]
- },
- {
- "id": "227fe562.bef93a",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1114.3272399902344,
- "y": 1043.5755405426025,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "70131877.497ee8"
- ]
- ]
- },
- {
- "id": "d8325992.1c7e08",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1298.454502105713,
- "y": 902.7015495300293,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "ee77ccab.555f2",
- "7fdc18ff.582858"
- ]
- ]
- },
- {
- "id": "1d8e18c9.612a97",
- "type": "switchNode",
- "name": "switch allotted-resource-id",
- "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2142.2965240478516,
- "y": 860.0040321350098,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "d475cadd.1a2f78",
- "4ec4a51f.47decc"
- ]
- ]
- },
- {
- "id": "d475cadd.1a2f78",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2315.1067390441895,
- "y": 831.4686470031738,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "4ae70fe8.b24e9"
- ]
- ]
- },
- {
- "id": "7b37e59c.23ec7c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 2463.8672103881836,
- "y": 888.3257341384888,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "102e4d37.8fb7c3"
- ]
- ]
- },
- {
- "id": "102e4d37.8fb7c3",
- "type": "set",
- "name": "set tmp.pidx and ptx.consumed-ar",
- "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
- "comments": "",
- "x": 2698.724636077881,
- "y": 886.8972663879395,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "82ecf3e0.5c52b",
- "type": "comment",
- "name": "Check existence of other AR in parent service data",
- "info": "Check if other allotted resource is available.",
- "comments": "",
- "x": 733.9626579284668,
- "y": 875.8929615020752,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "30f6347f.71f27c",
- "type": "other",
- "name": "outcome 1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1128.9797096252441,
- "y": 982.6772241592407,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "2cd6df64.b8473"
- ]
- ]
- },
- {
- "id": "70131877.497ee8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: End points not available\" />\n \n",
- "comments": "",
- "x": 1273.9795875549316,
- "y": 1042.67746925354,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "8d3aa09e.93736",
- "type": "other",
- "name": "outcome 2",
- "xml": "<outcome value='2'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1123.9795227050781,
- "y": 903.6772499084473,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "d8325992.1c7e08"
- ]
- ]
- },
- {
- "id": "4ae70fe8.b24e9",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2473.0909538269043,
- "y": 830.6773900985718,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "4ec4a51f.47decc",
- "type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2322.0905952453613,
- "y": 887.6772499084473,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "7b37e59c.23ec7c"
- ]
- ]
- },
- {
- "id": "7fdc18ff.582858",
- "type": "switchNode",
- "name": "switch tmp.found-in-ar",
- "xml": "<switch test='`$tmp.found-in-ar`'>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1510.9794998168945,
- "y": 956.4550676345825,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "92b2633f.8d761"
- ]
- ]
- },
- {
- "id": "92b2633f.8d761",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1681.97953414917,
- "y": 957.5662889480591,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "c3df20e.333b9e"
- ]
- ]
- },
- {
- "id": "c3df20e.333b9e",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1830.9796295166016,
- "y": 957.5662879943848,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "8c502b5e.ba0e48",
- "b7c302f0.0eaa4"
- ]
- ]
- },
- {
- "id": "642168d6.c96a08",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2577.097454071045,
- "y": 973.7951421737671,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "28182687.5e2d2a"
- ]
- ]
- },
- {
- "id": "d6797517.070b08",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2568.9492568969727,
- "y": 1008.8612270355225,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "863cf5ba.41a538"
- ]
- ]
- },
- {
- "id": "5a7b91f3.92074",
- "type": "switchNode",
- "name": "switch mdsal-psd.service-data.networks_length",
- "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1574.313003540039,
- "y": 1057.899908065796,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "5c7b0dd2.1db974",
- "decd8771.495088"
- ]
- ]
- },
- {
- "id": "decd8771.495088",
- "type": "other",
- "name": "outcome 1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1838.3128509521484,
- "y": 1037.7886543273926,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "26e27dfe.c23ed2"
- ]
- ]
- },
- {
- "id": "5c7b0dd2.1db974",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1828.3129119873047,
- "y": 1085.788625717163,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "2701bab7.b74336"
- ]
- ]
- },
- {
- "id": "2701bab7.b74336",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n",
- "comments": "",
- "x": 1966.9652557373047,
- "y": 1087.890386581421,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "3f964f3.96aa1b",
- "type": "set",
- "name": "set tmp.network.",
- "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n\n\n",
- "comments": "",
- "x": 2199.757709503174,
- "y": 1038.788824081421,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "2cd6df64.b8473",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1296.4240188598633,
- "y": 981.7884912490845,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "5a7b91f3.92074"
- ]
- ]
- },
- {
- "id": "26e27dfe.c23ed2",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1997.0906219482422,
- "y": 1040.7884883880615,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "3f964f3.96aa1b",
- "d34f3159.b7d95"
- ]
- ]
- },
- {
- "id": "d34f3159.b7d95",
- "type": "for",
- "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
- "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
- "comments": "",
- "outputs": 1,
- "x": 2360.090660095215,
- "y": 1086.7886428833008,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "6c6f677c.4a6ae8"
- ]
- ]
- },
- {
- "id": "6c6f677c.4a6ae8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2406.646728515625,
- "y": 1317.7884521484375,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "5a5ff171.f67b5",
- "5ac44b36.e6ed64",
- "477598ab.94c4f8",
- "bf3fd182.60613",
- "ee0ac40b.7c8918",
- "334ef95a.804996",
- "6b4b64b0.8aa49c",
- "f2f619ae.81dc88",
- "7f22248e.623acc",
- "1977cf51.112051"
- ]
- ]
- },
- {
- "id": "5a5ff171.f67b5",
- "type": "switchNode",
- "name": "switch access-node-id",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
- "comments": "",
- "outputs": 1,
- "x": 2683.1569442749023,
- "y": 1159.7991995811462,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "83c25cc5.35c9d"
- ]
- ]
- },
- {
- "id": "83c25cc5.35c9d",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2872.1565704345703,
- "y": 1161.7990641593933,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "80bf2f28.f9eae"
- ]
- ]
- },
- {
- "id": "80bf2f28.f9eae",
- "type": "set",
- "name": "set tmp.found-in-network tmp.ep-available",
- "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
- "comments": "",
- "x": 3125.1567459106445,
- "y": 1161.3991103172302,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "5ac44b36.e6ed64",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
- "comments": "",
- "x": 2657.146396636963,
- "y": 1533.7884907722473,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "b3a2976e.016ed8",
- "type": "switchNode",
- "name": "switch tmp.ep-available",
- "xml": "<switch test='`$tmp.ep-available`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 649.3128204345703,
- "y": 1166.232801437378,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "d67d36b.8c807c8",
- "d4dded0c.3defe"
- ]
- ]
- },
- {
- "id": "d4dded0c.3defe",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 867.9795398712158,
- "y": 1215.5661582946777,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "dac36818.3ade18"
- ]
- ]
- },
- {
- "id": "d67d36b.8c807c8",
- "type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 872.8683414459229,
- "y": 1124.566219329834,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "fea8c889.837c28"
- ]
- ]
- },
- {
- "id": "fea8c889.837c28",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1019.8683376312256,
- "y": 1126.4550323486328,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "dac36818.3ade18",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1038.090627670288,
- "y": 1213.5661163330078,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "47a53791.ce00e8",
- "49abb372.8700ac",
- "73f1353a.31fe0c"
- ]
- ]
- },
- {
- "id": "47a53791.ce00e8",
- "type": "switchNode",
- "name": "switch tmp.found-in-ar",
- "xml": "<switch test='`$tmp.found-in-ar`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1264.2016410827637,
- "y": 1180.5661163330078,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "f3f2f58d.f1fde8",
- "73ae144b.6c716c"
- ]
- ]
- },
- {
- "id": "f3f2f58d.f1fde8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1459.6460876464844,
- "y": 1158.566177368164,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "a49cc189.c10f7"
- ]
- ]
- },
- {
- "id": "73ae144b.6c716c",
- "type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1456.64599609375,
- "y": 1206.566162109375,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "5c6b8964.10acc8"
- ]
- ]
- },
- {
- "id": "a49cc189.c10f7",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1647.2017517089844,
- "y": 1155.566177368164,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "50540586.cfd78c"
- ]
- ]
- },
- {
- "id": "5c6b8964.10acc8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1644.20166015625,
- "y": 1205.566162109375,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "7849a3ee.c57b4c"
- ]
- ]
- },
- {
- "id": "b9bd1802.9893c8",
- "type": "comment",
- "name": "GET connection-attachment-ar to store AR data from mdsal",
- "info": "",
- "comments": "",
- "x": 2156.4728355407715,
- "y": 442.50394773483276,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "811f13c4.a802b",
- "type": "comment",
- "name": "Set source end point",
- "info": "",
- "comments": "",
- "x": 645.9727325439453,
- "y": 531.2539677619934,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "ab2f4625.6243a8",
- "type": "set",
- "name": "set tmp.ar.parent-service-instance-id",
- "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
- "comments": "",
- "x": 696.9688262939453,
- "y": 740.0000905990601,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "e3a34e44.03f86",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1056.968978881836,
- "y": 811.0000772476196,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "1cfd4bb9.99d9a4"
- ]
- ]
- },
- {
- "id": "8447b050.f664b",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1048.8207817077637,
- "y": 846.066162109375,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "7bd6123e.8e599c"
- ]
- ]
- },
- {
- "id": "7bd6123e.8e599c",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Parent service data not available\" />\n \n",
- "comments": "",
- "x": 1194.9695625305176,
- "y": 845.3335733413696,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "1cfd4bb9.99d9a4",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1187.9690742492676,
- "y": 811.0001382827759,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "863cf5ba.41a538",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN provided attachment resource not found\" />\n \n",
- "comments": "",
- "x": 2718.969306945801,
- "y": 1009.00026512146,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "28182687.5e2d2a",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2703.9694290161133,
- "y": 976.0002498626709,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "b09745d8.bb7668",
- "type": "set",
- "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
- "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
- "comments": "",
- "x": 782.9687652587891,
- "y": 913.0000648498535,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "53f5b769.1d9ac8",
- "type": "comment",
- "name": "If other EP exists set destination end point",
- "info": "Check if other allotted resource is available.",
- "comments": "",
- "x": 699.9687652587891,
- "y": 1091.0000133514404,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "39192112.9a7a9e",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1439.9688873291016,
- "y": 1418.0002946853638,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "29497381.2907dc",
- "a8454134.72dfa",
- "b437b233.85dc6",
- "d5da4e92.fd9d5",
- "527cda61.4c5444",
- "21b345b.f16dcba",
- "847549d0.8fada8",
- "46d04af2.172014"
- ]
- ]
- },
- {
- "id": "29497381.2907dc",
- "type": "switchNode",
- "name": "switch access-node-id",
- "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-node-id'`\">",
- "comments": "",
- "outputs": 1,
- "x": 1682.4791889190674,
- "y": 1288.010691165924,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "b53954e3.75f548"
- ]
- ]
- },
- {
- "id": "a8454134.72dfa",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
- "comments": "",
- "x": 1655.4691410064697,
- "y": 1593.0006546974182,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "b437b233.85dc6",
- "type": "switchNode",
- "name": "switch access-ltp-id",
- "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-ltp-id'`\">",
- "comments": "",
- "outputs": 1,
- "x": 1673.9690189361572,
- "y": 1331.7782225608826,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "4beb5c8f.437a34"
- ]
- ]
- },
- {
- "id": "d5da4e92.fd9d5",
- "type": "switchNode",
- "name": "switch clientSignal",
- "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'clientSignal'`\">",
- "comments": "",
- "outputs": 1,
- "x": 1667.9690570831299,
- "y": 1377.778269290924,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "a652bfee.a4a86"
- ]
- ]
- },
- {
- "id": "527cda61.4c5444",
- "type": "switchNode",
- "name": "switch cVLAN",
- "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'cVLAN'`\">",
- "comments": "",
- "outputs": 1,
- "x": 1651.9585590362549,
- "y": 1416.767771244049,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "b6d9ed74.687c9"
- ]
- ]
- },
- {
- "id": "b53954e3.75f548",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1860.1911029815674,
- "y": 1288.6670632362366,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "b7855c9c.e078"
- ]
- ]
- },
- {
- "id": "b7855c9c.e078",
- "type": "set",
- "name": "set dst-access-node-id",
- "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
- "comments": "",
- "x": 2035.1911029815674,
- "y": 1288.267038345337,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "4beb5c8f.437a34",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1855.6809711456299,
- "y": 1331.434519290924,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "17f7ba24.7fa566"
- ]
- ]
- },
- {
- "id": "a652bfee.a4a86",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1855.6809711456299,
- "y": 1377.434519290924,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "b4e0c929.110668"
- ]
- ]
- },
- {
- "id": "b6d9ed74.687c9",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1855.6704730987549,
- "y": 1416.4241433143616,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "90d8491c.861238"
- ]
- ]
- },
- {
- "id": "49abb372.8700ac",
- "type": "for",
- "name": "for idx..tmp.ep.parameters[]",
- "xml": "<for index='idx' start='0' end='`$tmp.ep.parameters.param_length`'>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1292.96875,
- "y": 1306,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "39192112.9a7a9e"
- ]
- ]
- },
- {
- "id": "50540586.cfd78c",
- "type": "set",
- "name": "set tmp.ep.parameters",
- "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$mdsal-other-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.`' />\n",
- "comments": "",
- "x": 1858.9688053131104,
- "y": 1155.0000743865967,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "7849a3ee.c57b4c",
- "type": "set",
- "name": "set tmp.ep.parameters",
- "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$tmp.network.network-data.network-request-input.network-input-parameters.`' />\n",
- "comments": "",
- "x": 1855.968713760376,
- "y": 1201.0000591278076,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "17f7ba24.7fa566",
- "type": "set",
- "name": "set dst-access-node-id",
- "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
- "comments": "",
- "x": 2032.9689350128174,
- "y": 1331.0003151893616,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "b4e0c929.110668",
- "type": "set",
- "name": "set dst-clientSignal",
- "xml": "<set>\n<parameter name='prop.remote.connection-attachment.clientSignal' value='`$tmp.ep.parameters.param[$idx].value`' />",
- "comments": "",
- "x": 2026.9689350128174,
- "y": 1375.0003151893616,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "90d8491c.861238",
- "type": "set",
- "name": "set dst-cVLAN",
- "xml": "<set>\n<parameter name='prop.remote.connection-attachment.cVLAN' value='`$tmp.ep.parameters.param[$idx].value`' />",
- "comments": "",
- "x": 2017.9689350128174,
- "y": 1414.0003151893616,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "7a6bd4c0.0a23ac",
- "type": "comment",
- "name": "Get controller info and send request",
- "info": "",
- "comments": "",
- "x": 1899.968807220459,
- "y": 1885.000153541565,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "e5ca51fb.cb5be",
- "type": "execute",
- "name": "execute RestApiCallNode Create ethernet Service",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1963.9693450927734,
- "y": 2159.001121520996,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "4fd581be.ae7c5",
- "cba0e7bf.640378"
- ]
- ]
- },
- {
- "id": "4fd581be.ae7c5",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2229.9690704345703,
- "y": 2188.001244544983,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "9a1df066.c1be9"
- ]
- ]
- },
- {
- "id": "9a1df066.c1be9",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2377.9690704345703,
- "y": 2186.0011224746704,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "434af439.625b6c",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
- "comments": "",
- "x": 2359.9691009521484,
- "y": 2133.0011825561523,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "cba0e7bf.640378",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2220.969009399414,
- "y": 2133.0011825561523,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "434af439.625b6c"
- ]
- ]
- },
- {
- "id": "1a8278df.ac4137",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 871.7311744689941,
- "y": 2108.9537086486816,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "c4aa74e4.35ca78"
- ]
- ]
- },
- {
- "id": "c4aa74e4.35ca78",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
- "comments": "",
- "x": 1038.2549953460693,
- "y": 2135.5727157592773,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "33c28cf6.2b21a4",
- "type": "failure",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 873.8264026641846,
- "y": 2156.715551376343,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "c4aa74e4.35ca78"
- ]
- ]
- },
- {
- "id": "cb1a048d.e95fc8",
- "type": "comment",
- "name": "Save Resource to AAI",
- "info": "",
- "comments": "",
- "x": 645.7788181304932,
- "y": 2097.3028717041016,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "c4803883.47c5a8",
- "type": "set",
- "name": "set output to api handler",
- "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
- "comments": "",
- "x": 660.5465145111084,
- "y": 2018.8283529281616,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "c4ade364.dff4",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
- "comments": "",
- "x": 620.9596862792969,
- "y": 2204.4441413879395,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "21b8bdc2.b30a32",
- "type": "execute",
- "name": "execute RestApiCallNode - PUT AR by id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 713.2785968780518,
- "y": 1943.4692058563232,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "72334169.43788",
- "91c81d87.0f2e3",
- "4377487a.aa9b58"
- ]
- ]
- },
- {
- "id": "72334169.43788",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 967.9200191497803,
- "y": 1987.8006000518799,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "3aa37f14.b2a12"
- ]
- ]
- },
- {
- "id": "91c81d87.0f2e3",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 969.9200420379639,
- "y": 1946.3005641922355,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "3aa37f14.b2a12"
- ]
- ]
- },
- {
- "id": "4377487a.aa9b58",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 973.6701259613037,
- "y": 1897.6577167510986,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "ce3cc849.21f268"
- ]
- ]
- },
- {
- "id": "3aa37f14.b2a12",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
- "comments": "",
- "x": 1128.67014503479,
- "y": 1966.050630569458,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "ce3cc849.21f268",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1101.3260707855225,
- "y": 1899.8498849868774,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "33c05db5.bb8532",
- "type": "set",
- "name": "set ar-data",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
- "comments": "",
- "x": 615.4922122955322,
- "y": 1777.8501069545746,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "3d236d8e.1a1ed2",
- "type": "execute",
- "name": "execute getTime",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 632.77805519104,
- "y": 1850.4697046279907,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "9dd9851c.cc5e08",
- "type": "set",
- "name": "set allotted-resource-oper-status",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
- "comments": "",
- "x": 682.7651348114014,
- "y": 1887.4207849502563,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "dde46f65.1623c",
- "type": "set",
- "name": "set model-data",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
- "comments": "",
- "x": 629.3337535858154,
- "y": 1817.024757385254,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "c0243700.483a78",
- "type": "comment",
- "name": "Prepare data for allotted-resource addition to MDSAL",
- "info": "This will add to allotted-resource which is present inside service.",
- "comments": "",
- "x": 742.66721534729,
- "y": 1738.0247094631195,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "b128777a.bf8ad8",
- "type": "comment",
- "name": "Add to allotted-resources in mdsal",
- "info": "",
- "comments": "",
- "x": 684.2470417022705,
- "y": 1705.4380111694336,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "ad2575da.f719b8",
- "type": "update",
- "name": "update AAI allotted-resource",
- "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Active\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 672.2230968475342,
- "y": 2134.7550144195557,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "1a8278df.ac4137",
- "33c28cf6.2b21a4"
- ]
- ]
- },
- {
- "id": "73456eef.45eac",
- "type": "execute",
- "name": "execute RestApiCallNode getPath from OOF",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1480.973056793213,
- "y": 1697.2546663284302,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "473a6700.6236e8",
- "5286278b.3b3cd8"
- ]
- ]
- },
- {
- "id": "473a6700.6236e8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1720.9731979370117,
- "y": 1721.254635810852,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "cafce3b5.74fb5"
- ]
- ]
- },
- {
- "id": "dc79f611.cf4238",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing OOF api\" />\n",
- "comments": "",
- "x": 1859.973232269287,
- "y": 1670.2547273635864,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "5286278b.3b3cd8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1719.9729843139648,
- "y": 1670.254726409912,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "dc79f611.cf4238"
- ]
- ]
- },
- {
- "id": "deb094f6.e597f8",
- "type": "comment",
- "name": "Get VPNs from OOF",
- "info": "",
- "comments": "",
- "x": 1466.976978302002,
- "y": 1664.2586660385132,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "da1582e5.d9e86",
- "type": "for",
- "name": "for vidx..oof.vpns_length[]",
- "xml": "<for index='vidx' start='0' end='`$oof.vpns_length`' >",
- "comments": "",
- "outputs": 1,
- "x": 1420.972900390625,
- "y": 1779.50439453125,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "b2ef8ded.b479a"
- ]
- ]
- },
- {
- "id": "c9df49cc.0e8008",
- "type": "comment",
- "name": "Loop through VPN and configure them",
- "info": "",
- "comments": "",
- "x": 1466.9733505249023,
- "y": 1914.0047721862793,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "477598ab.94c4f8",
- "type": "switchNode",
- "name": "switch name",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'name'`\">\n \n",
- "comments": "",
- "outputs": 1,
- "x": 2660.757080078125,
- "y": 1251.121826171875,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "7c0be7f6.9e8c58"
- ]
- ]
- },
- {
- "id": "7c0be7f6.9e8c58",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2849.757049560547,
- "y": 1251.121811389923,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "1cf5a70.cc26659"
- ]
- ]
- },
- {
- "id": "1cf5a70.cc26659",
- "type": "set",
- "name": "set etht-svc-name & bandwidth-profile-name",
- "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name='prop.global.sotn.bandwidth-profile-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
- "comments": "",
- "x": 3090.75736618042,
- "y": 1250.7218661308289,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "bf3fd182.60613",
- "type": "switchNode",
- "name": "switch description",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'description'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2673.5969581604004,
- "y": 1286.1219210624695,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "f2fb468e.d467f8"
- ]
- ]
- },
- {
- "id": "f2fb468e.d467f8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2848.597023010254,
- "y": 1288.1219067573547,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "e7ce8468.64c938"
- ]
- ]
- },
- {
- "id": "e7ce8468.64c938",
- "type": "set",
- "name": "set etht-svc-descr",
- "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-descr' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
- "comments": "",
- "x": 3004.9303398132324,
- "y": 1285.5829815864563,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "ee0ac40b.7c8918",
- "type": "switchNode",
- "name": "switch tenantId",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'tenantId'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2668.979221343994,
- "y": 1319.4553112983704,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "db11a89d.57ead8"
- ]
- ]
- },
- {
- "id": "db11a89d.57ead8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2846.9792251586914,
- "y": 1323.4551892280579,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "a28b1daa.bce21"
- ]
- ]
- },
- {
- "id": "a28b1daa.bce21",
- "type": "set",
- "name": "set tenantId",
- "xml": "<set>\n<parameter name='prop.global.sotn.tenantId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
- "comments": "",
- "x": 2984.9794120788574,
- "y": 1320.0551648139954,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "6b4b64b0.8aa49c",
- "type": "switchNode",
- "name": "switch cir",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'cir'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2651.818820953369,
- "y": 1392.4552664756775,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "779ba6d5.68a5b8"
- ]
- ]
- },
- {
- "id": "779ba6d5.68a5b8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2846.8188858032227,
- "y": 1393.4552664756775,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "51c8d37d.57c57c"
- ]
- ]
- },
- {
- "id": "51c8d37d.57c57c",
- "type": "set",
- "name": "set cir",
- "xml": "<set>\n<parameter name='prop.sotn.cir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
- "comments": "",
- "x": 2971.15238571167,
- "y": 1391.916341304779,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "334ef95a.804996",
- "type": "switchNode",
- "name": "switch vpnType",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'vpnType'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2666.127109527588,
- "y": 1355.232976436615,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "edf65e2e.17eef"
- ]
- ]
- },
- {
- "id": "edf65e2e.17eef",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2848.127296447754,
- "y": 1358.232961177826,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "3a58a10e.af006e"
- ]
- ]
- },
- {
- "id": "3a58a10e.af006e",
- "type": "set",
- "name": "set vpnType",
- "xml": "<set>\n<parameter name='prop.global.sotn.vpnType' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
- "comments": "",
- "x": 2984.461040496826,
- "y": 1354.6942028999329,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "f2f619ae.81dc88",
- "type": "switchNode",
- "name": "switch eir",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'eir'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2647.1091651916504,
- "y": 1426.1531739234924,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "290775a.582758a"
- ]
- ]
- },
- {
- "id": "290775a.582758a",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2847.1094131469727,
- "y": 1429.1531128883362,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "be16065f.3cc068"
- ]
- ]
- },
- {
- "id": "be16065f.3cc068",
- "type": "set",
- "name": "set eir",
- "xml": "<set>\n<parameter name='prop.global.sotn.eir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
- "comments": "",
- "x": 2970.4430351257324,
- "y": 1428.6141724586487,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "7f22248e.623acc",
- "type": "switchNode",
- "name": "switch colorAware",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'colorAware'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2672.109775543213,
- "y": 1460.1530528068542,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "60b638c9.9f5cf8"
- ]
- ]
- },
- {
- "id": "60b638c9.9f5cf8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2843.1095962524414,
- "y": 1466.1529912948608,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "6283050a.9a352c"
- ]
- ]
- },
- {
- "id": "6283050a.9a352c",
- "type": "set",
- "name": "set colorAware",
- "xml": "<set>\n<parameter name='prop.global.sotn.colorAware' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
- "comments": "",
- "x": 2991.44291305542,
- "y": 1466.6142039299011,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "1977cf51.112051",
- "type": "switchNode",
- "name": "switch couplingFlag",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'couplingFlag'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2674.1097145080566,
- "y": 1496.1531147956848,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "95d93fbe.f7437"
- ]
- ]
- },
- {
- "id": "95d93fbe.f7437",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2846.1095962524414,
- "y": 1505.1530842781067,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "ceecc29f.0a56b"
- ]
- ]
- },
- {
- "id": "ceecc29f.0a56b",
- "type": "set",
- "name": "set couplingFlag",
- "xml": "<set>\n<parameter name='prop.global.sotn.couplingFlag' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
- "comments": "",
- "x": 2999.44291305542,
- "y": 1505.6142048835754,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "b4b830f7.2edfb",
- "type": "comment",
- "name": "Check if other EP exists in SOTNConnectionResource",
- "info": "",
- "comments": "",
- "x": 2805.312744140625,
- "y": 1114.7884521484375,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "85af2b8.2c027d8",
- "type": "comment",
- "name": "Get other global parameters from network",
- "info": "",
- "comments": "",
- "x": 2741.3125,
- "y": 1200.7884521484375,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "21b345b.f16dcba",
- "type": "switchNode",
- "name": "switch access-provider-id",
- "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-provider-id'`\">",
- "comments": "",
- "outputs": 1,
- "x": 1689.5348529815674,
- "y": 1462.2329812049866,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "88d75ee0.36aab"
- ]
- ]
- },
- {
- "id": "88d75ee0.36aab",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1876.5348529815674,
- "y": 1458.2329812049866,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "144324cd.dbe03b"
- ]
- ]
- },
- {
- "id": "144324cd.dbe03b",
- "type": "set",
- "name": "set access-provider-id",
- "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 2044.5348529815674,
- "y": 1458.8329873085022,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "847549d0.8fada8",
- "type": "switchNode",
- "name": "switch access-client-id",
- "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-client-id'`\">",
- "comments": "",
- "outputs": 1,
- "x": 1680.5348682403564,
- "y": 1505.2434296607971,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "429ac662.d36c08"
- ]
- ]
- },
- {
- "id": "429ac662.d36c08",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1867.5348682403564,
- "y": 1501.2434296607971,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "fdfea883.43ef38"
- ]
- ]
- },
- {
- "id": "fdfea883.43ef38",
- "type": "set",
- "name": "set access-client-id",
- "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 2035.5348682403564,
- "y": 1501.8434357643127,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "46d04af2.172014",
- "type": "switchNode",
- "name": "switch access-topology-id",
- "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-topology-id'`\">",
- "comments": "",
- "outputs": 1,
- "x": 1693.534812927246,
- "y": 1547.2434606552124,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "f9888c9d.14fbf"
- ]
- ]
- },
- {
- "id": "f9888c9d.14fbf",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1880.534812927246,
- "y": 1543.2434606552124,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "9db1bbe8.d24ee8"
- ]
- ]
- },
- {
- "id": "9db1bbe8.d24ee8",
- "type": "set",
- "name": "set access-topology-id",
- "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 2048.534812927246,
- "y": 1543.843466758728,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "b2ef8ded.b479a",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1644.090217590332,
- "y": 1816.3444538116455,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "ca8a96be.c9e6a8",
- "f4e8e4f3.f6e418",
- "dea701ef.7abc9",
- "644c2300.fecafc",
- "8bddc111.2e08f",
- "981ad4ae.e983a8",
- "55066de5.c71104",
- "3af624e0.31f91c",
- "e5ca51fb.cb5be",
- "2e8e574c.c64e68",
- "b731c6a4.c3a218"
- ]
- ]
- },
- {
- "id": "9f0b7f15.8c307",
- "type": "set",
- "name": "set controller data",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
- "comments": "",
- "x": 2285.534881591797,
- "y": 1880.6776461601257,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "3af624e0.31f91c",
- "type": "get-resource",
- "name": "get-resource esr-thirdparty-sdnc",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1902.0347900390625,
- "y": 1917.6775856018066,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "72570e2d.a62fe",
- "c43ec6a3.683488",
- "fb06874f.97c548"
- ]
- ]
- },
- {
- "id": "72570e2d.a62fe",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2122.034725189209,
- "y": 1881.6775546073914,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "9f0b7f15.8c307"
- ]
- ]
- },
- {
- "id": "c43ec6a3.683488",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2131.525665283203,
- "y": 1922.2515606880188,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "c36ea2d9.d18c4"
- ]
- ]
- },
- {
- "id": "fb06874f.97c548",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2126.858642578125,
- "y": 1958.5848736763,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "668b481.e36d4b8"
- ]
- ]
- },
- {
- "id": "c36ea2d9.d18c4",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 2278.0970153808594,
- "y": 1918.5373873710632,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "668b481.e36d4b8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 2281.6312866210938,
- "y": 1960.0240216255188,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "55066de5.c71104",
- "type": "get-resource",
- "name": "get-resource pnf",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $oof.vpn.access-node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1847.534683227539,
- "y": 1826.6772294044495,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "84c5aa59.ee67d8",
- "41b15be2.0ba8d4",
- "f1b5d69a.0d7998"
- ]
- ]
- },
- {
- "id": "84c5aa59.ee67d8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2029.5347290039062,
- "y": 1771.677339553833,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "7e1d241.12440dc"
- ]
- ]
- },
- {
- "id": "41b15be2.0ba8d4",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2030.0256309509277,
- "y": 1809.2514362335205,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "e55b495c.733518"
- ]
- ]
- },
- {
- "id": "f1b5d69a.0d7998",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2021.358642578125,
- "y": 1842.5848112106323,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "4d6a36cc.899768"
- ]
- ]
- },
- {
- "id": "e55b495c.733518",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
- "comments": "",
- "x": 2177.597255706787,
- "y": 1808.5373249053955,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "4d6a36cc.899768",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
- "comments": "",
- "x": 2175.1312866210938,
- "y": 1842.023959159851,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "7e1d241.12440dc",
- "type": "set",
- "name": "set tmp.thirdparty-sdnc-id",
- "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
- "comments": "",
- "x": 2214.5347290039062,
- "y": 1770.6774616241455,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "9df363c3.42e7",
- "type": "comment",
- "name": "get domain controller information",
- "info": "",
- "comments": "",
- "x": 1898.0385971069336,
- "y": 1793.6811847686768,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "2e8e574c.c64e68",
- "type": "set",
- "name": "set oof.vpn",
- "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />",
- "comments": "",
- "x": 1859.534683227539,
- "y": 1747.7883129119873,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "f4e8e4f3.f6e418",
- "type": "save",
- "name": "save VPN resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",
- "comments": "",
- "outputs": 1,
- "x": 1874.0001602172852,
- "y": 2324.7506742477417,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "dea701ef.7abc9",
- "type": "set",
- "name": "set tmp.vpnName",
- "xml": "<set>\n<parameter name='tmp.vpnName' value=\"`$oof.vpn.access-node-id + '-' + $prop.global.sotn.etht-svc-name`\" />",
- "comments": "",
- "x": 1850.5001602172852,
- "y": 2277.250370979309,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "644c2300.fecafc",
- "type": "save",
- "name": "save connectivity relationship in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1909.0001602172852,
- "y": 2369.7504301071167,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "ce418ee5.81a4e",
- "type": "comment",
- "name": "save vpn and its relation to AAI",
- "info": "",
- "comments": "",
- "x": 1892.000358581543,
- "y": 2238.7506399154663,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "ca8a96be.c9e6a8",
- "type": "set",
- "name": "set src-ltpId dst-ltpId",
- "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",
- "comments": "",
- "x": 1861.0001907348633,
- "y": 2409.7505502700806,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "8bddc111.2e08f",
- "type": "save",
- "name": "save srcLTP relationship in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1895.0004425048828,
- "y": 2449.500759124756,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "981ad4ae.e983a8",
- "type": "save",
- "name": "save dstLTP relationship in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1893.0002746582031,
- "y": 2495.2505979537964,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "b13bf095.cdea1",
- "type": "execute",
- "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 839.0039367675781,
- "y": 600.0039119720459,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "fb3f3db1.2e857",
- "549a2a73.774b74"
- ]
- ]
- },
- {
- "id": "dcca5b8a.14d818",
- "type": "execute",
- "name": "execute RestApiCallNode - get-resource parent service data",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 766.0040893554688,
- "y": 827.004075050354,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "e3a34e44.03f86",
- "8447b050.f664b"
- ]
- ]
- },
- {
- "id": "5d5e7f8f.d3d28",
- "type": "execute",
- "name": "get parent-service-data url",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 666.0039978027344,
- "y": 790.0039081573486,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "8c502b5e.ba0e48",
- "type": "execute",
- "name": "generate tmp.ar-other-url-connection",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-other-url-connection\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.provided-ar.allotted-resource-id`\"/>\n \n\n",
- "comments": "",
- "outputs": 1,
- "x": 2080.0003509521484,
- "y": 946.3334693908691,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "b7c302f0.0eaa4",
- "type": "execute",
- "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-other-url-connection`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-other-ar\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2217.000991821289,
- "y": 988.8333339691162,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "642168d6.c96a08",
- "d6797517.070b08"
- ]
- ]
- },
- {
- "id": "cafce3b5.74fb5",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1842.0002708435059,
- "y": 1712.0001192092896,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "73f1353a.31fe0c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1218.9688835144043,
- "y": 1737.0003032684326,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "73456eef.45eac",
- "da1582e5.d9e86"
- ]
- ]
- },
- {
- "id": "bd2b5022.a474e",
- "type": "outcome",
- "name": "outcome PendingDelete",
- "xml": "<outcome value='PendingDelete'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2293.0313415527344,
- "y": 552.0312976837158,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "44575632.3edd28"
- ]
- ]
- },
- {
- "id": "44575632.3edd28",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2477.031352996826,
- "y": 548.0312976837158,
- "z": "f24fb736.66a428",
- "wires": [
- []
- ]
- },
- {
- "id": "b731c6a4.c3a218",
- "type": "execute",
- "name": "execute RestApiCallNode Get token",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1922.5039367675781,
- "y": 2044.003927230835,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "ce234ab1.289298",
- "b6c8858.bd95c78"
- ]
- ]
- },
- {
- "id": "ce234ab1.289298",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2157.503936767578,
- "y": 2022.003927230835,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "98d09cc3.1216f"
- ]
- ]
- },
- {
- "id": "b6c8858.bd95c78",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2149.753936767578,
- "y": 2075.646810531616,
- "z": "f24fb736.66a428",
- "wires": [
- [
- "82c72a3.d7e47d8"
- ]
- ]
- },
- {
- "id": "82c72a3.d7e47d8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
- "comments": "",
- "x": 2302.503936767578,
- "y": 2075.3968715667725,
- "z": "f24fb736.66a428",
- "wires": []
- },
- {
- "id": "98d09cc3.1216f",
- "type": "set",
- "name": "set token-id",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
- "comments": "",
- "x": 2311.503936767578,
- "y": 2023.003927230835,
- "z": "f24fb736.66a428",
- "wires": []
- }
-]
+[
+ {
+ "id": "856df3f7.e848d",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 287.9998779296875,
+ "y": 432.4548645019531,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "c3ac539a.75d23"
+ ]
+ ]
+ },
+ {
+ "id": "c3ac539a.75d23",
+ "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": 181.99988174438477,
+ "y": 504.4548816680908,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "42cf8419.06f25c"
+ ]
+ ]
+ },
+ {
+ "id": "42cf8419.06f25c",
+ "type": "method",
+ "name": "sotn-attachment-topology-operation-activate",
+ "xml": "<method rpc='sotn-attachment-topology-operation-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 170,
+ "y": 592.4548645019531,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "44229f8c.39b5a"
+ ]
+ ]
+ },
+ {
+ "id": "44229f8c.39b5a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 186,
+ "y": 1147.4551091194153,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "ba9e8375.777f",
+ "15d45773.32c279",
+ "a32bd31f.e0ecd",
+ "d86c13ce.944c4",
+ "47caa47d.16426c",
+ "759ba274.db6d0c",
+ "4c87cfa1.02c6c",
+ "b760f3b3.babf2",
+ "b571fb6b.8ab608",
+ "b52dba2d.a71bc8",
+ "76fbe2f6.cb133c",
+ "c339c30c.1d058",
+ "6927072b.434fa8",
+ "fecc8e1.3af3a7",
+ "71a15b15.32e354",
+ "7f03f367.f1262c",
+ "be2b6004.6abeb",
+ "e4d724bf.bef2c8",
+ "2c5393b4.18384c",
+ "a54e0786.d45e68"
+ ]
+ ]
+ },
+ {
+ "id": "ba9e8375.777f",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id,etc",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 582.9934387207031,
+ "y": 546.4483513832092,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "8dfc51c4.4907a",
+ "type": "comment",
+ "name": "set tmp ar-id to fetch resource from MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 597.4536285400391,
+ "y": 499.48014736175537,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "15d45773.32c279",
+ "type": "set",
+ "name": "set tmp.ar.self-link",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "comments": "",
+ "x": 536.9933776855469,
+ "y": 639.448356628418,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "47caa47d.16426c",
+ "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": 543.2552680969238,
+ "y": 727.1150856018066,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a32bd31f.e0ecd",
+ "type": "execute",
+ "name": "generate allotted-resource tmp.ar-url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 590.2553253173828,
+ "y": 815.1150894165039,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "722a6658.bf16e8",
+ "type": "comment",
+ "name": "GET connection-attachment-allotted-resource from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 622.3081359863281,
+ "y": 934.9935235977173,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "f15283c1.aa42d",
+ "type": "comment",
+ "name": "Used for setting output to API Handler",
+ "info": "",
+ "comments": "",
+ "x": 576.4932861328125,
+ "y": 595.4483661651611,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "56bc8415.3a63fc",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 594.4932518005371,
+ "y": 681.3372468948364,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "d454f4dd.1be708",
+ "type": "comment",
+ "name": "Used to Get AR by id to MDSAL, same as self-link",
+ "info": "",
+ "comments": "",
+ "x": 620.4932708740234,
+ "y": 768.3372058868408,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "860a625.2d0bba",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1096.666669845581,
+ "y": 963.4548492431641,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "23f7f9e5.e74c26"
+ ]
+ ]
+ },
+ {
+ "id": "23f7f9e5.e74c26",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1240.666748046875,
+ "y": 920.9547672271729,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "50c8dc73.ad5724"
+ ]
+ ]
+ },
+ {
+ "id": "50c8dc73.ad5724",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1409.5241718292236,
+ "y": 918.573938369751,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "c054c953.458078",
+ "79145839.1bfe98"
+ ]
+ ]
+ },
+ {
+ "id": "c054c953.458078",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1564.857307434082,
+ "y": 890.5738534927368,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "46a60f4d.34912"
+ ]
+ ]
+ },
+ {
+ "id": "46a60f4d.34912",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1723.3811111450195,
+ "y": 888.4787006378174,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "df6acc2d.ff6de",
+ "612880e0.04607",
+ "cfe330b5.d7e03"
+ ]
+ ]
+ },
+ {
+ "id": "bb2fd456.9a1798",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connection attachment resource not exist\" />\n \n",
+ "comments": "",
+ "x": 1663.51904296875,
+ "y": 995.5209350585938,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "db78a108.063fb",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1088.5184726715088,
+ "y": 998.5209341049194,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "333707db.05b3b8"
+ ]
+ ]
+ },
+ {
+ "id": "333707db.05b3b8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1268.5184230804443,
+ "y": 999.1874847412109,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "bb2fd456.9a1798"
+ ]
+ ]
+ },
+ {
+ "id": "79145839.1bfe98",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1556.1853103637695,
+ "y": 949.8542280197144,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "bb2fd456.9a1798"
+ ]
+ ]
+ },
+ {
+ "id": "df6acc2d.ff6de",
+ "type": "set",
+ "name": "set connection-attachment-ar from get",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
+ "comments": "",
+ "x": 1970.444564819336,
+ "y": 861.4549527168274,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "cfe330b5.d7e03",
+ "type": "set",
+ "name": "set oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
+ "comments": "",
+ "x": 1904.444595336914,
+ "y": 934.8834552764893,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "612880e0.04607",
+ "type": "switchNode",
+ "name": "switch order-status",
+ "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1914.4443740844727,
+ "y": 900.4548892974854,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "59d3ffeb.34439",
+ "b4436494.1a02b8",
+ "3d1a678c.8bbdd8"
+ ]
+ ]
+ },
+ {
+ "id": "59d3ffeb.34439",
+ "type": "outcome",
+ "name": "outcome Created",
+ "xml": "<outcome value='Created'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2150.0444564819336,
+ "y": 894.4549202919006,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "df7e0809.5f60a8"
+ ]
+ ]
+ },
+ {
+ "id": "3d1a678c.8bbdd8",
+ "type": "outcome",
+ "name": "outcome Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2143.7589569091797,
+ "y": 974.8835549354553,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "29c5c973.948626"
+ ]
+ ]
+ },
+ {
+ "id": "df7e0809.5f60a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2308.5151290893555,
+ "y": 894.8305759429932,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "29c5c973.948626",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
+ "comments": "",
+ "x": 2319.6667709350586,
+ "y": 973.4549541473389,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "e7c9e6c8.22ec78",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 807.3029289245605,
+ "y": 1045.9484691619873,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "759ba274.db6d0c",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 501.3090286254883,
+ "y": 1046.954839706421,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "e7c9e6c8.22ec78"
+ ]
+ ]
+ },
+ {
+ "id": "a3f3b1ad.b0019",
+ "type": "comment",
+ "name": "GET parent-service-data from mdsal to check existence of other End point",
+ "info": "",
+ "comments": "",
+ "x": 674.500244140625,
+ "y": 1080.9866170883179,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "76fcae92.3eed7",
+ "type": "for",
+ "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
+ "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1580.185073852539,
+ "y": 1244.4590945243835,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "d5a80521.4971a8"
+ ]
+ ]
+ },
+ {
+ "id": "d86c13ce.944c4",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 664.1840972900391,
+ "y": 1352.1731309890747,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "2966b54a.501cfa",
+ "a9c0a3da.bac0f",
+ "90fbdee6.96522"
+ ]
+ ]
+ },
+ {
+ "id": "2966b54a.501cfa",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 992.3271179199219,
+ "y": 1425.0304050445557,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "e73ccbba.1ddf58"
+ ]
+ ]
+ },
+ {
+ "id": "70b1403b.56bf6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1176.4543800354004,
+ "y": 1284.1564140319824,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "76fcae92.3eed7",
+ "4ca6c420.3d4d6c"
+ ]
+ ]
+ },
+ {
+ "id": "d5a80521.4971a8",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2020.296401977539,
+ "y": 1241.458896636963,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "fbf9bebd.108b5",
+ "1701079a.547728"
+ ]
+ ]
+ },
+ {
+ "id": "fbf9bebd.108b5",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2193.106616973877,
+ "y": 1212.923511505127,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "d1d91e32.6cacd"
+ ]
+ ]
+ },
+ {
+ "id": "ca9dd6b1.dea908",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2341.867088317871,
+ "y": 1269.780598640442,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "74d65b2c.e08474"
+ ]
+ ]
+ },
+ {
+ "id": "74d65b2c.e08474",
+ "type": "set",
+ "name": "set tmp.pidx and ptx.consumed-ar",
+ "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 2576.7245140075684,
+ "y": 1268.3521308898926,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "f9f17725.c60488",
+ "type": "comment",
+ "name": "Check existence of other AR in parent service data",
+ "info": "Check if other allotted resource is available.",
+ "comments": "",
+ "x": 597.4624137878418,
+ "y": 1246.3478260040283,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "a9c0a3da.bac0f",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1006.9795875549316,
+ "y": 1364.1320886611938,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "44d59200.c8af1c"
+ ]
+ ]
+ },
+ {
+ "id": "e73ccbba.1ddf58",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: End points not available\" />\n \n",
+ "comments": "",
+ "x": 1151.9794654846191,
+ "y": 1424.1323337554932,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "90fbdee6.96522",
+ "type": "other",
+ "name": "outcome 2",
+ "xml": "<outcome value='2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1001.9794006347656,
+ "y": 1285.1321144104004,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "70b1403b.56bf6"
+ ]
+ ]
+ },
+ {
+ "id": "d1d91e32.6cacd",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2351.090831756592,
+ "y": 1212.132254600525,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1701079a.547728",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2200.090473175049,
+ "y": 1269.1321144104004,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "ca9dd6b1.dea908"
+ ]
+ ]
+ },
+ {
+ "id": "4ca6c420.3d4d6c",
+ "type": "switchNode",
+ "name": "switch tmp.found-in-ar",
+ "xml": "<switch test='`$tmp.found-in-ar`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1388.979377746582,
+ "y": 1337.9099321365356,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "de2c4f3e.58ca2"
+ ]
+ ]
+ },
+ {
+ "id": "de2c4f3e.58ca2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1559.9794120788574,
+ "y": 1339.0211534500122,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "81e5e824.bbde88"
+ ]
+ ]
+ },
+ {
+ "id": "81e5e824.bbde88",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1708.979507446289,
+ "y": 1339.021152496338,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "ef83619e.fcadf",
+ "70f5ae0d.ee9ea"
+ ]
+ ]
+ },
+ {
+ "id": "a5795c00.0454b8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2455.0973320007324,
+ "y": 1355.2500066757202,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "acd4313a.acdba"
+ ]
+ ]
+ },
+ {
+ "id": "a870baef.09bb38",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2446.94913482666,
+ "y": 1390.3160915374756,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "c23d6d08.4c9e6"
+ ]
+ ]
+ },
+ {
+ "id": "7afdbce8.a487b4",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.networks_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1452.3128814697266,
+ "y": 1439.354772567749,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "3ae2030c.2e369c",
+ "35f89340.b0afec"
+ ]
+ ]
+ },
+ {
+ "id": "35f89340.b0afec",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1716.312728881836,
+ "y": 1419.2435188293457,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "3440b31f.59dfbc"
+ ]
+ ]
+ },
+ {
+ "id": "3ae2030c.2e369c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1706.3127899169922,
+ "y": 1467.2434902191162,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "41cb4081.5cc8b"
+ ]
+ ]
+ },
+ {
+ "id": "41cb4081.5cc8b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n",
+ "comments": "",
+ "x": 1844.9651336669922,
+ "y": 1469.345251083374,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "835a530e.7655e",
+ "type": "set",
+ "name": "set tmp.network.",
+ "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n\n\n",
+ "comments": "",
+ "x": 2077.7575874328613,
+ "y": 1420.243688583374,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "44d59200.c8af1c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1174.4238967895508,
+ "y": 1363.2433557510376,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "7afdbce8.a487b4"
+ ]
+ ]
+ },
+ {
+ "id": "3440b31f.59dfbc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1875.0904998779297,
+ "y": 1422.2433528900146,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "835a530e.7655e",
+ "387084b4.ee101c"
+ ]
+ ]
+ },
+ {
+ "id": "387084b4.ee101c",
+ "type": "for",
+ "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
+ "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2238.0905380249023,
+ "y": 1468.243507385254,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b2211b9d.e49e88"
+ ]
+ ]
+ },
+ {
+ "id": "b2211b9d.e49e88",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2284.6466064453125,
+ "y": 1699.2433166503906,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "ce7f2d9.0fd97d",
+ "296fd7a4.634998",
+ "d50ba090.29ed",
+ "66d0e4de.2681dc",
+ "eec873e9.819a7",
+ "1068d706.4b4119",
+ "d21f1d66.9335f",
+ "bee803df.af903",
+ "45da451c.99e69c",
+ "c3234be0.466328"
+ ]
+ ]
+ },
+ {
+ "id": "ce7f2d9.0fd97d",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2561.15682220459,
+ "y": 1541.2540640830994,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "5cc6ea52.13cad4"
+ ]
+ ]
+ },
+ {
+ "id": "5cc6ea52.13cad4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2750.156448364258,
+ "y": 1543.2539286613464,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "dbd5e88a.b68d18"
+ ]
+ ]
+ },
+ {
+ "id": "dbd5e88a.b68d18",
+ "type": "set",
+ "name": "set tmp.found-in-network tmp.ep-available",
+ "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 3003.156623840332,
+ "y": 1542.8539748191833,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "296fd7a4.634998",
+ "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": 2535.1462745666504,
+ "y": 1915.2433552742004,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "c339c30c.1d058",
+ "type": "switchNode",
+ "name": "switch tmp.ep-available",
+ "xml": "<switch test='`$tmp.ep-available`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 527.3126983642578,
+ "y": 1547.687665939331,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "66f8b762.86d108",
+ "9cb4ba0f.749ab8"
+ ]
+ ]
+ },
+ {
+ "id": "9cb4ba0f.749ab8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 745.9794178009033,
+ "y": 1597.0210227966309,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "27a77fa0.c4aee"
+ ]
+ ]
+ },
+ {
+ "id": "66f8b762.86d108",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 750.8682193756104,
+ "y": 1506.021083831787,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "a01acdad.7b848"
+ ]
+ ]
+ },
+ {
+ "id": "a01acdad.7b848",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 897.8682155609131,
+ "y": 1507.909896850586,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "27a77fa0.c4aee",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 916.0905055999756,
+ "y": 1595.020980834961,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "36228b5c.1add84",
+ "c3a3291b.9f4668",
+ "2222673c.9be3c8"
+ ]
+ ]
+ },
+ {
+ "id": "36228b5c.1add84",
+ "type": "switchNode",
+ "name": "switch tmp.found-in-ar",
+ "xml": "<switch test='`$tmp.found-in-ar`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1142.2015190124512,
+ "y": 1562.020980834961,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "8ea65101.30d46",
+ "d5079913.80c4d8"
+ ]
+ ]
+ },
+ {
+ "id": "8ea65101.30d46",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1337.6459655761719,
+ "y": 1540.0210418701172,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "68265a71.7dde04"
+ ]
+ ]
+ },
+ {
+ "id": "d5079913.80c4d8",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1334.6458740234375,
+ "y": 1588.0210266113281,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "f6ff2749.20d6b8"
+ ]
+ ]
+ },
+ {
+ "id": "68265a71.7dde04",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1525.2016296386719,
+ "y": 1537.0210418701172,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "1e10edac.a57b22"
+ ]
+ ]
+ },
+ {
+ "id": "f6ff2749.20d6b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1522.2015380859375,
+ "y": 1587.0210266113281,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "63596c05.8bab04"
+ ]
+ ]
+ },
+ {
+ "id": "3cd1669e.2956fa",
+ "type": "comment",
+ "name": "GET connection-attachment-ar to store AR data from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 2019.9725914001465,
+ "y": 812.9588122367859,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "96f74137.f7998",
+ "type": "comment",
+ "name": "Set source end point",
+ "info": "",
+ "comments": "",
+ "x": 509.4724884033203,
+ "y": 901.7088322639465,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "4c87cfa1.02c6c",
+ "type": "set",
+ "name": "set tmp.ar.parent-service-instance-id",
+ "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
+ "comments": "",
+ "x": 574.9687042236328,
+ "y": 1121.4549551010132,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "f3f93c79.0dcb",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 934.9688568115234,
+ "y": 1192.4549417495728,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "71285b35.a93954"
+ ]
+ ]
+ },
+ {
+ "id": "b078a619.3c13b8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 926.8206596374512,
+ "y": 1227.5210266113281,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "42089f0a.93012"
+ ]
+ ]
+ },
+ {
+ "id": "42089f0a.93012",
+ "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": 1072.969440460205,
+ "y": 1226.7884378433228,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "71285b35.a93954",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1065.968952178955,
+ "y": 1192.455002784729,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c23d6d08.4c9e6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN provided attachment resource not found\" />\n \n",
+ "comments": "",
+ "x": 2596.9691848754883,
+ "y": 1390.455129623413,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "acd4313a.acdba",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2581.969306945801,
+ "y": 1357.455114364624,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b760f3b3.babf2",
+ "type": "set",
+ "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
+ "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
+ "comments": "",
+ "x": 660.9686431884766,
+ "y": 1294.4549293518066,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "61c0c66f.9cb2e8",
+ "type": "comment",
+ "name": "If other EP exists set destination end point",
+ "info": "Check if other allotted resource is available.",
+ "comments": "",
+ "x": 563.4685211181641,
+ "y": 1461.4548778533936,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "f95e3456.773938",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1317.968765258789,
+ "y": 1799.455159187317,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "bd500845.16ea38",
+ "349a9a1b.d2e8f6",
+ "9dd5c1cd.85633",
+ "c65490b9.9fe9b",
+ "145d9915.1a14e7",
+ "14b60e62.9552e2",
+ "44bf4a7c.708044",
+ "b84af987.adba08"
+ ]
+ ]
+ },
+ {
+ "id": "bd500845.16ea38",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1560.4790668487549,
+ "y": 1669.4655556678772,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "4565f3d5.aafebc"
+ ]
+ ]
+ },
+ {
+ "id": "349a9a1b.d2e8f6",
+ "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": 1533.4690189361572,
+ "y": 1974.4555191993713,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "9dd5c1cd.85633",
+ "type": "switchNode",
+ "name": "switch access-ltp-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-ltp-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1551.9688968658447,
+ "y": 1713.2330870628357,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "80dc869e.ab7a58"
+ ]
+ ]
+ },
+ {
+ "id": "c65490b9.9fe9b",
+ "type": "switchNode",
+ "name": "switch clientSignal",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'clientSignal'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1545.9689350128174,
+ "y": 1759.2331337928772,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "257fa4da.2cce3c"
+ ]
+ ]
+ },
+ {
+ "id": "145d9915.1a14e7",
+ "type": "switchNode",
+ "name": "switch cVLAN",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'cVLAN'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1529.9584369659424,
+ "y": 1798.2226357460022,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "52fd3d94.d7d2a4"
+ ]
+ ]
+ },
+ {
+ "id": "4565f3d5.aafebc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1738.1909809112549,
+ "y": 1670.1219277381897,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "ef2e4180.488b9"
+ ]
+ ]
+ },
+ {
+ "id": "ef2e4180.488b9",
+ "type": "set",
+ "name": "set dst-access-node-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 1913.1909809112549,
+ "y": 1669.72190284729,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "80dc869e.ab7a58",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1733.6808490753174,
+ "y": 1712.8893837928772,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "5c8d584.21faba8"
+ ]
+ ]
+ },
+ {
+ "id": "257fa4da.2cce3c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1733.6808490753174,
+ "y": 1758.8893837928772,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "8b8a921e.bd895"
+ ]
+ ]
+ },
+ {
+ "id": "52fd3d94.d7d2a4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1733.6703510284424,
+ "y": 1797.8790078163147,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "cb174273.1b4b"
+ ]
+ ]
+ },
+ {
+ "id": "c3a3291b.9f4668",
+ "type": "for",
+ "name": "for idx..tmp.ep.parameters[]",
+ "xml": "<for index='idx' start='0' end='`$tmp.ep.parameters.param_length`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1170.9686279296875,
+ "y": 1687.4548645019531,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "f95e3456.773938"
+ ]
+ ]
+ },
+ {
+ "id": "1e10edac.a57b22",
+ "type": "set",
+ "name": "set tmp.ep.parameters",
+ "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$mdsal-other-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.`' />\n",
+ "comments": "",
+ "x": 1736.9686832427979,
+ "y": 1536.4549388885498,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "63596c05.8bab04",
+ "type": "set",
+ "name": "set tmp.ep.parameters",
+ "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$tmp.network.network-data.network-request-input.network-input-parameters.`' />\n",
+ "comments": "",
+ "x": 1733.9685916900635,
+ "y": 1582.4549236297607,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "5c8d584.21faba8",
+ "type": "set",
+ "name": "set dst-access-node-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 1910.9688129425049,
+ "y": 1712.4551796913147,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "8b8a921e.bd895",
+ "type": "set",
+ "name": "set dst-clientSignal",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.clientSignal' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 1904.9688129425049,
+ "y": 1756.4551796913147,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "cb174273.1b4b",
+ "type": "set",
+ "name": "set dst-cVLAN",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.cVLAN' value='`$tmp.ep.parameters.param[$idx].value`' />",
+ "comments": "",
+ "x": 1895.9688129425049,
+ "y": 1795.4551796913147,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "8ac4c29d.af442",
+ "type": "comment",
+ "name": "Get controller info and send request",
+ "info": "",
+ "comments": "",
+ "x": 1736,
+ "y": 2300,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "e30487d9.fc40e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 749.7310523986816,
+ "y": 2490.4085731506348,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b5950a83.64a2e8"
+ ]
+ ]
+ },
+ {
+ "id": "b5950a83.64a2e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 916.2548732757568,
+ "y": 2517.0275802612305,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "3b646004.2813c",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 751.8262805938721,
+ "y": 2538.170415878296,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b5950a83.64a2e8"
+ ]
+ ]
+ },
+ {
+ "id": "804e67f7.f5fcb8",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 509.27857398986816,
+ "y": 2467.7577362060547,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "e4d724bf.bef2c8",
+ "type": "set",
+ "name": "set output to api handler",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "comments": "",
+ "x": 538.5463924407959,
+ "y": 2400.2832174301147,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "a54e0786.d45e68",
+ "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": 498.9595642089844,
+ "y": 2585.8990058898926,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "be2b6004.6abeb",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT AR by id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 591.2784748077393,
+ "y": 2324.9240703582764,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "d7bb7d7e.e7376",
+ "7647bebc.d34c5",
+ "f09cf18.f872f1"
+ ]
+ ]
+ },
+ {
+ "id": "d7bb7d7e.e7376",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 845.9198970794678,
+ "y": 2369.255464553833,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "a250aba9.a5bd58"
+ ]
+ ]
+ },
+ {
+ "id": "7647bebc.d34c5",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 847.9199199676514,
+ "y": 2327.7554286941886,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "a250aba9.a5bd58"
+ ]
+ ]
+ },
+ {
+ "id": "f09cf18.f872f1",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 851.6700038909912,
+ "y": 2279.1125812530518,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "6472d85a.5caad8"
+ ]
+ ]
+ },
+ {
+ "id": "a250aba9.a5bd58",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1006.6700229644775,
+ "y": 2347.505495071411,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "6472d85a.5caad8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 979.32594871521,
+ "y": 2281.3047494888306,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6927072b.434fa8",
+ "type": "set",
+ "name": "set ar-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
+ "comments": "",
+ "x": 493.4920902252197,
+ "y": 2159.3049714565277,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "71a15b15.32e354",
+ "type": "execute",
+ "name": "execute getTime",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 510.77793312072754,
+ "y": 2231.924569129944,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7f03f367.f1262c",
+ "type": "set",
+ "name": "set allotted-resource-oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
+ "comments": "",
+ "x": 560.7650127410889,
+ "y": 2268.8756494522095,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "fecc8e1.3af3a7",
+ "type": "set",
+ "name": "set model-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
+ "comments": "",
+ "x": 507.33363151550293,
+ "y": 2198.479621887207,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "185d06d5.752689",
+ "type": "comment",
+ "name": "Prepare data for allotted-resource addition to MDSAL",
+ "info": "This will add to allotted-resource which is present inside service.",
+ "comments": "",
+ "x": 606.166971206665,
+ "y": 2108.4795739650726,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "5da46f5f.98698",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 547.7467975616455,
+ "y": 2075.8928756713867,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "2c5393b4.18384c",
+ "type": "update",
+ "name": "update AAI allotted-resource",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Active\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 550.2229747772217,
+ "y": 2516.209878921509,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "e30487d9.fc40e8",
+ "3b646004.2813c"
+ ]
+ ]
+ },
+ {
+ "id": "43e51eef.5c25b",
+ "type": "execute",
+ "name": "execute RestApiCallNode getPath from OOF",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1358.9729347229004,
+ "y": 2078.7095308303833,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "84ee042e.6dc228",
+ "cb8b1fc5.da16f"
+ ]
+ ]
+ },
+ {
+ "id": "84ee042e.6dc228",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1598.9730758666992,
+ "y": 2102.709500312805,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b5dd8e8d.014ad"
+ ]
+ ]
+ },
+ {
+ "id": "b48e311d.c6bea",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing OOF api\" />\n",
+ "comments": "",
+ "x": 1737.9731101989746,
+ "y": 2051.7095918655396,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "cb8b1fc5.da16f",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1597.9728622436523,
+ "y": 2051.7095909118652,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b48e311d.c6bea"
+ ]
+ ]
+ },
+ {
+ "id": "916454e5.0a4a68",
+ "type": "comment",
+ "name": "Get VPNs from OOF",
+ "info": "",
+ "comments": "",
+ "x": 1330.476734161377,
+ "y": 2034.7135305404663,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "402ffb02.0bfaf4",
+ "type": "for",
+ "name": "for vidx..oof.vpns_length[]",
+ "xml": "<for index='vidx' start='0' end='`$oof.vpns_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1298.9727783203125,
+ "y": 2160.959259033203,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "6b7692da.e3386c"
+ ]
+ ]
+ },
+ {
+ "id": "e2733493.b8ec78",
+ "type": "comment",
+ "name": "Loop through VPN and configure them",
+ "info": "",
+ "comments": "",
+ "x": 1330.4731063842773,
+ "y": 2284.4596366882324,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "d50ba090.29ed",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'name'`\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2538.7569580078125,
+ "y": 1632.5766906738281,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "d52279cb.ede198"
+ ]
+ ]
+ },
+ {
+ "id": "d52279cb.ede198",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2727.7569274902344,
+ "y": 1632.5766758918762,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "cebd51a0.93918"
+ ]
+ ]
+ },
+ {
+ "id": "cebd51a0.93918",
+ "type": "set",
+ "name": "set etht-svc-name & bandwidth-profile-name",
+ "xml": "<set>\n<parameter name='ietf-etht-instance0' value='ietf-eth-tran-service:etht-svc.etht-svc-instances[0].' />\n<parameter name='ietf-bw-profile0' value='ietf-eth-tran-service:etht-svc.globals.etht-svc-bandwidth-profiles[0].' />\n<parameter name='ietf-etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-name'`\" value='`$ietf-etht-svc-name`' />\n<parameter name=\"`$ietf-bw-profile0 + 'bandwidth-profile-name'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].ingress-egress-bandwidth-profile-name'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].ingress-egress-bandwidth-profile-name'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />",
+ "comments": "",
+ "x": 2968.7572441101074,
+ "y": 1632.176730632782,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "66d0e4de.2681dc",
+ "type": "switchNode",
+ "name": "switch description",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'description'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2551.596836090088,
+ "y": 1667.5767855644226,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "1de9071b.f26c59"
+ ]
+ ]
+ },
+ {
+ "id": "1de9071b.f26c59",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2726.5969009399414,
+ "y": 1669.5767712593079,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "159dd4c7.a1cdeb"
+ ]
+ ]
+ },
+ {
+ "id": "159dd4c7.a1cdeb",
+ "type": "set",
+ "name": "set etht-svc-descr",
+ "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-descr' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2882.93021774292,
+ "y": 1667.0378460884094,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "eec873e9.819a7",
+ "type": "switchNode",
+ "name": "switch tenantId",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'tenantId'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2546.9790992736816,
+ "y": 1700.9101758003235,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "13291279.e6fefe"
+ ]
+ ]
+ },
+ {
+ "id": "13291279.e6fefe",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2724.979103088379,
+ "y": 1704.910053730011,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "9bcc7bab.93fce8"
+ ]
+ ]
+ },
+ {
+ "id": "9bcc7bab.93fce8",
+ "type": "set",
+ "name": "set tenantId",
+ "xml": "<set>\n<parameter name='prop.global.sotn.tenantId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2862.979290008545,
+ "y": 1701.5100293159485,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "d21f1d66.9335f",
+ "type": "switchNode",
+ "name": "switch cir",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'cir'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2529.8186988830566,
+ "y": 1773.9101309776306,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "5d9c8a66.558544"
+ ]
+ ]
+ },
+ {
+ "id": "5d9c8a66.558544",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2724.81876373291,
+ "y": 1774.9101309776306,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "e6e553ba.8c38f"
+ ]
+ ]
+ },
+ {
+ "id": "e6e553ba.8c38f",
+ "type": "set",
+ "name": "set cir",
+ "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'CIR'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2849.1522636413574,
+ "y": 1773.3712058067322,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "1068d706.4b4119",
+ "type": "switchNode",
+ "name": "switch vpnType",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'vpnType'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2544.1269874572754,
+ "y": 1736.6878409385681,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "eafe0a88.2abeb8"
+ ]
+ ]
+ },
+ {
+ "id": "eafe0a88.2abeb8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2726.1271743774414,
+ "y": 1739.687825679779,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b55361c7.d529b"
+ ]
+ ]
+ },
+ {
+ "id": "b55361c7.d529b",
+ "type": "set",
+ "name": "set vpnType",
+ "xml": "<set>\n<parameter name='prop.global.sotn.vpnType' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2865.4609375,
+ "y": 1736.1490783691406,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "bee803df.af903",
+ "type": "switchNode",
+ "name": "switch eir",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'eir'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2525.109043121338,
+ "y": 1807.6080384254456,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "5335406d.46439"
+ ]
+ ]
+ },
+ {
+ "id": "5335406d.46439",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2725.10929107666,
+ "y": 1810.6079773902893,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "2c7f791a.111c46"
+ ]
+ ]
+ },
+ {
+ "id": "2c7f791a.111c46",
+ "type": "set",
+ "name": "set eir",
+ "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'EIR'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2848.44291305542,
+ "y": 1810.0690369606018,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "45da451c.99e69c",
+ "type": "switchNode",
+ "name": "switch colorAware",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'colorAware'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2550.1096534729004,
+ "y": 1841.6079173088074,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "449dd2b2.97f33c"
+ ]
+ ]
+ },
+ {
+ "id": "449dd2b2.97f33c",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2721.109474182129,
+ "y": 1847.607855796814,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "169755c8.79e75a"
+ ]
+ ]
+ },
+ {
+ "id": "169755c8.79e75a",
+ "type": "set",
+ "name": "set colorAware",
+ "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'color-aware'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2869.4427909851074,
+ "y": 1848.0690684318542,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "c3234be0.466328",
+ "type": "switchNode",
+ "name": "switch couplingFlag",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'couplingFlag'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2552.109592437744,
+ "y": 1877.607979297638,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b42d9413.a57f98"
+ ]
+ ]
+ },
+ {
+ "id": "b42d9413.a57f98",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2724.109474182129,
+ "y": 1886.6079487800598,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "8aa66130.b6da6"
+ ]
+ ]
+ },
+ {
+ "id": "8aa66130.b6da6",
+ "type": "set",
+ "name": "set couplingFlag",
+ "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'coupling-flag'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
+ "comments": "",
+ "x": 2877.4427909851074,
+ "y": 1887.0690693855286,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "fb9249ce.b8b3a8",
+ "type": "comment",
+ "name": "Check if other EP exists in SOTNConnectionResource",
+ "info": "",
+ "comments": "",
+ "x": 2668.8125,
+ "y": 1485.2433166503906,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "bd5b1d98.86a9b",
+ "type": "comment",
+ "name": "Get other global parameters from network",
+ "info": "",
+ "comments": "",
+ "x": 2604.812255859375,
+ "y": 1571.2433166503906,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "14b60e62.9552e2",
+ "type": "switchNode",
+ "name": "switch access-provider-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-provider-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1567.5347309112549,
+ "y": 1843.6878457069397,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "6fdddbf2.363454"
+ ]
+ ]
+ },
+ {
+ "id": "6fdddbf2.363454",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1754.5347309112549,
+ "y": 1839.6878457069397,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "74c7de35.e3e86"
+ ]
+ ]
+ },
+ {
+ "id": "74c7de35.e3e86",
+ "type": "set",
+ "name": "set access-provider-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1922.5347309112549,
+ "y": 1840.2878518104553,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "44bf4a7c.708044",
+ "type": "switchNode",
+ "name": "switch access-client-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-client-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1558.534746170044,
+ "y": 1886.6982941627502,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "563fe70a.3d75e8"
+ ]
+ ]
+ },
+ {
+ "id": "563fe70a.3d75e8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1745.534746170044,
+ "y": 1882.6982941627502,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "ce19687f.748618"
+ ]
+ ]
+ },
+ {
+ "id": "ce19687f.748618",
+ "type": "set",
+ "name": "set access-client-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1913.534746170044,
+ "y": 1883.2983002662659,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "b84af987.adba08",
+ "type": "switchNode",
+ "name": "switch access-topology-id",
+ "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-topology-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1571.5346908569336,
+ "y": 1928.6983251571655,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "59f4f928.e35438"
+ ]
+ ]
+ },
+ {
+ "id": "59f4f928.e35438",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1758.5346908569336,
+ "y": 1924.6983251571655,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "561aa1a7.127"
+ ]
+ ]
+ },
+ {
+ "id": "561aa1a7.127",
+ "type": "set",
+ "name": "set access-topology-id",
+ "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1926.5346908569336,
+ "y": 1925.2983312606812,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "6b7692da.e3386c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1391.5,
+ "y": 2580,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "10a67ef2.fe14c1",
+ "a7c30844.d5a778",
+ "7ac9bf5f.eb2bb",
+ "ecc36fcf.c4875",
+ "a76f6a40.d4cee8",
+ "edafd0b0.6224d",
+ "5247b131.16685",
+ "e27ff4ee.65f258",
+ "1d2e0089.80d0ff",
+ "961fa84a.89d648",
+ "3cad4115.c1792e",
+ "64d85461.e5001c",
+ "62b19acd.4aec84"
+ ]
+ ]
+ },
+ {
+ "id": "c28d378e.41d1d8",
+ "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": 2144,
+ "y": 2300,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "e27ff4ee.65f258",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1728,
+ "y": 2340,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "a1b1b4fc.a93fb8",
+ "74526f9.33f9b9",
+ "cec138d1.5a00d8"
+ ]
+ ]
+ },
+ {
+ "id": "a1b1b4fc.a93fb8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1974,
+ "y": 2300,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "c28d378e.41d1d8"
+ ]
+ ]
+ },
+ {
+ "id": "74526f9.33f9b9",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1978,
+ "y": 2340,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "6e8b6c66.c5e0f4"
+ ]
+ ]
+ },
+ {
+ "id": "cec138d1.5a00d8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1970,
+ "y": 2380,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "681da62f.282d18"
+ ]
+ ]
+ },
+ {
+ "id": "6e8b6c66.c5e0f4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 2128,
+ "y": 2340,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "681da62f.282d18",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 2128,
+ "y": 2380,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "5247b131.16685",
+ "type": "get-resource",
+ "name": "get-resource pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $oof.vpn.access-node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1679.5,
+ "y": 2220,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b0e582b1.978d3",
+ "b63f814e.25c35",
+ "ba9909ab.268d18"
+ ]
+ ]
+ },
+ {
+ "id": "b0e582b1.978d3",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1974,
+ "y": 2180,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b2fced81.55aa5"
+ ]
+ ]
+ },
+ {
+ "id": "b63f814e.25c35",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1978,
+ "y": 2220,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "bc035593.0004d8"
+ ]
+ ]
+ },
+ {
+ "id": "ba9909ab.268d18",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1970,
+ "y": 2260,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "b490ab94.5b0298"
+ ]
+ ]
+ },
+ {
+ "id": "bc035593.0004d8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2128,
+ "y": 2220,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "b490ab94.5b0298",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2128,
+ "y": 2260,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "b2fced81.55aa5",
+ "type": "set",
+ "name": "set tmp.thirdparty-sdnc-id",
+ "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 2167.5,
+ "y": 2180,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "ba207179.afcc1",
+ "type": "comment",
+ "name": "get domain controller information",
+ "info": "",
+ "comments": "",
+ "x": 1726.5,
+ "y": 2180,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "1d2e0089.80d0ff",
+ "type": "set",
+ "name": "set oof.vpn",
+ "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />",
+ "comments": "",
+ "x": 1663,
+ "y": 2140,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "a7c30844.d5a778",
+ "type": "save",
+ "name": "save VPN resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1709.5,
+ "y": 2700,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7ac9bf5f.eb2bb",
+ "type": "set",
+ "name": "set tmp.vpnName",
+ "xml": "<set>\n<parameter name='tmp.vpnName' value=\"`$oof.vpn.access-node-id + '-' + $ietf-etht-svc-name`\" />",
+ "comments": "",
+ "x": 1683.5,
+ "y": 2660,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "ecc36fcf.c4875",
+ "type": "save",
+ "name": "save connectivity relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1740,
+ "y": 2740,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "10a67ef2.fe14c1",
+ "type": "set",
+ "name": "set src-ltpId dst-ltpId",
+ "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",
+ "comments": "",
+ "x": 1691.5,
+ "y": 2780,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "a76f6a40.d4cee8",
+ "type": "save",
+ "name": "save srcLTP relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1725,
+ "y": 2820,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "edafd0b0.6224d",
+ "type": "save",
+ "name": "save dstLTP relationship in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1725,
+ "y": 2860,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b571fb6b.8ab608",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 717.0038146972656,
+ "y": 981.458776473999,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "860a625.2d0bba",
+ "db78a108.063fb"
+ ]
+ ]
+ },
+ {
+ "id": "b52dba2d.a71bc8",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 644.0039672851562,
+ "y": 1208.4589395523071,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "f3f93c79.0dcb",
+ "b078a619.3c13b8"
+ ]
+ ]
+ },
+ {
+ "id": "76fbe2f6.cb133c",
+ "type": "execute",
+ "name": "get parent-service-data url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 544.0038757324219,
+ "y": 1171.4587726593018,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ef83619e.fcadf",
+ "type": "execute",
+ "name": "generate tmp.ar-other-url-connection",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-other-url-connection\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.provided-ar.allotted-resource-id`\"/>\n \n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1958.000228881836,
+ "y": 1327.7883338928223,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "70f5ae0d.ee9ea",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-other-url-connection`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-other-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2095.0008697509766,
+ "y": 1370.2881984710693,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "a5795c00.0454b8",
+ "a870baef.09bb38"
+ ]
+ ]
+ },
+ {
+ "id": "b5dd8e8d.014ad",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1720.0001487731934,
+ "y": 2093.4549837112427,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2222673c.9be3c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1096.9687614440918,
+ "y": 2118.4551677703857,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "43e51eef.5c25b",
+ "402ffb02.0bfaf4"
+ ]
+ ]
+ },
+ {
+ "id": "b4436494.1a02b8",
+ "type": "outcome",
+ "name": "outcome PendingDelete",
+ "xml": "<outcome value='PendingDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2171.031219482422,
+ "y": 933.486162185669,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "7b132c2c.5ce604"
+ ]
+ ]
+ },
+ {
+ "id": "7b132c2c.5ce604",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2355.0312309265137,
+ "y": 929.486162185669,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3cad4115.c1792e",
+ "type": "set",
+ "name": "set attachment_param",
+ "xml": "<set>\n<parameter name=\"`$ietf-etht-instance0 + 'access-provider-id'`\" value='`$oof.vpn.access-provider-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'access-client-id'`\" value='`$oof.vpn.access-client-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'access-topology-id'`\" value='`$oof.vpn.access-topology-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].access-node-id'`\" value='`$oof.vpn.access-node-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].access-ltp-id'`\" value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].access-node-id'`\" value='`$oof.vpn.access-node-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].access-ltp-id'`\" value='`$oof.vpn.dst-access-ltp-id`' />\n",
+ "comments": "",
+ "x": 1698,
+ "y": 2540,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "961fa84a.89d648",
+ "type": "set",
+ "name": "set sotn_value",
+ "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'bandwidth-profile-type'`\" value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-type'`\" value='ietf-eth-tran-types:p2p-svc' />\n<parameter name=\"`$ietf-etht-instance0 + 'admin-status'`\" value='ietf-te-types:tunnel-state-up' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].access-port-id'`\" value='0' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].service-classification-type'`\" value='ietf-eth-tran-types:port-classification' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].access-port-id'`\" value='1' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].service-classification-type'`\" value='ietf-eth-tran-types:port-classification' />",
+ "comments": "",
+ "x": 1673.5,
+ "y": 2500,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "64d85461.e5001c",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1740.5,
+ "y": 2440,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "a0d2cca5.2d5be",
+ "c52b8c6d.ecc5c"
+ ]
+ ]
+ },
+ {
+ "id": "a0d2cca5.2d5be",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1974,
+ "y": 2420,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "3e07440b.43da4c"
+ ]
+ ]
+ },
+ {
+ "id": "c52b8c6d.ecc5c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1970,
+ "y": 2460,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "f8066f4a.4c47c"
+ ]
+ ]
+ },
+ {
+ "id": "f8066f4a.4c47c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 2128,
+ "y": 2460,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "3e07440b.43da4c",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 2124.5,
+ "y": 2420,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "50328916.399a68",
+ "type": "execute",
+ "name": "execute RestconfApiCallNode Create ethernet Service with token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2250.5,
+ "y": 2600,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "aefb806d.da2a4",
+ "1cddc506.88b81b"
+ ]
+ ]
+ },
+ {
+ "id": "aefb806d.da2a4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2594,
+ "y": 2600,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "8e77bda1.dcd9a"
+ ]
+ ]
+ },
+ {
+ "id": "8e77bda1.dcd9a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2751.5,
+ "y": 2600,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "23ed7381.faa5dc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return 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": 2748,
+ "y": 2560,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ },
+ {
+ "id": "1cddc506.88b81b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2590,
+ "y": 2560,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "23ed7381.faa5dc"
+ ]
+ ]
+ },
+ {
+ "id": "62b19acd.4aec84",
+ "type": "switchNode",
+ "name": "switch prop.sdncRestApi.token_id",
+ "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1733.5,
+ "y": 2580,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "ab1d58b3.091298",
+ "6b742a39.c27114"
+ ]
+ ]
+ },
+ {
+ "id": "ab1d58b3.091298",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1946.3438301086426,
+ "y": 2560.121898651123,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "c3954e01.62cf4"
+ ]
+ ]
+ },
+ {
+ "id": "6b742a39.c27114",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1950,
+ "y": 2600,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "50328916.399a68"
+ ]
+ ]
+ },
+ {
+ "id": "c3954e01.62cf4",
+ "type": "execute",
+ "name": "execute RestconfApiCallNode Create ethernet Service without token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2260.5,
+ "y": 2560,
+ "z": "457a744e.ed1b4c",
+ "wires": [
+ [
+ "1cddc506.88b81b",
+ "aefb806d.da2a4"
+ ]
+ ]
+ },
+ {
+ "id": "47c68bcd.5a1f24",
+ "type": "comment",
+ "name": "save vpn and its relation to AAI",
+ "info": "",
+ "comments": "",
+ "x": 1721.5,
+ "y": 2620,
+ "z": "457a744e.ed1b4c",
+ "wires": []
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
index a0faa6a9..bccb6189 100644
--- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
+++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
@@ -1,2017 +1,2087 @@
-[
- {
- "id": "b0d71f3f.58b13",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 123,
- "y": 32,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "962f9112.e764e"
- ]
- ]
- },
- {
- "id": "962f9112.e764e",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
- "comments": "",
- "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
- "outputs": 1,
- "x": 304.00000381469727,
- "y": 92.0000171661377,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "87a8de44.934de"
- ]
- ]
- },
- {
- "id": "87a8de44.934de",
- "type": "method",
- "name": "sotn-attachment-topology-operation-deactivate",
- "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 292.0001220703125,
- "y": 180,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "b2d80288.ba823"
- ]
- ]
- },
- {
- "id": "b2d80288.ba823",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 308.0001220703125,
- "y": 735.0002446174622,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "6613ec86.694124",
- "f6decbbf.dd5e18",
- "1fbc45c.0ff5aba",
- "bc709271.507d8",
- "1c40b1f3.81976e",
- "4f9b598.14771a8",
- "8522b683.befcf8",
- "62f18656.44cfe8",
- "683cb14.3ce605",
- "c2e56bca.b33d78",
- "802f8ef7.b6731",
- "5c1eba3c.5a3914",
- "d3793c0a.e76dd",
- "a3a48876.1d8a18",
- "7ccf367e.a869f8",
- "2c211a2d.e90676",
- "693977cc.87d158",
- "c0b8662.2083398",
- "fada7ab3.d1d4e8",
- "cfef8c40.7d401"
- ]
- ]
- },
- {
- "id": "6613ec86.694124",
- "type": "set",
- "name": "set tmp.ar.allotted-resource-id,etc",
- "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
- "comments": "",
- "x": 704.9935607910156,
- "y": 133.9934868812561,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "c64c0419.fa25b8",
- "type": "comment",
- "name": "set tmp ar-id to fetch resource from MDSAL",
- "info": "",
- "comments": "",
- "x": 733.9538726806641,
- "y": 98.02528285980225,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "f6decbbf.dd5e18",
- "type": "set",
- "name": "set tmp.ar.self-link",
- "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
- "comments": "",
- "x": 658.9934997558594,
- "y": 226.99349212646484,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "1c40b1f3.81976e",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 665.2553901672363,
- "y": 314.6602210998535,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "1fbc45c.0ff5aba",
- "type": "execute",
- "name": "generate allotted-resource tmp.ar-url",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 715.2554931640625,
- "y": 401.66022205352783,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "61a9d102.2b159",
- "type": "comment",
- "name": "GET connection-attachment-allotted-resource from mdsal",
- "info": "",
- "comments": "",
- "x": 758.8084869384766,
- "y": 472.53876876831055,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "e3f68d6f.a262e",
- "type": "comment",
- "name": "Used for setting output to API Handler",
- "info": "",
- "comments": "",
- "x": 712.9935302734375,
- "y": 193.993501663208,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "b492f1ea.34bc2",
- "type": "comment",
- "name": "Obtain different URL, template location etc",
- "info": "For saving resource information to MDSAL & for AAI",
- "comments": "",
- "x": 730.9934959411621,
- "y": 279.8823823928833,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "d53312d8.be37d",
- "type": "comment",
- "name": "Used to Get AR by id to MDSAL, same as self-link",
- "info": "",
- "comments": "",
- "x": 756.9935150146484,
- "y": 366.8823413848877,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "e963cad3.e8d6c8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1199.6668281555176,
- "y": 520.0000286102295,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "8ab48cf9.6862d"
- ]
- ]
- },
- {
- "id": "8ab48cf9.6862d",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1368.6668319702148,
- "y": 518.4999294281006,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "46b50e5a.245ae"
- ]
- ]
- },
- {
- "id": "46b50e5a.245ae",
- "type": "switchNode",
- "name": "switch cr length",
- "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1541.5241012573242,
- "y": 456.11909198760986,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "13dfccaf.a022c3",
- "30d435f0.aca96a"
- ]
- ]
- },
- {
- "id": "13dfccaf.a022c3",
- "type": "other",
- "name": "outcome 1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1778.8573455810547,
- "y": 434.1190423965454,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "2fbac1bd.15b6ee"
- ]
- ]
- },
- {
- "id": "2fbac1bd.15b6ee",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic='true'>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1963.3812351226807,
- "y": 431.02387619018555,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "5bdbcf18.37ca8",
- "cbe39501.d4aef8",
- "a9187100.e70c6"
- ]
- ]
- },
- {
- "id": "6cd8cd98.bbac14",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
- "comments": "",
- "x": 1887.5190773010254,
- "y": 556.0661172866821,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "489ff5d2.164b7c",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1191.5186309814453,
- "y": 555.0661134719849,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "6d0a26d5.df63e8"
- ]
- ]
- },
- {
- "id": "6d0a26d5.df63e8",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1371.5185813903809,
- "y": 555.7326641082764,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "6cd8cd98.bbac14"
- ]
- ]
- },
- {
- "id": "30d435f0.aca96a",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1767.1852989196777,
- "y": 471.3994026184082,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "6cd8cd98.bbac14"
- ]
- ]
- },
- {
- "id": "5bdbcf18.37ca8",
- "type": "set",
- "name": "set connection-attachment-ar from get",
- "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
- "comments": "",
- "x": 2209.444793701172,
- "y": 391.0001058578491,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "a9187100.e70c6",
- "type": "set",
- "name": "set oper-status",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
- "comments": "",
- "x": 2142.4447898864746,
- "y": 481.42866039276123,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "cbe39501.d4aef8",
- "type": "switchNode",
- "name": "switch order-status",
- "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2153.444625854492,
- "y": 435.0001096725464,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "1d7c3fd4.3573f",
- "34a89ac4.b608e6"
- ]
- ]
- },
- {
- "id": "1d7c3fd4.3573f",
- "type": "outcome",
- "name": "outcome Active",
- "xml": "<outcome value='Active'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2360.044574737549,
- "y": 425.0001096725464,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "fffa8dec.2b92a"
- ]
- ]
- },
- {
- "id": "34a89ac4.b608e6",
- "type": "outcome",
- "name": "outcome Other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2359.7590942382812,
- "y": 467.4287004470825,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "31994932.765476"
- ]
- ]
- },
- {
- "id": "fffa8dec.2b92a",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2512.5151290893555,
- "y": 423.3757600784302,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "31994932.765476",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
- "comments": "",
- "x": 2532.6669845581055,
- "y": 464.000111579895,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "ade228e6.1238f8",
- "type": "call",
- "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 920.3031158447266,
- "y": 616.4935908317566,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "4f9b598.14771a8",
- "type": "block",
- "name": "block: atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 617.3092803955078,
- "y": 617.4999389648438,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "ade228e6.1238f8"
- ]
- ]
- },
- {
- "id": "2ee127b4.83e818",
- "type": "comment",
- "name": "GET parent-service-data from mdsal to check existence of other End point",
- "info": "",
- "comments": "",
- "x": 799.0004425048828,
- "y": 678.5316982269287,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "ac0c0701.4d5818",
- "type": "for",
- "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
- "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1689.1849975585938,
- "y": 882.0040826797485,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "6de65a21.ad20a4"
- ]
- ]
- },
- {
- "id": "cf2de8b0.5bcd28",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1095.3269691467285,
- "y": 1014.5755434036255,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "75a0a72c.5c3178"
- ]
- ]
- },
- {
- "id": "2c958bf6.015ea4",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1286.4543704986572,
- "y": 879.7015712037683,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "ac0c0701.4d5818"
- ]
- ]
- },
- {
- "id": "6de65a21.ad20a4",
- "type": "switchNode",
- "name": "switch allotted-resource-id",
- "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2124.296398162842,
- "y": 882.0039796829224,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "9440a4ce.27b3b8",
- "44e5c372.52cc1c"
- ]
- ]
- },
- {
- "id": "9440a4ce.27b3b8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2333.106746673584,
- "y": 862.4684362411499,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "ce614dfc.389e4"
- ]
- ]
- },
- {
- "id": "5d89c62c.f1ebc8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 2481.867500305176,
- "y": 898.3256177902222,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "12052b78.fd51b5"
- ]
- ]
- },
- {
- "id": "12052b78.fd51b5",
- "type": "set",
- "name": "set tmp.pidx and ptx.consumed-ar",
- "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
- "comments": "",
- "x": 2716.724937438965,
- "y": 896.8971490859985,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "2107b4e5.fcdf0c",
- "type": "comment",
- "name": "Check existence of other AR in parent service data",
- "info": "Check if other allotted resource is available.",
- "comments": "",
- "x": 722.9628448486328,
- "y": 848.8929204940796,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "103b0ff7.ad1fb",
- "type": "other",
- "name": "outcome 1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1105.9793167114258,
- "y": 949.677264213562,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "61e7696e.e32818"
- ]
- ]
- },
- {
- "id": "75a0a72c.5c3178",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
- "comments": "",
- "x": 1267.9793128967285,
- "y": 1013.677285194397,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "4057b675.85b588",
- "type": "other",
- "name": "outcome 2",
- "xml": "<outcome value='2'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1111.9793910980225,
- "y": 880.6772715821862,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "2c958bf6.015ea4"
- ]
- ]
- },
- {
- "id": "ce614dfc.389e4",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2462.090805053711,
- "y": 857.6771764755249,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "44e5c372.52cc1c",
- "type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2333.0907974243164,
- "y": 896.6771802902222,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "5d89c62c.f1ebc8"
- ]
- ]
- },
- {
- "id": "4960bf69.46744",
- "type": "switchNode",
- "name": "switch mdsal-psd.networks_length",
- "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1518.3129959106445,
- "y": 952.8997611999512,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "21a6ff32.cc535",
- "fd1b6df1.cb9a8"
- ]
- ]
- },
- {
- "id": "fd1b6df1.cb9a8",
- "type": "other",
- "name": "outcome 1",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1748.3130187988281,
- "y": 928.7885932922363,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "bb9fff84.461e"
- ]
- ]
- },
- {
- "id": "21a6ff32.cc535",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1742.3131408691406,
- "y": 988.7885932922363,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "8d4e5f2f.b2054"
- ]
- ]
- },
- {
- "id": "8d4e5f2f.b2054",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n",
- "comments": "",
- "x": 1914.9655265808105,
- "y": 988.8903999328613,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "e3b0ecf2.4e878",
- "type": "set",
- "name": "set tmp.network.",
- "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n",
- "comments": "",
- "x": 2116.757942199707,
- "y": 918.7887525558472,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "61e7696e.e32818",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1278.423671722412,
- "y": 950.7885122299194,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "4960bf69.46744"
- ]
- ]
- },
- {
- "id": "bb9fff84.461e",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1916.090690612793,
- "y": 947.7884273529053,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "e3b0ecf2.4e878",
- "2162bd86.35e6f2"
- ]
- ]
- },
- {
- "id": "2162bd86.35e6f2",
- "type": "for",
- "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
- "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
- "comments": "",
- "outputs": 1,
- "x": 2292.09130859375,
- "y": 990.7884349822998,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "15f15c9c.6120f3"
- ]
- ]
- },
- {
- "id": "15f15c9c.6120f3",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2615.6469688415527,
- "y": 991.7885122299194,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "1f8bf049.48a41",
- "24ef27d4.5acd08"
- ]
- ]
- },
- {
- "id": "1f8bf049.48a41",
- "type": "switchNode",
- "name": "switch access-node-id",
- "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
- "comments": "",
- "outputs": 1,
- "x": 2794.1570739746094,
- "y": 975.7989301681519,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "8ecdc6ef.8a8ce8"
- ]
- ]
- },
- {
- "id": "8ecdc6ef.8a8ce8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2981.1570739746094,
- "y": 976.7989301681519,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "5c66b7eb.d5bf28"
- ]
- ]
- },
- {
- "id": "5c66b7eb.d5bf28",
- "type": "set",
- "name": "set tmp.found-in-network tmp.ep-available",
- "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
- "comments": "",
- "x": 3232.157081604004,
- "y": 976.3988723754883,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "24ef27d4.5acd08",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
- "comments": "",
- "x": 2777.14697265625,
- "y": 1020.7885293960571,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "bc709271.507d8",
- "type": "switchNode",
- "name": "switch tmp.ep-available",
- "xml": "<switch test='`$tmp.ep-available`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 654.3128662109375,
- "y": 1153.2327852249146,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "18bdb942.c7be37",
- "343945c7.6ea6fa"
- ]
- ]
- },
- {
- "id": "343945c7.6ea6fa",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 836.9797019958496,
- "y": 1177.5661935806274,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "eb3e9e9.a810a6"
- ]
- ]
- },
- {
- "id": "18bdb942.c7be37",
- "type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 839.8684730529785,
- "y": 1116.566291809082,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "33d109a0.0b3696"
- ]
- ]
- },
- {
- "id": "33d109a0.0b3696",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 976.8685493469238,
- "y": 1115.4551057815552,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "eb3e9e9.a810a6",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1007.0907897949219,
- "y": 1175.5661516189575,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "d5bc9567.22f988"
- ]
- ]
- },
- {
- "id": "eba7f62b.bd7668",
- "type": "comment",
- "name": "GET connection-attachment-ar to store AR data from mdsal",
- "info": "",
- "comments": "",
- "x": 2192.472946166992,
- "y": 355.5039691925049,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "2d6b93ab.08655c",
- "type": "comment",
- "name": "Set source end point",
- "info": "",
- "comments": "",
- "x": 630.9728393554688,
- "y": 585.2540645599365,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "8522b683.befcf8",
- "type": "set",
- "name": "set tmp.ar.parent-service-instance-id",
- "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
- "comments": "",
- "x": 683.9689178466797,
- "y": 710.0002088546753,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "773fbfc3.82918",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1061.9689140319824,
- "y": 759.000207901001,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "e1e0569.afbf9a8"
- ]
- ]
- },
- {
- "id": "be2f70a0.4132d",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1053.8207168579102,
- "y": 794.0662927627563,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "82d58d98.da526"
- ]
- ]
- },
- {
- "id": "82d58d98.da526",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
- "comments": "",
- "x": 1228.9694023132324,
- "y": 790.3336429595947,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "e1e0569.afbf9a8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1212.9689140319824,
- "y": 757.000207901001,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "62f18656.44cfe8",
- "type": "set",
- "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
- "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
- "comments": "",
- "x": 770.9689102172852,
- "y": 884.0001821517944,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "ba6cedb4.1637d",
- "type": "comment",
- "name": "If other EP exists delete from domain controller",
- "info": "",
- "comments": "",
- "x": 704.9688110351562,
- "y": 1077.999997138977,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "84d93cd2.2a2bf",
- "type": "set",
- "name": "set controller data",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
- "comments": "",
- "x": 2702.969627380371,
- "y": 1368.0005893707275,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "3c2c4321.6e016c",
- "type": "get-resource",
- "name": "get-resource esr-thirdparty-sdnc",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2266.469566345215,
- "y": 1427.0005893707275,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "b9c78202.065c4",
- "b1e4c467.b20658",
- "7cb01101.04dc1"
- ]
- ]
- },
- {
- "id": "b9c78202.065c4",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2505.469566345215,
- "y": 1380.0005893707275,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "84d93cd2.2a2bf"
- ]
- ]
- },
- {
- "id": "b1e4c467.b20658",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2508.96053314209,
- "y": 1427.5746250152588,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "912e3892.c38738"
- ]
- ]
- },
- {
- "id": "7cb01101.04dc1",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2504.29354095459,
- "y": 1468.90793800354,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "ba048e79.e103b"
- ]
- ]
- },
- {
- "id": "912e3892.c38738",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 2685.5319442749023,
- "y": 1415.8603610992432,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "ba048e79.e103b",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
- "comments": "",
- "x": 2692.0660972595215,
- "y": 1464.3471307754517,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "ac6b10fc.018ca",
- "type": "get-resource",
- "name": "get-resource pnf",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2215.9697341918945,
- "y": 1319.000418663025,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "7d25011f.79dd3",
- "abbaec43.33e1c",
- "9bfad8e.2252b28"
- ]
- ]
- },
- {
- "id": "7d25011f.79dd3",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2403.9697494506836,
- "y": 1265.0004110336304,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "addfa25b.c3718"
- ]
- ]
- },
- {
- "id": "abbaec43.33e1c",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2409.460796356201,
- "y": 1307.5743074417114,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "6b2117db.4230f8"
- ]
- ]
- },
- {
- "id": "9bfad8e.2252b28",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2395.793804168701,
- "y": 1345.9076433181763,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "c5a2b6cb.8de6a8"
- ]
- ]
- },
- {
- "id": "6b2117db.4230f8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
- "comments": "",
- "x": 2563.032096862793,
- "y": 1297.8601140975952,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "c5a2b6cb.8de6a8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
- "comments": "",
- "x": 2559.566276550293,
- "y": 1337.3469333648682,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "addfa25b.c3718",
- "type": "set",
- "name": "set tmp.thirdparty-sdnc-id",
- "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
- "comments": "",
- "x": 2603.9697647094727,
- "y": 1260.0004110336304,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "44ef1c3d.800ab4",
- "type": "comment",
- "name": "get domain controller information",
- "info": "",
- "comments": "",
- "x": 2259.4736404418945,
- "y": 1288.0043859481812,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "7164fdca.4a0d84",
- "type": "execute",
- "name": "execute RestApiCallNode Delete ethernet Service",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2308.969596862793,
- "y": 1681.0005912780762,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "2b22380a.f1bc58",
- "2dc816f1.66c67a"
- ]
- ]
- },
- {
- "id": "2b22380a.f1bc58",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2595.9695358276367,
- "y": 1704.0005912780762,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "2a372b2.85f3bd4"
- ]
- ]
- },
- {
- "id": "2a372b2.85f3bd4",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2765.9694747924805,
- "y": 1707.0005912780762,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "9ab48a6d.252ca8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
- "comments": "",
- "x": 2765.969596862793,
- "y": 1663.0005912780762,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "2dc816f1.66c67a",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2598.9694747924805,
- "y": 1663.0005912780762,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "9ab48a6d.252ca8"
- ]
- ]
- },
- {
- "id": "b8fd2a49.d0b368",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 933.7307472229004,
- "y": 1677.9527901411057,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "4d3bfe83.8ac38"
- ]
- ]
- },
- {
- "id": "4d3bfe83.8ac38",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
- "comments": "",
- "x": 1100.2546272277832,
- "y": 1689.5718611478806,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "59f13b89.e4e7d4",
- "type": "failure",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 940.8260345458984,
- "y": 1710.7147578001022,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "4d3bfe83.8ac38"
- ]
- ]
- },
- {
- "id": "65a9cdb6.115924",
- "type": "comment",
- "name": "Save Resource to AAI",
- "info": "",
- "comments": "",
- "x": 652.7784614562988,
- "y": 1660.3021783828735,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "a3a48876.1d8a18",
- "type": "set",
- "name": "set output to api handler",
- "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
- "comments": "",
- "x": 667.5461578369141,
- "y": 1581.8276596069336,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "7ccf367e.a869f8",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
- "comments": "",
- "x": 635.9592399597168,
- "y": 1742.4434118270874,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "d3793c0a.e76dd",
- "type": "execute",
- "name": "execute RestApiCallNode - PUT AR by id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 717.2782592773438,
- "y": 1489.468433380127,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "c94958cd.0f7e08",
- "5e263814.55f358",
- "1ecab8f8.94f047"
- ]
- ]
- },
- {
- "id": "c94958cd.0f7e08",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 985.9196357727051,
- "y": 1540.799845121801,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "916b12ec.48653"
- ]
- ]
- },
- {
- "id": "5e263814.55f358",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 976.9196853637695,
- "y": 1509.2998708710074,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "916b12ec.48653"
- ]
- ]
- },
- {
- "id": "1ecab8f8.94f047",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 980.6697235107422,
- "y": 1479.6569757461548,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "9a61150.9613ce8"
- ]
- ]
- },
- {
- "id": "916b12ec.48653",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
- "comments": "",
- "x": 1146.6697235107422,
- "y": 1510.0498947128654,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "9a61150.9613ce8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1122.3256912231445,
- "y": 1475.849144935608,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "683cb14.3ce605",
- "type": "set",
- "name": "set ar-data",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
- "comments": "",
- "x": 617.4918785095215,
- "y": 1339.8493564128876,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "802f8ef7.b6731",
- "type": "execute",
- "name": "execute getTime",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 634.7777214050293,
- "y": 1412.4689540863037,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "5c1eba3c.5a3914",
- "type": "set",
- "name": "set allotted-resource-oper-status",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
- "comments": "",
- "x": 689.764778137207,
- "y": 1450.4200916290283,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "c2e56bca.b33d78",
- "type": "set",
- "name": "set model-data",
- "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
- "comments": "",
- "x": 631.3334197998047,
- "y": 1379.024006843567,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "ae41f871.b43fa8",
- "type": "comment",
- "name": "Prepare data for allotted-resource addition to MDSAL",
- "info": "This will add to allotted-resource which is present inside service.",
- "comments": "",
- "x": 744.6668815612793,
- "y": 1300.0239589214325,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "e752535c.aeb57",
- "type": "comment",
- "name": "Add to allotted-resources in mdsal",
- "info": "",
- "comments": "",
- "x": 686.2467079162598,
- "y": 1267.4372606277466,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "2c211a2d.e90676",
- "type": "update",
- "name": "update AAI allotted-resource",
- "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"PendingDelete\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 679.2227401733398,
- "y": 1697.7543210983276,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "b8fd2a49.d0b368",
- "59f13b89.e4e7d4"
- ]
- ]
- },
- {
- "id": "d5bc9567.22f988",
- "type": "get-resource",
- "name": "get-resource connectivity",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.service-data.networks.network[0].network-id AND \n\t\t depth = '1'\"\n pfx='tmp.connectivity' local-only='false' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1213.0005645751953,
- "y": 1175.5044269561768,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "7024d4cd.1a62bc",
- "cf432033.112d9"
- ]
- ]
- },
- {
- "id": "41a48915.ce4758",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1986.1178741455078,
- "y": 1372.3445596694946,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "ae412232.e0411",
- "3c342d96.9776c2",
- "ac6b10fc.018ca",
- "3c2c4321.6e016c",
- "7164fdca.4a0d84",
- "dda1ddc2.84784",
- "f1f4e6ef.143a68"
- ]
- ]
- },
- {
- "id": "d567023b.2d9f",
- "type": "outcome",
- "name": "vpn-binding",
- "xml": "<outcome value='vpn-binding'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1812.286392211914,
- "y": 1374.8260831832886,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "41a48915.ce4758"
- ]
- ]
- },
- {
- "id": "de835816.465b48",
- "type": "for",
- "name": "for each relationship",
- "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1434.0003356933594,
- "y": 1373.0043096542358,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "a2ccacd2.b0dbc"
- ]
- ]
- },
- {
- "id": "a2ccacd2.b0dbc",
- "type": "switchNode",
- "name": "switch related-to",
- "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1646.0003471374512,
- "y": 1374.0043096542358,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "d567023b.2d9f"
- ]
- ]
- },
- {
- "id": "3c342d96.9776c2",
- "type": "set",
- "name": "set tmp.vpn-name",
- "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",
- "comments": "",
- "x": 2219.0005416870117,
- "y": 1086.004626274109,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "ae412232.e0411",
- "type": "execute",
- "name": "split vpnName to find nodeId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.vpn-name`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2255.0004959106445,
- "y": 1187.0039930343628,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "ae670977.becbb8",
- "60767ce2.3ab0a4"
- ]
- ]
- },
- {
- "id": "60767ce2.3ab0a4",
- "type": "failure",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2456.000686645508,
- "y": 1164.0039854049683,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "bf10a60c.fdea98"
- ]
- ]
- },
- {
- "id": "bf10a60c.fdea98",
- "type": "set",
- "name": "set tmp.node-id",
- "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n<parameter name='tmp.actual.vpn-name' value='`$route1[1]`' />\n",
- "comments": "",
- "x": 2609.000846862793,
- "y": 1162.0039863586426,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "a5afcc72.d877b",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
- "comments": "",
- "x": 2593.001012802124,
- "y": 1211.0039882659912,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "ae670977.becbb8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2453.00066947937,
- "y": 1212.0039901733398,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "a5afcc72.d877b"
- ]
- ]
- },
- {
- "id": "7024d4cd.1a62bc",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1394.0001640319824,
- "y": 1210.0000715255737,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "ea43f44.e748208"
- ]
- ]
- },
- {
- "id": "cf432033.112d9",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1396.851894378662,
- "y": 1137.0663166046143,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "801260ca.47a9"
- ]
- ]
- },
- {
- "id": "801260ca.47a9",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connectivity resource not found\" />\n \n",
- "comments": "",
- "x": 1539.0006637573242,
- "y": 1137.3337268829346,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "ea43f44.e748208",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1396.0001754760742,
- "y": 1288.0002374649048,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "de835816.465b48"
- ]
- ]
- },
- {
- "id": "693977cc.87d158",
- "type": "execute",
- "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 832.3339538574219,
- "y": 536.4999494552612,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "e963cad3.e8d6c8",
- "489ff5d2.164b7c"
- ]
- ]
- },
- {
- "id": "c0b8662.2083398",
- "type": "execute",
- "name": "get parent-service-data tmp.ar-url-psd",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 686.0001983642578,
- "y": 745.0002107620239,
- "z": "ed10e8c7.d58f28",
- "wires": [
- []
- ]
- },
- {
- "id": "fada7ab3.d1d4e8",
- "type": "execute",
- "name": "execute RestApiCallNode - get-resource parent service data",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 753.0001602172852,
- "y": 780.0002946853638,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "773fbfc3.82918",
- "be2f70a0.4132d"
- ]
- ]
- },
- {
- "id": "cfef8c40.7d401",
- "type": "switchNode",
- "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
- "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 769.1842803955078,
- "y": 954.7181224822998,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "cf2de8b0.5bcd28",
- "103b0ff7.ad1fb",
- "4057b675.85b588"
- ]
- ]
- },
- {
- "id": "dda1ddc2.84784",
- "type": "update",
- "name": "delete AAI vpn-binding",
- "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpn-name' >",
- "comments": "",
- "outputs": 1,
- "x": 2239.999954223633,
- "y": 1784.0001649856567,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "c726da18.1fa408",
- "b99e2363.4f50b"
- ]
- ]
- },
- {
- "id": "c726da18.1fa408",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2494.5079612731934,
- "y": 1764.1986340284348,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "53701c4b.a688d4"
- ]
- ]
- },
- {
- "id": "b99e2363.4f50b",
- "type": "failure",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2501.6032485961914,
- "y": 1796.9606016874313,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "53701c4b.a688d4"
- ]
- ]
- },
- {
- "id": "53701c4b.a688d4",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
- "comments": "",
- "x": 2661.031841278076,
- "y": 1775.8177050352097,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "f1f4e6ef.143a68",
- "type": "execute",
- "name": "execute RestApiCallNode Get token",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2279.7541580200195,
- "y": 1564.254002571106,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "f8436b41.519d68",
- "9d9f79f.4a7c888"
- ]
- ]
- },
- {
- "id": "f8436b41.519d68",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2514.7541580200195,
- "y": 1542.254002571106,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "1076a472.b53e4c"
- ]
- ]
- },
- {
- "id": "9d9f79f.4a7c888",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2507.0041580200195,
- "y": 1595.8968858718872,
- "z": "ed10e8c7.d58f28",
- "wires": [
- [
- "6534e8a7.2122d8"
- ]
- ]
- },
- {
- "id": "6534e8a7.2122d8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
- "comments": "",
- "x": 2659.7541580200195,
- "y": 1595.6469469070435,
- "z": "ed10e8c7.d58f28",
- "wires": []
- },
- {
- "id": "1076a472.b53e4c",
- "type": "set",
- "name": "set token-id",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
- "comments": "",
- "x": 2668.7541580200195,
- "y": 1543.254002571106,
- "z": "ed10e8c7.d58f28",
- "wires": []
- }
-]
+[
+ {
+ "id": "ff549c79.63961",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 94.03125,
+ "y": 49.00012397766113,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a05176da.ae3e48"
+ ]
+ ]
+ },
+ {
+ "id": "a05176da.ae3e48",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 275.03125381469727,
+ "y": 109.00014114379883,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "fe524cbe.32e62"
+ ]
+ ]
+ },
+ {
+ "id": "fe524cbe.32e62",
+ "type": "method",
+ "name": "sotn-attachment-topology-operation-deactivate",
+ "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 263.0313720703125,
+ "y": 197.00012397766113,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "437c9c25.6eb2d4"
+ ]
+ ]
+ },
+ {
+ "id": "437c9c25.6eb2d4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 279.0313720703125,
+ "y": 752.0003685951233,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a802b53.c930648",
+ "1068510.ffabdaf",
+ "90b4d4b2.478c88",
+ "96a33d9.74471c",
+ "f6798703.c71c48",
+ "74b419be.6c1dc8",
+ "cea5b658.f38fb8",
+ "8fc6baf4.1c66d8",
+ "bd5b936a.6f494",
+ "1ecf912a.ad8d5f",
+ "754f8876.c41b88",
+ "1fa63937.8805f7",
+ "8e1d23f5.d1706",
+ "d507ebff.314fd8",
+ "9f388371.4f18e",
+ "31cf3c93.494fc4",
+ "61d4f147.44641",
+ "7bc058aa.42a598",
+ "7c847f3c.b2ac4",
+ "f0fb1a1c.cc2828"
+ ]
+ ]
+ },
+ {
+ "id": "a802b53.c930648",
+ "type": "set",
+ "name": "set tmp.ar.allotted-resource-id,etc",
+ "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 676.0248107910156,
+ "y": 150.99361085891724,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "88124680.e6b8a8",
+ "type": "comment",
+ "name": "set tmp ar-id to fetch resource from MDSAL",
+ "info": "",
+ "comments": "",
+ "x": 704.9851226806641,
+ "y": 115.02540683746338,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "1068510.ffabdaf",
+ "type": "set",
+ "name": "set tmp.ar.self-link",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "comments": "",
+ "x": 630.0247497558594,
+ "y": 243.99361610412598,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "f6798703.c71c48",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 636.2866401672363,
+ "y": 331.66034507751465,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90b4d4b2.478c88",
+ "type": "execute",
+ "name": "generate allotted-resource tmp.ar-url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 686.2867431640625,
+ "y": 418.66034603118896,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "182d3b03.4e2c15",
+ "type": "comment",
+ "name": "GET connection-attachment-allotted-resource from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 729.8397369384766,
+ "y": 489.5388927459717,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "bbe52b99.83dd68",
+ "type": "comment",
+ "name": "Used for setting output to API Handler",
+ "info": "",
+ "comments": "",
+ "x": 684.0247802734375,
+ "y": 210.99362564086914,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "dce4912.220bb7",
+ "type": "comment",
+ "name": "Obtain different URL, template location etc",
+ "info": "For saving resource information to MDSAL & for AAI",
+ "comments": "",
+ "x": 702.0247459411621,
+ "y": 296.88250637054443,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "66940a34.fde394",
+ "type": "comment",
+ "name": "Used to Get AR by id to MDSAL, same as self-link",
+ "info": "",
+ "comments": "",
+ "x": 728.0247650146484,
+ "y": 383.8824653625488,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "55776be8.abf844",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1170.6980781555176,
+ "y": 537.0001525878906,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "5a06af0c.5db4c"
+ ]
+ ]
+ },
+ {
+ "id": "5a06af0c.5db4c",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1339.6980819702148,
+ "y": 535.5000534057617,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "faae066.03a7ef8"
+ ]
+ ]
+ },
+ {
+ "id": "faae066.03a7ef8",
+ "type": "switchNode",
+ "name": "switch cr length",
+ "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1512.5553512573242,
+ "y": 473.119215965271,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "74bd4c84.2a01f4",
+ "6215df1.a21872"
+ ]
+ ]
+ },
+ {
+ "id": "74bd4c84.2a01f4",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1749.8885955810547,
+ "y": 451.11916637420654,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "932b115b.ef744"
+ ]
+ ]
+ },
+ {
+ "id": "932b115b.ef744",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1934.4124851226807,
+ "y": 448.0240001678467,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "d5b08a67.3e5c48",
+ "5ce1e592.04689c",
+ "fa1f1660.477578"
+ ]
+ ]
+ },
+ {
+ "id": "1d1825f2.925d0a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1858.5503273010254,
+ "y": 573.0662412643433,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "2f2bf02.ca60d1",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1162.5498809814453,
+ "y": 572.066237449646,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "82e6da2.ad6fd28"
+ ]
+ ]
+ },
+ {
+ "id": "82e6da2.ad6fd28",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1342.5498313903809,
+ "y": 572.7327880859375,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "1d1825f2.925d0a"
+ ]
+ ]
+ },
+ {
+ "id": "6215df1.a21872",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1738.2165489196777,
+ "y": 488.39952659606934,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "1d1825f2.925d0a"
+ ]
+ ]
+ },
+ {
+ "id": "d5b08a67.3e5c48",
+ "type": "set",
+ "name": "set connection-attachment-ar from get",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
+ "comments": "",
+ "x": 2180.476043701172,
+ "y": 408.00022983551025,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "fa1f1660.477578",
+ "type": "set",
+ "name": "set oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
+ "comments": "",
+ "x": 2113.4760398864746,
+ "y": 498.42878437042236,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "5ce1e592.04689c",
+ "type": "switchNode",
+ "name": "switch order-status",
+ "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2124.475875854492,
+ "y": 452.0002336502075,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "46412cb7.a5f6f4",
+ "b5fc3d64.54bed"
+ ]
+ ]
+ },
+ {
+ "id": "46412cb7.a5f6f4",
+ "type": "outcome",
+ "name": "outcome Active",
+ "xml": "<outcome value='Active'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2331.075824737549,
+ "y": 442.0002336502075,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "11963437.b728dc"
+ ]
+ ]
+ },
+ {
+ "id": "b5fc3d64.54bed",
+ "type": "outcome",
+ "name": "outcome Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2330.7903442382812,
+ "y": 484.42882442474365,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "1c1d147e.4224ac"
+ ]
+ ]
+ },
+ {
+ "id": "11963437.b728dc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2483.5463790893555,
+ "y": 440.3758840560913,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1c1d147e.4224ac",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
+ "comments": "",
+ "x": 2503.6982345581055,
+ "y": 481.00023555755615,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "6ad0e2bd.71bc3c",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 891.3343658447266,
+ "y": 633.4937148094177,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "74b419be.6c1dc8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 588.3405303955078,
+ "y": 634.5000629425049,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6ad0e2bd.71bc3c"
+ ]
+ ]
+ },
+ {
+ "id": "8a5e890a.680be8",
+ "type": "comment",
+ "name": "GET parent-service-data from mdsal to check existence of other End point",
+ "info": "",
+ "comments": "",
+ "x": 770.0316925048828,
+ "y": 695.5318222045898,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "2205c5d5.df45ea",
+ "type": "for",
+ "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
+ "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1660.2162475585938,
+ "y": 899.0042066574097,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "325e72dd.42ae0e"
+ ]
+ ]
+ },
+ {
+ "id": "f3fcb7.3cb38348",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1066.3582191467285,
+ "y": 1031.5756673812866,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "ed4934e0.63e078"
+ ]
+ ]
+ },
+ {
+ "id": "640c50fa.9b815",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1257.4856204986572,
+ "y": 896.7016951814294,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "2205c5d5.df45ea"
+ ]
+ ]
+ },
+ {
+ "id": "325e72dd.42ae0e",
+ "type": "switchNode",
+ "name": "switch allotted-resource-id",
+ "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2095.327648162842,
+ "y": 899.0041036605835,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "27ec9aa5.cff036",
+ "495a6869.e7e8d8"
+ ]
+ ]
+ },
+ {
+ "id": "27ec9aa5.cff036",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2304.137996673584,
+ "y": 879.468560218811,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "ac118201.9b0e6"
+ ]
+ ]
+ },
+ {
+ "id": "7260dcf8.1fb0a4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2452.898750305176,
+ "y": 915.3257417678833,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "5e185008.36b4b"
+ ]
+ ]
+ },
+ {
+ "id": "5e185008.36b4b",
+ "type": "set",
+ "name": "set tmp.pidx and ptx.consumed-ar",
+ "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 2687.756187438965,
+ "y": 913.8972730636597,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "b3d0356b.e2dd48",
+ "type": "comment",
+ "name": "Check existence of other AR in parent service data",
+ "info": "Check if other allotted resource is available.",
+ "comments": "",
+ "x": 693.9940948486328,
+ "y": 865.8930444717407,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "31b6e940.d005b6",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1077.0105667114258,
+ "y": 966.6773881912231,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "864fe6a.0f93518"
+ ]
+ ]
+ },
+ {
+ "id": "ed4934e0.63e078",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1239.0105628967285,
+ "y": 1030.677409172058,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "998ab047.1d3cb",
+ "type": "other",
+ "name": "outcome 2",
+ "xml": "<outcome value='2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1083.0106410980225,
+ "y": 897.6773955598474,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "640c50fa.9b815"
+ ]
+ ]
+ },
+ {
+ "id": "ac118201.9b0e6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2433.122055053711,
+ "y": 874.677300453186,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "495a6869.e7e8d8",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2304.1220474243164,
+ "y": 913.6773042678833,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "7260dcf8.1fb0a4"
+ ]
+ ]
+ },
+ {
+ "id": "e0954e7f.0fc95",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.networks_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1489.3442459106445,
+ "y": 969.8998851776123,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6d21348c.4e000c",
+ "8b08dda8.1325d"
+ ]
+ ]
+ },
+ {
+ "id": "8b08dda8.1325d",
+ "type": "other",
+ "name": "outcome 1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1719.3442687988281,
+ "y": 945.7887172698975,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "2e4674ae.83d44c"
+ ]
+ ]
+ },
+ {
+ "id": "6d21348c.4e000c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1713.3443908691406,
+ "y": 1005.7887172698975,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "33f517e8.5f1128"
+ ]
+ ]
+ },
+ {
+ "id": "33f517e8.5f1128",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n \n",
+ "comments": "",
+ "x": 1885.9967765808105,
+ "y": 1005.8905239105225,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "6f8f7dac.c1bd54",
+ "type": "set",
+ "name": "set tmp.network.",
+ "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n",
+ "comments": "",
+ "x": 2087.789192199707,
+ "y": 935.7888765335083,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "864fe6a.0f93518",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1249.454921722412,
+ "y": 967.7886362075806,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "e0954e7f.0fc95"
+ ]
+ ]
+ },
+ {
+ "id": "2e4674ae.83d44c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1887.121940612793,
+ "y": 964.7885513305664,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6f8f7dac.c1bd54",
+ "ac5226f5.253788"
+ ]
+ ]
+ },
+ {
+ "id": "ac5226f5.253788",
+ "type": "for",
+ "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
+ "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2263.12255859375,
+ "y": 1007.7885589599609,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "314fe564.900c2a"
+ ]
+ ]
+ },
+ {
+ "id": "314fe564.900c2a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2586.6782188415527,
+ "y": 1008.7886362075806,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6d64b0f1.beb81",
+ "e3bdd7fd.7d8fe8"
+ ]
+ ]
+ },
+ {
+ "id": "6d64b0f1.beb81",
+ "type": "switchNode",
+ "name": "switch access-node-id",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2765.1883239746094,
+ "y": 992.799054145813,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "c510bd0d.90a2"
+ ]
+ ]
+ },
+ {
+ "id": "c510bd0d.90a2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2952.1883239746094,
+ "y": 993.799054145813,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a92bc658.3e7468"
+ ]
+ ]
+ },
+ {
+ "id": "a92bc658.3e7468",
+ "type": "set",
+ "name": "set tmp.found-in-network tmp.ep-available",
+ "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
+ "comments": "",
+ "x": 3203.188331604004,
+ "y": 993.3989963531494,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "e3bdd7fd.7d8fe8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "x": 2748.17822265625,
+ "y": 1037.7886533737183,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "96a33d9.74471c",
+ "type": "switchNode",
+ "name": "switch tmp.ep-available",
+ "xml": "<switch test='`$tmp.ep-available`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 625.3441162109375,
+ "y": 1170.2329092025757,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "61b02086.d03f9",
+ "6c4d286f.2a00a8"
+ ]
+ ]
+ },
+ {
+ "id": "6c4d286f.2a00a8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 808.0109519958496,
+ "y": 1194.5663175582886,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "929ee9e7.521368"
+ ]
+ ]
+ },
+ {
+ "id": "61b02086.d03f9",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 810.8997230529785,
+ "y": 1133.5664157867432,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "856596b.3c40368"
+ ]
+ ]
+ },
+ {
+ "id": "856596b.3c40368",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 947.8997993469238,
+ "y": 1132.4552297592163,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "929ee9e7.521368",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 978.1220397949219,
+ "y": 1192.5662755966187,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "be61dd8a.9e196"
+ ]
+ ]
+ },
+ {
+ "id": "eb0bfad4.778f58",
+ "type": "comment",
+ "name": "GET connection-attachment-ar to store AR data from mdsal",
+ "info": "",
+ "comments": "",
+ "x": 2163.504196166992,
+ "y": 372.504093170166,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "114f8c87.a5aa33",
+ "type": "comment",
+ "name": "Set source end point",
+ "info": "",
+ "comments": "",
+ "x": 602.0040893554688,
+ "y": 602.2541885375977,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "cea5b658.f38fb8",
+ "type": "set",
+ "name": "set tmp.ar.parent-service-instance-id",
+ "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
+ "comments": "",
+ "x": 655.0001678466797,
+ "y": 727.0003328323364,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "5d8dc0c4.ff757",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1033.0001640319824,
+ "y": 776.0003318786621,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6a1bf843.4d25b8"
+ ]
+ ]
+ },
+ {
+ "id": "83b7907.b55937",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1024.8519668579102,
+ "y": 811.0664167404175,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "4f4eb4c7.cc9fdc"
+ ]
+ ]
+ },
+ {
+ "id": "4f4eb4c7.cc9fdc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n \n",
+ "comments": "",
+ "x": 1200.0006523132324,
+ "y": 807.3337669372559,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "6a1bf843.4d25b8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1184.0001640319824,
+ "y": 774.0003318786621,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8fc6baf4.1c66d8",
+ "type": "set",
+ "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
+ "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
+ "comments": "",
+ "x": 742.0001602172852,
+ "y": 901.0003061294556,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "ce5d7876.710a68",
+ "type": "comment",
+ "name": "If other EP exists delete from domain controller",
+ "info": "",
+ "comments": "",
+ "x": 676.0000610351562,
+ "y": 1095.0001211166382,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "fd46c38b.b0e06",
+ "type": "set",
+ "name": "set controller data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
+ "comments": "",
+ "x": 2674.000877380371,
+ "y": 1385.0007133483887,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "ff817e6a.4c262",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2237.500816345215,
+ "y": 1444.0007133483887,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "f3622c21.50f46",
+ "e431ae5e.58828",
+ "a151b89e.28add8"
+ ]
+ ]
+ },
+ {
+ "id": "f3622c21.50f46",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2476.500816345215,
+ "y": 1397.0007133483887,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "fd46c38b.b0e06"
+ ]
+ ]
+ },
+ {
+ "id": "e431ae5e.58828",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2479.99178314209,
+ "y": 1444.57474899292,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "236bc0bf.99bb6"
+ ]
+ ]
+ },
+ {
+ "id": "a151b89e.28add8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2475.32479095459,
+ "y": 1485.9080619812012,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6adb79b2.e33818"
+ ]
+ ]
+ },
+ {
+ "id": "236bc0bf.99bb6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 2656.5631942749023,
+ "y": 1432.8604850769043,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "6adb79b2.e33818",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 2663.0973472595215,
+ "y": 1481.3472547531128,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "993c0a9c.fa2968",
+ "type": "get-resource",
+ "name": "get-resource pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2187.0009841918945,
+ "y": 1336.000542640686,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "6cbbdc6c.177994",
+ "d6b323fb.dd5df",
+ "691cb9fb.eb1b88"
+ ]
+ ]
+ },
+ {
+ "id": "6cbbdc6c.177994",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2375.0009994506836,
+ "y": 1282.0005350112915,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "f3a2b0cc.a6cd3"
+ ]
+ ]
+ },
+ {
+ "id": "d6b323fb.dd5df",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2380.492046356201,
+ "y": 1324.5744314193726,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "44a433a2.c4cb1c"
+ ]
+ ]
+ },
+ {
+ "id": "691cb9fb.eb1b88",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2366.825054168701,
+ "y": 1362.9077672958374,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a204db7f.ac39f8"
+ ]
+ ]
+ },
+ {
+ "id": "44a433a2.c4cb1c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2534.063346862793,
+ "y": 1314.8602380752563,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "a204db7f.ac39f8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 2530.597526550293,
+ "y": 1354.3470573425293,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "f3a2b0cc.a6cd3",
+ "type": "set",
+ "name": "set tmp.thirdparty-sdnc-id",
+ "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 2575.0010147094727,
+ "y": 1277.0005350112915,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "d61e54ea.0473f8",
+ "type": "comment",
+ "name": "get domain controller information",
+ "info": "",
+ "comments": "",
+ "x": 2230.5048904418945,
+ "y": 1305.0045099258423,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "10d17cd1.f30ab3",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete ethernet Service",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2761.001152038574,
+ "y": 1730.000747680664,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "94d88f9c.771f9",
+ "f2badd12.3e9c1"
+ ]
+ ]
+ },
+ {
+ "id": "94d88f9c.771f9",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3107.000801086426,
+ "y": 1714.0007457733154,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "1c7ac915.f6a6b7"
+ ]
+ ]
+ },
+ {
+ "id": "1c7ac915.f6a6b7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3277.0007400512695,
+ "y": 1717.0007457733154,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "73cc424c.c105bc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 3277.000862121582,
+ "y": 1673.0007457733154,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "f2badd12.3e9c1",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3110.0007400512695,
+ "y": 1673.0007457733154,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "73cc424c.c105bc"
+ ]
+ ]
+ },
+ {
+ "id": "4d3c7e74.2037b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 904.7619972229004,
+ "y": 1694.9529141187668,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "9a2c9c7c.b67bf"
+ ]
+ ]
+ },
+ {
+ "id": "9a2c9c7c.b67bf",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 1071.2858772277832,
+ "y": 1706.5719851255417,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "76fdd751.58a9d8",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 911.8572845458984,
+ "y": 1727.7148817777634,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "9a2c9c7c.b67bf"
+ ]
+ ]
+ },
+ {
+ "id": "4fec1ce6.1b1a34",
+ "type": "comment",
+ "name": "Save Resource to AAI",
+ "info": "",
+ "comments": "",
+ "x": 623.8097114562988,
+ "y": 1677.3023023605347,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "d507ebff.314fd8",
+ "type": "set",
+ "name": "set output to api handler",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "comments": "",
+ "x": 638.5774078369141,
+ "y": 1598.8277835845947,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "9f388371.4f18e",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "x": 606.9904899597168,
+ "y": 1759.4435358047485,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "8e1d23f5.d1706",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT AR by id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 688.3095092773438,
+ "y": 1506.468557357788,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "e11c7417.4fa658",
+ "64cfcda1.4c2f84",
+ "c55d4506.901118"
+ ]
+ ]
+ },
+ {
+ "id": "e11c7417.4fa658",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 956.9508857727051,
+ "y": 1557.799969099462,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "14bdf473.21930c"
+ ]
+ ]
+ },
+ {
+ "id": "64cfcda1.4c2f84",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 947.9509353637695,
+ "y": 1526.2999948486686,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "14bdf473.21930c"
+ ]
+ ]
+ },
+ {
+ "id": "c55d4506.901118",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 951.7009735107422,
+ "y": 1496.657099723816,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "82c892ac.f910d"
+ ]
+ ]
+ },
+ {
+ "id": "14bdf473.21930c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
+ "comments": "",
+ "x": 1117.7009735107422,
+ "y": 1527.0500186905265,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "82c892ac.f910d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1093.3569412231445,
+ "y": 1492.849268913269,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd5b936a.6f494",
+ "type": "set",
+ "name": "set ar-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
+ "comments": "",
+ "x": 588.5231285095215,
+ "y": 1356.8494803905487,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "754f8876.c41b88",
+ "type": "execute",
+ "name": "execute getTime",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 605.8089714050293,
+ "y": 1429.4690780639648,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1fa63937.8805f7",
+ "type": "set",
+ "name": "set allotted-resource-oper-status",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
+ "comments": "",
+ "x": 660.796028137207,
+ "y": 1467.4202156066895,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "1ecf912a.ad8d5f",
+ "type": "set",
+ "name": "set model-data",
+ "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
+ "comments": "",
+ "x": 602.3646697998047,
+ "y": 1396.024130821228,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "3d5eb994.20a306",
+ "type": "comment",
+ "name": "Prepare data for allotted-resource addition to MDSAL",
+ "info": "This will add to allotted-resource which is present inside service.",
+ "comments": "",
+ "x": 715.6981315612793,
+ "y": 1317.0240828990936,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "35db93ec.682e9c",
+ "type": "comment",
+ "name": "Add to allotted-resources in mdsal",
+ "info": "",
+ "comments": "",
+ "x": 657.2779579162598,
+ "y": 1284.4373846054077,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "31cf3c93.494fc4",
+ "type": "update",
+ "name": "update AAI allotted-resource",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"PendingDelete\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 650.2539901733398,
+ "y": 1714.7544450759888,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "4d3c7e74.2037b",
+ "76fdd751.58a9d8"
+ ]
+ ]
+ },
+ {
+ "id": "be61dd8a.9e196",
+ "type": "get-resource",
+ "name": "get-resource connectivity",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.service-data.networks.network[0].network-id AND \n\t\t depth = '1'\"\n pfx='tmp.connectivity' local-only='false' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1184.0318145751953,
+ "y": 1192.504550933838,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "ec3a781a.b17a88",
+ "13bcbf26.d71d71"
+ ]
+ ]
+ },
+ {
+ "id": "3730ddb4.d493b2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1957.1491241455078,
+ "y": 1389.3446836471558,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "76aabffd.38e",
+ "ddc37a19.aa1838",
+ "993c0a9c.fa2968",
+ "ff817e6a.4c262",
+ "d2c267be.388018",
+ "4ec4550f.fd160c",
+ "767b76a3.973bd8"
+ ]
+ ]
+ },
+ {
+ "id": "2d7c3367.b4917c",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1783.317642211914,
+ "y": 1391.8262071609497,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "3730ddb4.d493b2"
+ ]
+ ]
+ },
+ {
+ "id": "95f1a2bf.0b285",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1405.0315856933594,
+ "y": 1390.004433631897,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "68b3b3fe.7b312c"
+ ]
+ ]
+ },
+ {
+ "id": "68b3b3fe.7b312c",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1617.0315971374512,
+ "y": 1391.004433631897,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "2d7c3367.b4917c"
+ ]
+ ]
+ },
+ {
+ "id": "ddc37a19.aa1838",
+ "type": "set",
+ "name": "set tmp.vpn-name",
+ "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",
+ "comments": "",
+ "x": 2190.0317916870117,
+ "y": 1103.00475025177,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "76aabffd.38e",
+ "type": "execute",
+ "name": "split vpnName to find nodeId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.vpn-name`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2226.0317459106445,
+ "y": 1204.004117012024,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "78a77003.35ea4",
+ "637ec688.c44a88"
+ ]
+ ]
+ },
+ {
+ "id": "637ec688.c44a88",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2427.031936645508,
+ "y": 1181.0041093826294,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "b87e837.b66ce8"
+ ]
+ ]
+ },
+ {
+ "id": "b87e837.b66ce8",
+ "type": "set",
+ "name": "set tmp.node-id",
+ "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n<parameter name='tmp.actual.vpn-name' value='`$route1[1]`' />\n",
+ "comments": "",
+ "x": 2580.032096862793,
+ "y": 1179.0041103363037,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "857b862a.e6a0b8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 2564.032262802124,
+ "y": 1228.0041122436523,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "78a77003.35ea4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2424.03191947937,
+ "y": 1229.004114151001,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "857b862a.e6a0b8"
+ ]
+ ]
+ },
+ {
+ "id": "ec3a781a.b17a88",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1365.0314140319824,
+ "y": 1227.0001955032349,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "8cc479bc.b82368"
+ ]
+ ]
+ },
+ {
+ "id": "13bcbf26.d71d71",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1367.883144378662,
+ "y": 1154.0664405822754,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "c5f74144.ebbac"
+ ]
+ ]
+ },
+ {
+ "id": "c5f74144.ebbac",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Connectivity resource not found\" />\n \n",
+ "comments": "",
+ "x": 1510.0319137573242,
+ "y": 1154.3338508605957,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "8cc479bc.b82368",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1367.0314254760742,
+ "y": 1305.000361442566,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "95f1a2bf.0b285"
+ ]
+ ]
+ },
+ {
+ "id": "61d4f147.44641",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 803.3652038574219,
+ "y": 553.5000734329224,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "55776be8.abf844",
+ "2f2bf02.ca60d1"
+ ]
+ ]
+ },
+ {
+ "id": "7bc058aa.42a598",
+ "type": "execute",
+ "name": "get parent-service-data tmp.ar-url-psd",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 657.0314483642578,
+ "y": 762.0003347396851,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7c847f3c.b2ac4",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get-resource parent service data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 724.0314102172852,
+ "y": 797.0004186630249,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "5d8dc0c4.ff757",
+ "83b7907.b55937"
+ ]
+ ]
+ },
+ {
+ "id": "f0fb1a1c.cc2828",
+ "type": "switchNode",
+ "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
+ "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 740.2155303955078,
+ "y": 971.7182464599609,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "f3fcb7.3cb38348",
+ "31b6e940.d005b6",
+ "998ab047.1d3cb"
+ ]
+ ]
+ },
+ {
+ "id": "d2c267be.388018",
+ "type": "update",
+ "name": "delete AAI vpn-binding",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpn-name' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2211.031204223633,
+ "y": 1801.0002889633179,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "e8b749f3.e275f8",
+ "ef20a9a9.f1fb18"
+ ]
+ ]
+ },
+ {
+ "id": "e8b749f3.e275f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2465.5392112731934,
+ "y": 1781.1987580060959,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "b53766de.89b208"
+ ]
+ ]
+ },
+ {
+ "id": "ef20a9a9.f1fb18",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2472.6344985961914,
+ "y": 1813.9607256650925,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "b53766de.89b208"
+ ]
+ ]
+ },
+ {
+ "id": "b53766de.89b208",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
+ "comments": "",
+ "x": 2632.063091278076,
+ "y": 1792.8178290128708,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "4ec4550f.fd160c",
+ "type": "execute",
+ "name": "execute RestApiCallNode Get token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2250.7854080200195,
+ "y": 1581.254126548767,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "d144148d.dc75b8",
+ "6622df6c.28bd"
+ ]
+ ]
+ },
+ {
+ "id": "d144148d.dc75b8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2485.7854080200195,
+ "y": 1559.254126548767,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "11df681e.1cd4c8"
+ ]
+ ]
+ },
+ {
+ "id": "6622df6c.28bd",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2478.0354080200195,
+ "y": 1612.8970098495483,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "a07b50ef.81562"
+ ]
+ ]
+ },
+ {
+ "id": "11df681e.1cd4c8",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 2639.7854080200195,
+ "y": 1560.254126548767,
+ "z": "f47a0348.da1fc",
+ "wires": []
+ },
+ {
+ "id": "767b76a3.973bd8",
+ "type": "switchNode",
+ "name": "switch prop.sdncRestApi.token_id",
+ "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2257.031126022339,
+ "y": 1686.5312061309814,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "647e08e2.0afec8",
+ "4b8f5cd7.3f8294"
+ ]
+ ]
+ },
+ {
+ "id": "4b8f5cd7.3f8294",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2477.0312519073486,
+ "y": 1726.031084060669,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "10d17cd1.f30ab3"
+ ]
+ ]
+ },
+ {
+ "id": "647e08e2.0afec8",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2483.031373977661,
+ "y": 1662.5310831069946,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "e34fee1b.784d2"
+ ]
+ ]
+ },
+ {
+ "id": "a07b50ef.81562",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2623.0311431884766,
+ "y": 1610.5309600830078,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e34fee1b.784d2",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete ethernet Service",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2762.03125,
+ "y": 1659.5311279296875,
+ "z": "f47a0348.da1fc",
+ "wires": [
+ [
+ "f2badd12.3e9c1",
+ "94d88f9c.771f9"
+ ]
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml
index f2e71fad..663135a2 100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation.xml
@@ -1,443 +1,452 @@
<?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>
+<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="Other">
- <set>
- <parameter name="nidx" value="`$tmp.nidx`"/>
- </set>
+ <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>
- </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 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">
- <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 value='Other'>
+ <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' ></call>
</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>
+ </switch>
+ </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>
+ <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'>
+ <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-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>
+ </execute>
+ </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="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 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">
- <set>
- <parameter name="nidx" value="`$tmp.nidx`"/>
- </set>
+ <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>
- </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='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'>
+ <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>
+ <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' ></call>
+ </block>
+ </outcome>
+ </execute>
+ </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='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="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 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>
- </block>
- </outcome>
- </switch>
- <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-deactivate" mode="sync"></call>
- </block>
+ </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>
- </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>
+ <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='false'>
+ <block atomic="true">
+ <call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' ></call>
+ </block>
+ </outcome>
+ </execute>
+ </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="false">
- <block atomic="true">
- <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-create" mode="sync"></call>
- </block>
+ <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>
+ <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>
- </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 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>
- <outcome value="false">
- <block atomic="true">
- <call module="GENERIC-RESOURCE-API" rpc="network-topology-operation-delete" mode="sync"></call>
- </block>
+ <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>
- </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>
+ </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>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.xml
index 3d9d0bb9..85522cf6 100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.xml
@@ -44,35 +44,35 @@
</set>
<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>
<outcome value='true'>
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>
- <outcome value='FAILED'>
- <block>
- <for index="kidx" start="0" end="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key_length`">
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].name`'>
- <outcome value='service-instance-id'>
- <set>
- <parameter name='tmp.ss.service-instance-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='vnf-id'>
- <set>
- <parameter name='tmp.ss.vnf-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='prefix-id'>
- <set>
- <parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='external_key'>
- <set>
- <parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- </switch>
- </for>
- <switch test='`$ss.capability-action`'>
- <outcome value='assign'>
+ <block>
+ <for index="kidx" start="0" end="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key_length`">
+ <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].name`'>
+ <outcome value='service-instance-id'>
+ <set>
+ <parameter name='tmp.ss.service-instance-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
+ </set>
+ </outcome>
+ <outcome value='vnf-id'>
+ <set>
+ <parameter name='tmp.ss.vnf-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
+ </set>
+ </outcome>
+ <outcome value='prefix-id'>
+ <set>
+ <parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
+ </set>
+ </outcome>
+ <outcome value='external_key'>
+ <set>
+ <parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ </for>
+ <switch test='`$ss.capability-action`'>
+ <outcome value='assign'>
+ <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>
+ <outcome value='FAILED'>
<block atomic='true'>
<execute plugin="org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient" method="assignIpAddress">
<parameter name="service_instance_id" value="`$tmp.ss.service-instance-id`" />
@@ -111,85 +111,7 @@
</execute>
</block>
</outcome>
- <outcome value='unassign'>
- <block atomic="true">
- <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from IPAM_IP_ASSIGNEMENT
- WHERE external_key = $tmp.ss.external-key
- AND service_instance_id = $tmp.ss.service-instance-id' >
- <outcome value='not-found'>
- <block></block>
- </outcome>
- <outcome value='success'>
- <block atomic="true">
- <set>
- <parameter name='tmp.status' value="PENDING_DELETE" />
- </set>
- <update plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL"
- key="UPDATE IPAM_IP_ASSIGNEMENT set ip_status = $tmp.status
- WHERE external_key = $tmp.ss.external-key
- AND service_instance_id = $tmp.ss.service-instance-id" >
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'Error updating NETBOX_IP_ASSIGNMENTS table to unassign ip with external_key=' + $tmp.ss.external-key + ' and service_instance_id=' + $tmp.ss.service-instance-id`" />
- </return>
- </outcome>
- </update>
- <execute plugin="org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient" method="unassignIpAddress">
- <parameter name="service_instance_id" value="`$tmp.ss.service-instance-id`" />
- <parameter name="external_key" value="`$tmp.ss.external-key`" />
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'Error in NetboxClient#unassignIPAddress with external-key='+ $tmp.ss.external-key`" />
- </return>
- </outcome>
- <outcome value='success'>
- <set>
- <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status'
- value='DELETED' />
- </set>
- </outcome>
- </execute>
- </block>
- </outcome>
- </get-resource>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='PENDING'>
- <block>
- <for index="kidx" start="0" end="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key_length`">
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].name`'>
- <outcome value='service-instance-id'>
- <set>
- <parameter name='tmp.ss.service-instance-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='vnf-id'>
- <set>
- <parameter name='tmp.ss.vnf-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='prefix-id'>
- <set>
- <parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='external_key'>
- <set>
- <parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- </switch>
- </for>
- <switch test='`$ss.capability-action`'>
- <outcome value='assign'>
+ <outcome value='PENDING'>
<block atomic='true'>
<execute plugin="org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient" method="assignIpAddress">
<parameter name="service_instance_id" value="`$tmp.ss.service-instance-id`" />
@@ -228,7 +150,11 @@
</execute>
</block>
</outcome>
- <outcome value='unassign'>
+ </switch>
+ </outcome>
+ <outcome value='unassign'>
+ <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>
+ <outcome value='SUCCESS'>
<block atomic="true">
<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
key='SELECT * from IPAM_IP_ASSIGNEMENT
@@ -277,9 +203,9 @@
</block>
</outcome>
</switch>
- </block>
- </outcome>
- </switch>
+ </outcome>
+ </switch>
+ </block>
</outcome>
</switch>
</for>
@@ -305,40 +231,40 @@
</set>
<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>
<outcome value='true'>
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`'>
- <outcome value='FAILED'>
- <block>
- <for index="kidx" start="0" end="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key_length`">
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].name`'>
- <outcome value='service-instance-id'>
- <set>
- <parameter name='tmp.ss.service-instance-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='vf-module-id'>
- <set>
- <parameter name='tmp.ss.vf-module-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='prefix-id'>
- <set>
- <parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='ip-address-id'>
- <set>
- <parameter name='tmp.ss.ip-address-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='external_key'>
- <set>
- <parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- </switch>
- </for>
- <switch test='`$ss.capability-action`'>
- <outcome value='assign'>
+ <block>
+ <for index="kidx" start="0" end="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key_length`">
+ <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].name`'>
+ <outcome value='service-instance-id'>
+ <set>
+ <parameter name='tmp.ss.service-instance-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
+ </set>
+ </outcome>
+ <outcome value='vf-module-id'>
+ <set>
+ <parameter name='tmp.ss.vf-module-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
+ </set>
+ </outcome>
+ <outcome value='prefix-id'>
+ <set>
+ <parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
+ </set>
+ </outcome>
+ <outcome value='ip-address-id'>
+ <set>
+ <parameter name='tmp.ss.ip-address-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
+ </set>
+ </outcome>
+ <outcome value='external_key'>
+ <set>
+ <parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ </for>
+ <switch test='`$ss.capability-action`'>
+ <outcome value='assign'>
+ <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`'>
+ <outcome value='FAILED'>
<block atomic='true'>
<execute plugin="org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient" method="assignIpAddress">
<parameter name="service_instance_id" value="`$tmp.ss.service-instance-id`" />
@@ -377,90 +303,7 @@
</execute>
</block>
</outcome>
- <outcome value='unassign'>
- <block atomic="true">
- <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
- key='SELECT * from IPAM_IP_ASSIGNEMENT
- WHERE external_key = $tmp.ss.external-key
- AND service_instance_id = $tmp.ss.service-instance-id' >
- <outcome value='not-found'>
- <block></block>
- </outcome>
- <outcome value='success'>
- <block atomic="true">
- <set>
- <parameter name='tmp.status' value="PENDING_DELETE" />
- </set>
- <update plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL"
- key="UPDATE IPAM_IP_ASSIGNEMENT set ip_status = $tmp.status
- WHERE external_key = $tmp.ss.external-key
- AND service_instance_id = $tmp.ss.service-instance-id" >
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'Error updating NETBOX_IP_ASSIGNMENTS table to unassign ip with external_key=' + $tmp.ss.external-key + ' and service_instance_id=' + $tmp.ss.service-instance-id`" />
- </return>
- </outcome>
- </update>
- <execute plugin="org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient" method="unassignIpAddress">
- <parameter name="service_instance_id" value="`$tmp.ss.service-instance-id`" />
- <parameter name="external_key" value="`$tmp.ss.external-key`" />
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'Error in NetboxClient#unassignIPAddress with external-key='+ $tmp.ss.external-key`" />
- </return>
- </outcome>
- <outcome value='success'>
- <set>
- <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status'
- value='DELETED' />
- </set>
- </outcome>
- </execute>
- </block>
- </outcome>
- </get-resource>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='PENDING'>
- <block>
- <for index="kidx" start="0" end="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key_length`">
- <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].name`'>
- <outcome value='service-instance-id'>
- <set>
- <parameter name='tmp.ss.service-instance-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='vf-module-id'>
- <set>
- <parameter name='tmp.ss.vf-module-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='prefix-id'>
- <set>
- <parameter name='tmp.ss.prefix-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='ip-address-id'>
- <set>
- <parameter name='tmp.ss.ip-address-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- <outcome value='external_key'>
- <set>
- <parameter name='tmp.ss.external-key' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.resource-key[$kidx].value`' />
- </set>
- </outcome>
- </switch>
- </for>
- <switch test='`$ss.capability-action`'>
- <outcome value='assign'>
+ <outcome value='PENDING'>
<block atomic='true'>
<execute plugin="org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient" method="assignIpAddress">
<parameter name="service_instance_id" value="`$tmp.ss.service-instance-id`" />
@@ -499,7 +342,11 @@
</execute>
</block>
</outcome>
- <outcome value='unassign'>
+ </switch>
+ </outcome>
+ <outcome value='unassign'>
+ <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`'>
+ <outcome value='SUCCESS'>
<block atomic="true">
<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
key='SELECT * from IPAM_IP_ASSIGNEMENT
@@ -548,9 +395,9 @@
</block>
</outcome>
</switch>
- </block>
- </outcome>
- </switch>
+ </outcome>
+ </switch>
+ </block>
</outcome>
</switch>
</for>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.xml
index bbec5b34..1c5e0770 100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.xml
@@ -50,7 +50,7 @@
<outcome value='success'>
<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
key='SELECT vf_module_label from VF_MODULE_MODEL
- WHERE vf_customization_uuid = $vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid
+ WHERE vf_customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid
AND vf_module_label is not null '
pfx='db.vf-module-label'>
<outcome value='success'>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.xml
index 1b3ff069..725e64f4 100755..100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-unassign.xml
@@ -57,6 +57,9 @@
</return>
</outcome>
</switch>
+ <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
+ key='SELECT * from VF_MODEL WHERE customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'
+ pfx='db.vf-model'></get-resource>
<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-forking-logic' mode='sync' ></call>
<switch test="`$ss.self-serve-flag`">
<outcome value='false'>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml
index 4ce82b1c..2b20f06e 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml
@@ -265,6 +265,16 @@ value="`$connection-attachment-ar-identifiers.`" />
</return>
</outcome>
</save>
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="service-instance:relationship-list"
+ key="customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND
+ service-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND
+ service-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id"
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="allotted-resource" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/business/customers/customer/' + $connection-attachment-topology-operation-input.service-information.global-customer-id + '/service-subscriptions/service-subscription/' + $connection-attachment-topology-operation-input.service-information.subscription-service-type + '/service-instances/service-instance/' + $connection-attachment-topology-operation-input.service-information.service-instance-id + '/allotted-resources/allotted-resource/' + $tmp.ar.allotted-resource-id`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="allotted-resource.id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.ar.allotted-resource-id`" />
+ </save>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml
index 98d8bc9e..7fffebd5 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml
@@ -33,6 +33,7 @@
</outcome>
</get-resource>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />
<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml
index ffd5ee73..db4a18c4 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml
@@ -128,6 +128,7 @@
<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />
<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
@@ -148,6 +149,7 @@
<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />
<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml
index ef9278b9..58bfc12e 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml
@@ -188,8 +188,13 @@
<switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'name'`">
<outcome value='true'>
<set>
- <parameter name='prop.global.sotn.etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
- <parameter name='prop.global.sotn.bandwidth-profile-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
+ <parameter name='ietf-etht-instance0' value='ietf-eth-tran-service:etht-svc.etht-svc-instances[0].' />
+ <parameter name='ietf-bw-profile0' value='ietf-eth-tran-service:etht-svc.globals.etht-svc-bandwidth-profiles[0].' />
+ <parameter name='ietf-etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-name'`" value='`$ietf-etht-svc-name`' />
+ <parameter name="`$ietf-bw-profile0 + 'bandwidth-profile-name'`" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[0].ingress-egress-bandwidth-profile-name'`" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[1].ingress-egress-bandwidth-profile-name'`" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
</set>
</outcome>
</switch>
@@ -217,28 +222,28 @@
<switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'cir'`">
<outcome value='true'>
<set>
- <parameter name='prop.sotn.cir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
+ <parameter name="`$ietf-bw-profile0 + 'CIR'`" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
</set>
</outcome>
</switch>
<switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'eir'`">
<outcome value='true'>
<set>
- <parameter name='prop.global.sotn.eir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
+ <parameter name="`$ietf-bw-profile0 + 'EIR'`" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
</set>
</outcome>
</switch>
<switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'colorAware'`">
<outcome value='true'>
<set>
- <parameter name='prop.global.sotn.colorAware' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
+ <parameter name="`$ietf-bw-profile0 + 'color-aware'`" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
</set>
</outcome>
</switch>
<switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'couplingFlag'`">
<outcome value='true'>
<set>
- <parameter name='prop.global.sotn.couplingFlag' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
+ <parameter name="`$ietf-bw-profile0 + 'coupling-flag'`" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
</set>
</outcome>
</switch>
@@ -454,32 +459,79 @@
</return>
</outcome>
</execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="patch"/>
- <parameter name="responsePrefix" value="vpn-result"/>
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
- <parameter name="trustStorePassword" value="adminadmin"/>
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
- <parameter name="keyStorePassword" value="adminadmin"/>
- <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing Create vpn rest api" />
- </return>
+ <set>
+ <parameter name="`$ietf-bw-profile0 + 'bandwidth-profile-type'`" value='ietf-eth-tran-types:mef-10-bwp' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-type'`" value='ietf-eth-tran-types:p2p-svc' />
+ <parameter name="`$ietf-etht-instance0 + 'admin-status'`" value='ietf-te-types:tunnel-state-up' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[0].access-port-id'`" value='0' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[0].service-classification-type'`" value='ietf-eth-tran-types:port-classification' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[1].access-port-id'`" value='1' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[1].service-classification-type'`" value='ietf-eth-tran-types:port-classification' />
+ </set>
+ <set>
+ <parameter name="`$ietf-etht-instance0 + 'access-provider-id'`" value='`$oof.vpn.access-provider-id`' />
+ <parameter name="`$ietf-etht-instance0 + 'access-client-id'`" value='`$oof.vpn.access-client-id`' />
+ <parameter name="`$ietf-etht-instance0 + 'access-topology-id'`" value='`$oof.vpn.access-topology-id`' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[0].access-node-id'`" value='`$oof.vpn.access-node-id`' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[0].access-ltp-id'`" value='`$oof.vpn.src-access-ltp-id`' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[1].access-node-id'`" value='`$oof.vpn.access-node-id`' />
+ <parameter name="`$ietf-etht-instance0 + 'etht-svc-access-ports[1].access-ltp-id'`" value='`$oof.vpn.dst-access-ltp-id`' />
+ </set>
+ <switch test="`$prop.sdncRestApi.token_id`">
+ <outcome value=''>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/sdnc/restapi/yang" />
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
</outcome>
- <outcome value='success'>
- <block atomic="true"></block>
+ <outcome value='Other'>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/sdnc/restapi/yang" />
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
</outcome>
- </execute>
+ </switch>
<set>
- <parameter name='tmp.vpnName' value="`$oof.vpn.access-node-id + '-' + $prop.global.sotn.etht-svc-name`" />
+ <parameter name='tmp.vpnName' value="`$oof.vpn.access-node-id + '-' + $ietf-etht-svc-name`" />
</set>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
key='vpn-binding.vpn-id = $tmp.vpnName' >
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml
index 4626b3c3..9a334655 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml
@@ -291,36 +291,60 @@
</set>
</outcome>
<outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing get token rest api" />
- </return>
+ <block></block>
</outcome>
</execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`" />
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="delete"/>
- <parameter name="responsePrefix" value="vpn-result"/>
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
- <parameter name="trustStorePassword" value="adminadmin"/>
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
- <parameter name="keyStorePassword" value="adminadmin"/>
- <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error executing Create vpn rest api" />
- </return>
+ <switch test="`$prop.sdncRestApi.token_id`">
+ <outcome value=''>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="delete"/>
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
</outcome>
- <outcome value='success'>
- <block atomic="true"></block>
+ <outcome value='Other'>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="delete"/>
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create vpn rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
</outcome>
- </execute>
+ </switch>
<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
key='vpn-binding.vpn-id = $tmp.vpn-name' >
<outcome value='failure'>
diff --git a/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json b/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json
index a061f634..67d8b1d4 100644
--- a/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json
+++ b/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json
@@ -5,7 +5,7 @@
"rpc-name": ${lcm-dmaap.rpc-name},
"type": ${lcm-dmaap.type},
"body": {
- "input": {
+ "output": {
"common-header": {
"api-ver": ${lcm-dmaap.api-ver},
"flags": {