summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--installation/src/main/properties/generic-resource-api-dg.properties8
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json110
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-callbackdg-notification.json254
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.json710
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json709
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json3984
-rwxr-xr-xplatform-logic/generic-resource-api/src/main/resources/graph.versions3
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.xml124
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-callbackdg-notification.xml79
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.xml2
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.xml472
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.xml800
-rw-r--r--platform-logic/restapi-templates/src/main/json/p2p-call-ves.json34
-rw-r--r--platform-logic/restapi-templates/src/main/json/p2p-create-pm-data.json22
-rw-r--r--platform-logic/restapi-templates/src/main/json/p2p-ethernet-service.json44
-rw-r--r--platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-domainG.json72
-rw-r--r--platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-dst-domain.json72
-rw-r--r--platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-src-domain.json16
-rw-r--r--platform-logic/restapi-templates/src/main/json/p2p-subscribe-notification.json23
19 files changed, 4065 insertions, 3473 deletions
diff --git a/installation/src/main/properties/generic-resource-api-dg.properties b/installation/src/main/properties/generic-resource-api-dg.properties
index 10b6d670..4ba46954 100644
--- a/installation/src/main/properties/generic-resource-api-dg.properties
+++ b/installation/src/main/properties/generic-resource-api-dg.properties
@@ -44,6 +44,14 @@ restapi.ts-otn-dst-domain-creation.templatefile=ts-otn-tunnel-dst-domain.json
restapi.ts-otn-domainG-creation.templatefile=ts-otn-tunnel-domainG.json
restapi.ts-ethernet-service.templatefile=ts-ethernet-service.json
restapi.ts-coloring-uni-port.templatefile=ts-coloring-uni-port.json
+restapi.p2p-otn-src-domain-creation.templatefile=p2p-otn-tunnel-src-domain.json
+restapi.p2p-otn-dst-domain-creation.templatefile=p2p-otn-tunnel-dst-domain.json
+restapi.p2p-otn-domainG-creation.templatefile=p2p-otn-tunnel-domainG.json
+restapi.p2p-ethernet-service.templatefile=p2p-ethernet-service.json
+restapi.p2p-subscribe-notification.templatefile=p2p-subscribe-notification.json
+restapi.p2p-terminate-notification.templatefile=p2p-terminate-notification.json
+restapi.p2p-create-pm-data.templatefile=p2p-create-pm-data.json
+restapi.p2p-call-ves.templatefile=p2p-call-ves.json
restapi.cll-ethernet-service-loop.templatefile=cll-ethernet-service-loop.json
restapi.cll-ethernet-service-loop-protection.templatefile=cll-ethernet-service-loop-protection.json
restapi.cll-otn-src-domain-creation.templatefile=cll-otn-tunnel-src-domain.json
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json
index 8047f55a..879663fe 100644
--- a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json
@@ -395,7 +395,10 @@
[
"4fa6f4cb.4aa39c",
"f065baf1.f73c4",
- "677bc6cc.c2278"
+ "677bc6cc.c2278",
+ "fce678f7.abc0e",
+ "c53e4466.6aae58",
+ "4b53c1cb.8fea68"
]
]
},
@@ -417,8 +420,8 @@
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 5351.75,
- "y": 703.75,
+ "x": 5538.750244140625,
+ "y": 578.75,
"z": "30d84baa.6f57bc",
"wires": [
[]
@@ -430,8 +433,8 @@
"name": "TODO: FIXME",
"info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
"comments": "",
- "x": 5215.75,
- "y": 662.75,
+ "x": 5402.750244140625,
+ "y": 537.75,
"z": "30d84baa.6f57bc",
"wires": []
},
@@ -442,8 +445,8 @@
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 5278.75,
- "y": 749.75,
+ "x": 5465.750244140625,
+ "y": 624.75,
"z": "30d84baa.6f57bc",
"wires": [
[]
@@ -1684,7 +1687,10 @@
[
"22d7dd70.1841ea",
"3dfc3096.80b288",
- "d67d1410.76b2b8"
+ "d67d1410.76b2b8",
+ "d6603080.c5623",
+ "31942261.57ab16",
+ "99f2f22d.ceb08"
]
]
},
@@ -2355,8 +2361,8 @@
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>\n<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='orchestration-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 5298.5,
- "y": 810.25,
+ "x": 5485.500244140625,
+ "y": 685.25,
"z": "30d84baa.6f57bc",
"wires": [
[]
@@ -2375,5 +2381,89 @@
"wires": [
[]
]
+ },
+ {
+ "id": "fce678f7.abc0e",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create Performance Monitoring Data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-create-pm-data.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/data/ietf-service-pm:performance-monitoring'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 5557.667236328125,
+ "y": 764.3333129882812,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c53e4466.6aae58",
+ "type": "execute",
+ "name": "execute RestconfDiscoveryNode establishSubscription",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishSubscriptionOnly' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-subscribe-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<!--<parameter name=\"deviceIp\" value=\"192.168.198.6\" />-->\n<!--<parameter name=\"devicePort\" value=\"18181\" />-->\n<parameter name=\"sseConnectURL\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"777\" />\n<parameter name=\"mode\" value=\"sync\" />\n<!--<parameter name=\"version\" value=\"sync\" />-->\n<!--<parameter name=\"mode\" value=\"777\" />-->\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5530.6669921875,
+ "y": 823.3331909179688,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4b53c1cb.8fea68",
+ "type": "execute",
+ "name": "execute RestconfDiscoveryNode establishPersistentConnection",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishPersistentSseConnection' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-subscribe-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`\" />\n<parameter name=\"sseConnectURL\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"get\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"777\" />\n<parameter name=\"mode\" value=\"sync\" />\n<!--<parameter name=\"version\" value=\"sync\" />-->\n<!--<parameter name=\"mode\" value=\"777\" />-->\n<parameter name=\"responsePrefix\" value=\"notification-get-result\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5556.667236328125,
+ "y": 877.3331909179688,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d6603080.c5623",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create Performance Monitoring Data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-create-pm-data.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/data/ietf-service-pm:performance-monitoring'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/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",
+ "comments": "",
+ "outputs": 1,
+ "x": 4783.6669921875,
+ "y": 2380.33349609375,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "31942261.57ab16",
+ "type": "execute",
+ "name": "execute RestconfDiscoveryNode establishSubscription",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishSubscriptionOnly' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-subscribe-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<!--<parameter name=\"deviceIp\" value=\"192.168.198.6\" />-->\n<!--<parameter name=\"devicePort\" value=\"18181\" />-->\n<parameter name=\"sseConnectURL\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"777\" />\n<parameter name=\"mode\" value=\"sync\" />\n<!--<parameter name=\"version\" value=\"sync\" />-->\n<!--<parameter name=\"mode\" value=\"777\" />-->\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4756.666748046875,
+ "y": 2439.3333740234375,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "99f2f22d.ceb08",
+ "type": "execute",
+ "name": "execute RestconfDiscoveryNode establishPersistentConnection",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishPersistentSseConnection' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-subscribe-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`\" />\n<parameter name=\"sseConnectURL\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"get\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"777\" />\n<parameter name=\"mode\" value=\"sync\" />\n<!--<parameter name=\"version\" value=\"sync\" />-->\n<!--<parameter name=\"mode\" value=\"777\" />-->\n<parameter name=\"responsePrefix\" value=\"notification-get-result\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4782.6669921875,
+ "y": 2493.3333740234375,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
}
] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-callbackdg-notification.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-callbackdg-notification.json
new file mode 100644
index 00000000..e2d91c00
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-callbackdg-notification.json
@@ -0,0 +1,254 @@
+[
+ {
+ "id": "146661fc.5f1716",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 231.3333282470703,
+ "y": 168.33334350585938,
+ "z": "b7370f57.e5898",
+ "wires": [
+ [
+ "86a2b61b.9e561"
+ ]
+ ]
+ },
+ {
+ "id": "86a2b61b.9e561",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API 888",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "888",
+ "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='888'>",
+ "outputs": 1,
+ "x": 515.6190185546875,
+ "y": 229.5714521408081,
+ "z": "b7370f57.e5898",
+ "wires": [
+ [
+ "75333460.3692e4"
+ ]
+ ]
+ },
+ {
+ "id": "75333460.3692e4",
+ "type": "method",
+ "name": "method p2p-vnf-topology-operation-p2p-callbackdg-notification",
+ "xml": "<method rpc='p2p-vnf-topology-operation-p2p-callbackdg-notification' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 502.7619171142578,
+ "y": 305.3333740234375,
+ "z": "b7370f57.e5898",
+ "wires": [
+ [
+ "a3ba9640.ce2a68"
+ ]
+ ]
+ },
+ {
+ "id": "3fe77da.9239682",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1090.5713653564453,
+ "y": 530.0000152587891,
+ "z": "b7370f57.e5898",
+ "wires": [
+ [
+ "431c42fb.f6e204",
+ "3460fdb3.e8d272",
+ "730e4c82.49807c",
+ "c0f75bcd.e70238",
+ "11c77827.79f3f8",
+ "467dc2f0.3c1dec",
+ "cea32b3b.64c058"
+ ]
+ ]
+ },
+ {
+ "id": "5ebdcbc8.001434",
+ "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' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1082.3333282470703,
+ "y": 306.3333435058594,
+ "z": "b7370f57.e5898",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "431c42fb.f6e204",
+ "type": "set",
+ "name": "set received notification parameters",
+ "xml": "<set>\n<!--<parameter name='rcvdNotif' value='`$notifvalue`' />-->\n<parameter name='rcvd-etht-svc-end-point' value='`$push-change-update.datastore-changes.payload.parameter-value[0].etht-svc-end-point`' />\n<parameter name='rcvd-subscription-id' value='`$push-change-update.subscription-id`' />\n<parameter name='rcvd-bandwidth-value' value='`$push-change-update.datastore-changes.payload.parameter-value[0].value`' />\n<parameter name='rcvd-service-instance-id' value='`$push-change-update.datastore-changes.payload.parameter-value[0].value-description`' />",
+ "comments": "",
+ "x": 1411.3333282470703,
+ "y": 488.3333282470703,
+ "z": "b7370f57.e5898",
+ "wires": []
+ },
+ {
+ "id": "a593f0c.3d3a59",
+ "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=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CallBack DG For SSE CONNECTION is called\"/>\n<!--<parameter name=\"field2\" value=\"`$rcvdNotif`\"/>-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 1046.3333892822266,
+ "y": 250.33334350585938,
+ "z": "b7370f57.e5898",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "467dc2f0.3c1dec",
+ "type": "save",
+ "name": "save:metadata to AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource=\"service-instance:metadata\"\n key=\"service-instance.service-instance-id = $rcvd-service-instance-id\n AND customer.global-customer-id = 'IBNCustomer' \n AND service-subscription.service-type = 'IBN'\" force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"metadata.metadatum[0].metaname\" value=\"`$rcvd-etht-svc-end-point`\" />\n <parameter name=\"metadata.metadatum[0].metaval\" value=\"`$rcvd-bandwidth-value`\" />\n\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1349.3333129882812,
+ "y": 698.3333282470703,
+ "z": "b7370f57.e5898",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c0f75bcd.e70238",
+ "type": "set",
+ "name": "set parameters",
+ "xml": "<set>\n<parameter name='eventIdUuid' value=\"`'BandwidthChanged_' + $eventId-uuid`\" />\n<parameter name='eventNameUuid' value='`$eventName-uuid`' />\n<parameter name='cclId' value='`$rcvd-service-instance-id`' />\n<parameter name='uniId' value='`$rcvd-etht-svc-end-point`' />\n<parameter name='bandwidthValue' value='`$rcvd-bandwidth-value`' />\n",
+ "comments": "",
+ "x": 1340.3333129882812,
+ "y": 1026.3332977294922,
+ "z": "b7370f57.e5898",
+ "wires": []
+ },
+ {
+ "id": "11c77827.79f3f8",
+ "type": "execute",
+ "name": "execute RestApiCallNode call VES",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-call-ves.templatefile`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.dcaeAddrAndPort + '/eventListener/v7'`\" />-->\n<parameter name=\"restapiUrl\" value=\"https://dcae-ves-collector:8443/eventListener/v7\" />\n<parameter name=\"restapiUser\" value=\"sample1\" />\n<parameter name=\"restapiPassword\" value=\"sample1\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"ves-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=\"disableHostVerification\" value=\"true\"/>\n<parameter name=\"ssl\" value=\"false\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1398.3333129882812,
+ "y": 1069.3332977294922,
+ "z": "b7370f57.e5898",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3460fdb3.e8d272",
+ "type": "execute",
+ "name": "execute UUID generator for eventId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"eventId-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1402.3333129882812,
+ "y": 934.3332977294922,
+ "z": "b7370f57.e5898",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "730e4c82.49807c",
+ "type": "execute",
+ "name": "execute UUID generator for eventName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"eventName-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1415.3333129882812,
+ "y": 976.3332977294922,
+ "z": "b7370f57.e5898",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "65d0a166.302088",
+ "type": "comment",
+ "name": "Calling VES and passing notification parameters",
+ "info": "",
+ "comments": "",
+ "x": 1429.3333129882812,
+ "y": 879.3332977294922,
+ "z": "b7370f57.e5898",
+ "wires": []
+ },
+ {
+ "id": "349d4c54.f7933c",
+ "type": "switchNode",
+ "name": "switch change type == upadte",
+ "xml": "<switch test=\"`$push-change-update.datastore-changes.type == 'update' `\">\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1107.3333282470703,
+ "y": 381.3333282470703,
+ "z": "b7370f57.e5898",
+ "wires": [
+ [
+ "fb0217.09e69de8"
+ ]
+ ]
+ },
+ {
+ "id": "fb0217.09e69de8",
+ "type": "outcome",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1322.3333282470703,
+ "y": 379.3333282470703,
+ "z": "b7370f57.e5898",
+ "wires": [
+ [
+ "3fe77da.9239682"
+ ]
+ ]
+ },
+ {
+ "id": "a3ba9640.ce2a68",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 837.3333282470703,
+ "y": 306.3333282470703,
+ "z": "b7370f57.e5898",
+ "wires": [
+ [
+ "a593f0c.3d3a59",
+ "5ebdcbc8.001434",
+ "349d4c54.f7933c"
+ ]
+ ]
+ },
+ {
+ "id": "cea32b3b.64c058",
+ "type": "save",
+ "name": "update:metadata to AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource=\"service-instance\"\n key=\"service-instance.service-instance-id = $rcvd-service-instance-id\n AND customer.global-customer-id = 'IBNCustomer' \n AND service-subscription.service-type = 'IBN'\n AND metadatum.metaname = $rcvd-etht-svc-end-point\" force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"metaname\" value=\"`$rcvd-etht-svc-end-point`\" />\n <parameter name=\"metaval\" value=\"`$rcvd-bandwidth-value`\" />\n\n \n<!--AND metadatum.metaname = $rcvd-etht-svc-end-point-->\n\n<!--<parameter name=\"metadata.metadatum[0].metaname\" value=\"`$rcvd-etht-svc-end-point`\" />-->\n<!-- <parameter name=\"metadata.metadatum[0].metaval\" value=\"`$rcvd-bandwidth-value`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 1358.3333129882812,
+ "y": 753.3333282470703,
+ "z": "b7370f57.e5898",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.json
index c9a977f4..b8c6b8c0 100644
--- a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.json
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.json
@@ -1,20 +1,20 @@
[
{
- "id": "7987293a.445a38",
+ "id": "d98dcf0e.93938",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 167.75,
- "y": 154,
- "z": "316d1be5.aa32c4",
+ "x": 210.3333282470703,
+ "y": 183.33334350585938,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "45444450.d7f6dc"
+ "319ab0df.6ee57"
]
]
},
{
- "id": "45444450.d7f6dc",
+ "id": "319ab0df.6ee57",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1039 +22,1039 @@
"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": 299.0356903076172,
- "y": 203.23810863494873,
- "z": "316d1be5.aa32c4",
+ "x": 341.6190185546875,
+ "y": 232.5714521408081,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "ae3ab411.371d58"
+ "dbf82646.30e808"
]
]
},
{
- "id": "ae3ab411.371d58",
+ "id": "dbf82646.30e808",
"type": "method",
- "name": "method tsli-vnf-topology-operation-trans-slice-deactivate",
- "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>\n",
+ "name": "method p2p-vnf-topology-operation-p2p-deactivate",
+ "xml": "<method rpc='p2p-vnf-topology-operation-p2p-deactivate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 302.1786193847656,
- "y": 288.00003242492676,
- "z": "316d1be5.aa32c4",
+ "x": 344.76194763183594,
+ "y": 317.33337593078613,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "d12b8d84.55791"
+ "3957bde9.7965f2"
]
]
},
{
- "id": "d12b8d84.55791",
+ "id": "3957bde9.7965f2",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 451.988037109375,
- "y": 417.6666564941406,
- "z": "316d1be5.aa32c4",
+ "x": 494.5713653564453,
+ "y": 447,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "1c123ec2.4b5549",
- "134fd372.6771b5",
- "ab4d5dd1.8ac7f"
+ "78baadd0.d3fb44",
+ "2d184474.a022a4",
+ "94f651c0.50e168"
]
]
},
{
- "id": "1c123ec2.4b5549",
+ "id": "78baadd0.d3fb44",
"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": 726.3216552734375,
- "y": 684.59716796875,
- "z": "316d1be5.aa32c4",
+ "x": 768.9049835205078,
+ "y": 713.9305114746094,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "901e34f6.602458",
+ "id": "2b013ae4.1229c6",
"type": "comment",
"name": "new for TransportSlicing",
"info": "",
"comments": "",
- "x": 757.75,
- "y": 359,
- "z": "316d1be5.aa32c4",
+ "x": 800.3333282470703,
+ "y": 388.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "134fd372.6771b5",
+ "id": "2d184474.a022a4",
"type": "save",
"name": "get service-instance from aai",
"xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--vnf-topology-operation-input.service-information.service-instance-id-->",
"comments": "",
"outputs": 1,
- "x": 777.75,
- "y": 455,
- "z": "316d1be5.aa32c4",
+ "x": 820.3333282470703,
+ "y": 484.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "2d1d6b25.d0297c",
- "507ea16f.c4686",
- "afd8f070.eec4e8"
+ "f1b2a987.371a3",
+ "e9f71e05.b9b1f",
+ "bd4a22a3.cd4418"
]
]
},
{
- "id": "2d1d6b25.d0297c",
+ "id": "f1b2a987.371a3",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 996.75,
- "y": 393,
- "z": "316d1be5.aa32c4",
+ "x": 1039.3333282470703,
+ "y": 422.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "97138a32.2f3f5"
+ "c581d6e1.222a78"
]
]
},
{
- "id": "507ea16f.c4686",
+ "id": "e9f71e05.b9b1f",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1006.240966796875,
- "y": 435.57403564453125,
- "z": "316d1be5.aa32c4",
+ "x": 1048.8242950439453,
+ "y": 464.9073791503906,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "888faa2.34cabd8"
+ "d0a2ce90.fc9c7"
]
]
},
{
- "id": "afd8f070.eec4e8",
+ "id": "bd4a22a3.cd4418",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 994.75,
- "y": 482,
- "z": "316d1be5.aa32c4",
+ "x": 1037.3333282470703,
+ "y": 511.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "50c527ec.505a7"
+ "dfb27a3e.e61018"
]
]
},
{
- "id": "888faa2.34cabd8",
+ "id": "d0a2ce90.fc9c7",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 1159.8123779296875,
- "y": 438.8597717285156,
- "z": "316d1be5.aa32c4",
+ "x": 1202.3957061767578,
+ "y": 468.193115234375,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "50c527ec.505a7",
+ "id": "dfb27a3e.e61018",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1163.75,
- "y": 483,
- "z": "316d1be5.aa32c4",
+ "x": 1206.3333282470703,
+ "y": 512.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "97138a32.2f3f5",
+ "id": "c581d6e1.222a78",
"type": "for",
"name": "for each relationship",
"xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1193.75,
- "y": 389,
- "z": "316d1be5.aa32c4",
+ "x": 1236.3333282470703,
+ "y": 418.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "73002c56.e20dcc"
+ "c916b66c.2d0ed"
]
]
},
{
- "id": "73002c56.e20dcc",
+ "id": "c916b66c.2d0ed",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1417.08349609375,
- "y": 388.99993896484375,
- "z": "316d1be5.aa32c4",
+ "x": 1459.6668243408203,
+ "y": 418.3332824707031,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "f5ce1b9b.6f43c"
+ "92806cc2.c66de8"
]
]
},
{
- "id": "f5ce1b9b.6f43c",
+ "id": "92806cc2.c66de8",
"type": "outcome",
"name": "connectivity",
"xml": "<outcome value='connectivity'>\n",
"comments": "",
"outputs": 1,
- "x": 1617.7501335144043,
- "y": 390.00002098083496,
- "z": "316d1be5.aa32c4",
+ "x": 1660.3334617614746,
+ "y": 419.33336448669434,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "5b31678.585da18"
+ "a2f1e4fa.ab8b98"
]
]
},
{
- "id": "ab4d5dd1.8ac7f",
+ "id": "94f651c0.50e168",
"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' />",
"comments": "",
"outputs": 1,
- "x": 743.75,
- "y": 403,
- "z": "316d1be5.aa32c4",
+ "x": 786.3333282470703,
+ "y": 432.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[]
]
},
{
- "id": "5b31678.585da18",
+ "id": "a2f1e4fa.ab8b98",
"type": "save",
"name": "get connectivity from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",
"comments": "",
"outputs": 1,
- "x": 1855.75,
- "y": 392,
- "z": "316d1be5.aa32c4",
+ "x": 1898.3333282470703,
+ "y": 421.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "7e6bd44c.4a0d84",
- "3c965ca8.a0aa94",
- "a01cc737.c0329"
+ "ed2a7178.6b056",
+ "cd09831d.de74c8",
+ "a3036edf.1e05d8"
]
]
},
{
- "id": "7e6bd44c.4a0d84",
+ "id": "ed2a7178.6b056",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2063.75,
- "y": 356,
- "z": "316d1be5.aa32c4",
+ "x": 2106.3333282470703,
+ "y": 385.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "acdeaad5.a6cc1"
+ "901ec956.b36b88"
]
]
},
{
- "id": "3c965ca8.a0aa94",
+ "id": "cd09831d.de74c8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2064.240966796875,
- "y": 401.57403564453125,
- "z": "316d1be5.aa32c4",
+ "x": 2106.8242950439453,
+ "y": 430.9073791503906,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "905f7b79.76f648"
+ "45fbb915.2d083"
]
]
},
{
- "id": "a01cc737.c0329",
+ "id": "a3036edf.1e05d8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2061.75,
- "y": 445,
- "z": "316d1be5.aa32c4",
+ "x": 2104.3333282470703,
+ "y": 474.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "76441f4c.a06df"
+ "2f98e497.095aa4"
]
]
},
{
- "id": "905f7b79.76f648",
+ "id": "45fbb915.2d083",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 2226.8123779296875,
- "y": 401.8597717285156,
- "z": "316d1be5.aa32c4",
+ "x": 2269.395706176758,
+ "y": 431.193115234375,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "76441f4c.a06df",
+ "id": "2f98e497.095aa4",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2230.75,
- "y": 446,
- "z": "316d1be5.aa32c4",
+ "x": 2273.3333282470703,
+ "y": 475.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "40981562.d0dc0c",
+ "id": "8158b5e1.0a585",
"type": "save",
"name": "get vpn-binding from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",
"comments": "",
"outputs": 1,
- "x": 2536.75,
- "y": 445,
- "z": "316d1be5.aa32c4",
+ "x": 2579.3333282470703,
+ "y": 474.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "b886e1a9.d43df",
- "4c757dd3.2c3a1c",
- "490d4ff6.7bfb2"
+ "87ee8ab9.1e01d",
+ "3621ff2f.804af",
+ "4896a29e.06bc3c"
]
]
},
{
- "id": "29ed7f6b.7ef5c",
+ "id": "fa999a4d.1ab52",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2920.75,
- "y": 445,
- "z": "316d1be5.aa32c4",
+ "x": 2963.3333282470703,
+ "y": 474.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "dbce8d50.3a5c2",
- "697b34e.12e544c",
- "595bb85e.e54e8",
- "e28e0e7a.57d778"
+ "5ce16a5f.d1a7a4",
+ "ad2097c8.6a19b",
+ "15c593ac.788fc4",
+ "80663318.de3fc8"
]
]
},
{
- "id": "b886e1a9.d43df",
+ "id": "87ee8ab9.1e01d",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2747.75,
- "y": 447,
- "z": "316d1be5.aa32c4",
+ "x": 2790.3333282470703,
+ "y": 476.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "29ed7f6b.7ef5c"
+ "fa999a4d.1ab52"
]
]
},
{
- "id": "4c757dd3.2c3a1c",
+ "id": "3621ff2f.804af",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2748.240966796875,
- "y": 492.57403564453125,
- "z": "316d1be5.aa32c4",
+ "x": 2790.8242950439453,
+ "y": 521.9073791503906,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "cd02fceb.e80ee8"
+ "f4c4347e.16c668"
]
]
},
{
- "id": "490d4ff6.7bfb2",
+ "id": "4896a29e.06bc3c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2745.75,
- "y": 536,
- "z": "316d1be5.aa32c4",
+ "x": 2788.3333282470703,
+ "y": 565.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "10b6485e.f13c18"
+ "eb7db10f.2b3ab8"
]
]
},
{
- "id": "10b6485e.f13c18",
+ "id": "eb7db10f.2b3ab8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2912.75,
- "y": 535,
- "z": "316d1be5.aa32c4",
+ "x": 2955.3333282470703,
+ "y": 564.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "cd02fceb.e80ee8",
+ "id": "f4c4347e.16c668",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 2910.8123779296875,
- "y": 492.8597717285156,
- "z": "316d1be5.aa32c4",
+ "x": 2953.395706176758,
+ "y": 522.193115234375,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "acdeaad5.a6cc1",
+ "id": "901ec956.b36b88",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
"comments": "",
"outputs": 1,
- "x": 2264.75,
- "y": 351,
- "z": "316d1be5.aa32c4",
+ "x": 2307.3333282470703,
+ "y": 380.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "590f481d.6deaf8"
+ "dada8f4e.0ceef"
]
]
},
{
- "id": "590f481d.6deaf8",
+ "id": "dada8f4e.0ceef",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 2469.75,
- "y": 351,
- "z": "316d1be5.aa32c4",
+ "x": 2512.3333282470703,
+ "y": 380.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "3e88a914.31d29e"
+ "75d22c63.5e7cac"
]
]
},
{
- "id": "3e88a914.31d29e",
+ "id": "75d22c63.5e7cac",
"type": "outcome",
"name": "vpn-binding",
"xml": "<outcome value='vpn-binding'>\n",
"comments": "",
"outputs": 1,
- "x": 2635.75,
- "y": 351,
- "z": "316d1be5.aa32c4",
+ "x": 2678.3333282470703,
+ "y": 380.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "d5611bfd.8b5ba8"
+ "42f7bc9.ecd26c4"
]
]
},
{
- "id": "d5611bfd.8b5ba8",
+ "id": "42f7bc9.ecd26c4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2798.75,
- "y": 351,
- "z": "316d1be5.aa32c4",
+ "x": 2841.3333282470703,
+ "y": 380.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "40981562.d0dc0c"
+ "8158b5e1.0a585"
]
]
},
{
- "id": "dbce8d50.3a5c2",
+ "id": "5ce16a5f.d1a7a4",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-binding.src-access-node-id`\" />\n",
"comments": "",
- "x": 3135.75,
- "y": 155,
- "z": "316d1be5.aa32c4",
+ "x": 3178.3333282470703,
+ "y": 184.33334350585938,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "697b34e.12e544c",
+ "id": "ad2097c8.6a19b",
"type": "get-resource",
"name": "get-resource src pnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 3161.75,
- "y": 272,
- "z": "316d1be5.aa32c4",
+ "x": 3204.3333282470703,
+ "y": 301.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "d00072ef.37f678",
- "e25ba00b.85ab78",
- "af08c977.c21ff8"
+ "43b23d4f.547d54",
+ "30274991.38252e",
+ "50a3db86.4834dc"
]
]
},
{
- "id": "d00072ef.37f678",
+ "id": "43b23d4f.547d54",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3357.2501220703125,
- "y": 224,
- "z": "316d1be5.aa32c4",
+ "x": 3399.833450317383,
+ "y": 253.33334350585938,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "5add0fc2.e455a8"
+ "a478ad49.449108"
]
]
},
{
- "id": "e25ba00b.85ab78",
+ "id": "30274991.38252e",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3349.2501220703125,
- "y": 279,
- "z": "316d1be5.aa32c4",
+ "x": 3391.833450317383,
+ "y": 308.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "e5b74ae2.bf4d7"
+ "d9ec800f.57eab"
]
]
},
{
- "id": "5add0fc2.e455a8",
+ "id": "a478ad49.449108",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 3501.6324462890625,
- "y": 223.65567016601562,
- "z": "316d1be5.aa32c4",
+ "x": 3544.215774536133,
+ "y": 252.989013671875,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "7c91c82b.801f4"
+ "5da14bf8.d82d04"
]
]
},
{
- "id": "7c91c82b.801f4",
+ "id": "5da14bf8.d82d04",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 3685.75,
- "y": 222,
- "z": "316d1be5.aa32c4",
+ "x": 3728.3333282470703,
+ "y": 251.33334350585938,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "40f3da44.52c9bc"
+ "d20fbb15.205b28"
]
]
},
{
- "id": "40f3da44.52c9bc",
+ "id": "d20fbb15.205b28",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 3880.75,
- "y": 222,
- "z": "316d1be5.aa32c4",
+ "x": 3923.3333282470703,
+ "y": 251.33334350585938,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "ec33b794.fa679"
+ "997f14d.5069ee8"
]
]
},
{
- "id": "af08c977.c21ff8",
+ "id": "50a3db86.4834dc",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3354.2501220703125,
- "y": 336,
- "z": "316d1be5.aa32c4",
+ "x": 3396.833450317383,
+ "y": 365.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "d0c572d6.450d98"
+ "f0e3dab8.1633e8"
]
]
},
{
- "id": "d0c572d6.450d98",
+ "id": "f0e3dab8.1633e8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 3506.2501220703125,
- "y": 337,
- "z": "316d1be5.aa32c4",
+ "x": 3548.833450317383,
+ "y": 366.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "e5b74ae2.bf4d7",
+ "id": "d9ec800f.57eab",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 3517.2501220703125,
- "y": 280,
- "z": "316d1be5.aa32c4",
+ "x": 3559.833450317383,
+ "y": 309.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "5f838eee.116ce",
+ "id": "56a5b801.2c46b",
"type": "execute",
"name": "get 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.domain.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 4468.75,
- "y": 239,
- "z": "316d1be5.aa32c4",
+ "x": 4511.33332824707,
+ "y": 268.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "50b81d5a.269cfc",
- "baecba51.c84f4",
- "3764c57a.2235a2"
+ "65f63d9b.60c494",
+ "476b44db.0c29ec",
+ "91ab2d3d.2af768"
]
]
},
{
- "id": "c9bd9c8c.3dcca",
+ "id": "c300b0fa.ab3bc",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4262.75,
- "y": 226,
- "z": "316d1be5.aa32c4",
+ "x": 4305.33332824707,
+ "y": 255.33334350585938,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "df5cc029.1b2a68",
- "5f838eee.116ce",
- "7167c2a2.e60ca4"
+ "6b92b5f6.a883cc",
+ "56a5b801.2c46b",
+ "616cedeb.464a7c"
]
]
},
{
- "id": "df5cc029.1b2a68",
+ "id": "6b92b5f6.a883cc",
"type": "set",
"name": "set esr-thirdparty-sdnc domain id",
"xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 4498.75,
- "y": 187,
- "z": "316d1be5.aa32c4",
+ "x": 4541.33332824707,
+ "y": 216.33334350585938,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "50b81d5a.269cfc",
+ "id": "65f63d9b.60c494",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4678.75,
- "y": 230,
- "z": "316d1be5.aa32c4",
+ "x": 4721.33332824707,
+ "y": 259.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "cd3637d1.c154d8"
+ "69a4e55a.c658e4"
]
]
},
{
- "id": "baecba51.c84f4",
+ "id": "476b44db.0c29ec",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 4670.75,
- "y": 285,
- "z": "316d1be5.aa32c4",
+ "x": 4713.33332824707,
+ "y": 314.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "47ed2855.6b69a"
+ "cf55f25.74f1b9"
]
]
},
{
- "id": "3764c57a.2235a2",
+ "id": "91ab2d3d.2af768",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 4675.75,
- "y": 342,
- "z": "316d1be5.aa32c4",
+ "x": 4718.33332824707,
+ "y": 371.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "c2dbfa93.1077a"
+ "bb217f8d.57e2c"
]
]
},
{
- "id": "c2dbfa93.1077a",
+ "id": "bb217f8d.57e2c",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 4827.75,
- "y": 343,
- "z": "316d1be5.aa32c4",
+ "x": 4870.33332824707,
+ "y": 372.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "47ed2855.6b69a",
+ "id": "cf55f25.74f1b9",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 4838.75,
- "y": 288,
- "z": "316d1be5.aa32c4",
+ "x": 4881.33332824707,
+ "y": 317.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "cd3637d1.c154d8",
+ "id": "69a4e55a.c658e4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4823.13232421875,
- "y": 227.65567016601562,
- "z": "316d1be5.aa32c4",
+ "x": 4865.71565246582,
+ "y": 256.989013671875,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "a315466.e353338"
+ "7460951.b1d226c"
]
]
},
{
- "id": "ec33b794.fa679",
+ "id": "997f14d.5069ee8",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 4083.75,
- "y": 226,
- "z": "316d1be5.aa32c4",
+ "x": 4126.33332824707,
+ "y": 255.33334350585938,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "c9bd9c8c.3dcca"
+ "c300b0fa.ab3bc"
]
]
},
{
- "id": "a315466.e353338",
+ "id": "7460951.b1d226c",
"type": "set",
"name": "set controller domain data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
"comments": "",
- "x": 5037.75,
- "y": 224,
- "z": "316d1be5.aa32c4",
+ "x": 5080.33332824707,
+ "y": 253.33334350585938,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "7167c2a2.e60ca4",
+ "id": "616cedeb.464a7c",
"type": "break",
"name": "break",
"xml": "<break>\n",
"comments": "",
- "x": 4418.75,
- "y": 303,
- "z": "316d1be5.aa32c4",
+ "x": 4461.33332824707,
+ "y": 332.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "921a6da5.facfa8",
+ "id": "342c942c.6c5404",
"type": "execute",
"name": "execute RestApiCallNode Delete ethernet Service without token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.aai.connectivity.etht-svc-name`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/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",
"comments": "",
"outputs": 1,
- "x": 3796.75,
- "y": 652,
- "z": "316d1be5.aa32c4",
+ "x": 3839.3333282470703,
+ "y": 681.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "f23ad1ae.7a421",
- "2e318f27.a95f18"
+ "d7185f4c.815fa8",
+ "bd8b4a.3a1a5cb8"
]
]
},
{
- "id": "f23ad1ae.7a421",
+ "id": "d7185f4c.815fa8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4143.25,
- "y": 645,
- "z": "316d1be5.aa32c4",
+ "x": 4185.83332824707,
+ "y": 674.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "e679ed8f.b4a3b"
+ "d8fc63c9.a17498"
]
]
},
{
- "id": "2e318f27.a95f18",
+ "id": "bd8b4a.3a1a5cb8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4147.25,
- "y": 685,
- "z": "316d1be5.aa32c4",
+ "x": 4189.83332824707,
+ "y": 714.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "85d951e1.733df8"
+ "814975d7.622368"
]
]
},
{
- "id": "85d951e1.733df8",
+ "id": "814975d7.622368",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4304.75,
- "y": 685,
- "z": "316d1be5.aa32c4",
+ "x": 4347.33332824707,
+ "y": 714.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "cd6438e5.f17948",
- "9dae1cfd.fe5bb8",
- "c8b6c5b0.42c5d"
+ "4e0ba888.e9035",
+ "178cdc7a.cb1604",
+ "e80f9137.31e308"
]
]
},
{
- "id": "e679ed8f.b4a3b",
+ "id": "d8fc63c9.a17498",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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 delete ethernet service rest api\" />\n",
"comments": "",
- "x": 4301.25,
- "y": 645,
- "z": "316d1be5.aa32c4",
+ "x": 4343.83332824707,
+ "y": 674.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "cd6438e5.f17948",
+ "id": "4e0ba888.e9035",
"type": "save",
"name": "update vpn-binding resource (aka. OTN domainA) in AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n\n<parameter name='operational-status' value='Deactivated' />\n",
"comments": "",
"outputs": 1,
- "x": 4633.25,
- "y": 685,
- "z": "316d1be5.aa32c4",
+ "x": 4675.83332824707,
+ "y": 714.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[]
]
},
{
- "id": "9dae1cfd.fe5bb8",
+ "id": "178cdc7a.cb1604",
"type": "save",
"name": "update connectivity resource in AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Deactivated' />\n",
"comments": "",
"outputs": 1,
- "x": 4560.25,
- "y": 731,
- "z": "316d1be5.aa32c4",
+ "x": 4602.83332824707,
+ "y": 760.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[]
]
},
{
- "id": "595bb85e.e54e8",
+ "id": "15c593ac.788fc4",
"type": "execute",
"name": "execute RestApiCallNode Delete OTN tunnel with token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />-->\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-te:te/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"otn-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": 3264.75,
- "y": 539,
- "z": "316d1be5.aa32c4",
+ "x": 3307.3333282470703,
+ "y": 568.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "3b1365ed.b0919a",
- "2f6c4f0a.446848"
+ "41a25bdd.13ab7c",
+ "cea79f93.dca02"
]
]
},
{
- "id": "3b1365ed.b0919a",
+ "id": "41a25bdd.13ab7c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3597.25,
- "y": 509,
- "z": "316d1be5.aa32c4",
+ "x": 3639.8333282470703,
+ "y": 538.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "fc7e9165.b22f48"
+ "80750e32.c906b8"
]
]
},
{
- "id": "2f6c4f0a.446848",
+ "id": "cea79f93.dca02",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3602.25,
- "y": 574,
- "z": "316d1be5.aa32c4",
+ "x": 3644.8333282470703,
+ "y": 603.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "12d60626.768032"
+ "e8f70307.d77428"
]
]
},
{
- "id": "fc7e9165.b22f48",
+ "id": "80750e32.c906b8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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 delete OTN tunnel rest api\" />\n",
"comments": "",
- "x": 3773.25,
- "y": 509,
- "z": "316d1be5.aa32c4",
+ "x": 3815.8333282470703,
+ "y": 538.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": []
},
{
- "id": "12d60626.768032",
+ "id": "e8f70307.d77428",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3768.75,
- "y": 574,
- "z": "316d1be5.aa32c4",
+ "x": 3811.3333282470703,
+ "y": 603.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[]
]
},
{
- "id": "e28e0e7a.57d778",
+ "id": "80663318.de3fc8",
"type": "switchNode",
"name": "switch connectivity has ethernet service",
"xml": "<switch test='`$tmp.aai.connectivity.etht-svc-name`'>\n",
"comments": "",
"outputs": 1,
- "x": 3202.75,
- "y": 674,
- "z": "316d1be5.aa32c4",
+ "x": 3245.3333282470703,
+ "y": 703.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "58217adc.044174",
- "7dc25247.ea55a4"
+ "e01c13fc.9a3438",
+ "16296fc9.7a4618"
]
]
},
{
- "id": "7dc25247.ea55a4",
+ "id": "16296fc9.7a4618",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3455.75,
- "y": 652,
- "z": "316d1be5.aa32c4",
+ "x": 3498.3333282470703,
+ "y": 681.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[
- "921a6da5.facfa8"
+ "342c942c.6c5404"
]
]
},
{
- "id": "58217adc.044174",
+ "id": "e01c13fc.9a3438",
"type": "outcome",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 3455.75,
- "y": 708,
- "z": "316d1be5.aa32c4",
+ "x": 3498.3333282470703,
+ "y": 737.3333435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[]
]
},
{
- "id": "c8b6c5b0.42c5d",
+ "id": "e80f9137.31e308",
"type": "save",
"name": "update service-instance resource in AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>\n<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='orchestration-status' value='Deactivated' />\n",
"comments": "",
"outputs": 1,
- "x": 4578,
- "y": 784.75,
- "z": "316d1be5.aa32c4",
+ "x": 4620.58332824707,
+ "y": 814.0833435058594,
+ "z": "89e81e2a.0dc22",
"wires": [
[]
]
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json
index 1e28b050..10db6b40 100644
--- a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json
@@ -1,20 +1,20 @@
[
{
- "id": "1ffbc02a.2de6d",
+ "id": "9559f36c.7d99",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 133,
- "y": 76,
- "z": "e2fe7a53.da009",
+ "x": 210.3333282470703,
+ "y": 176.33334350585938,
+ "z": "9455099.1e285f8",
"wires": [
[
- "74e0b2b2.75108c"
+ "589aff20.58fdd8"
]
]
},
{
- "id": "74e0b2b2.75108c",
+ "id": "589aff20.58fdd8",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1035 +22,1034 @@
"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": 264.2856903076172,
- "y": 125.23810863494873,
- "z": "e2fe7a53.da009",
+ "x": 341.6190185546875,
+ "y": 225.5714521408081,
+ "z": "9455099.1e285f8",
"wires": [
[
- "f846ccbd.4406d8"
+ "7be85682.4a664"
]
]
},
{
- "id": "f846ccbd.4406d8",
+ "id": "7be85682.4a664",
"type": "method",
- "name": "method tsli-vnf-topology-operation-trans-slice-delete",
- "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync'>\n",
+ "name": "method p2p-vnf-topology-operation-p2p-delete",
+ "xml": "<method rpc='p2p-vnf-topology-operation-p2p-delete' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 267.4286193847656,
- "y": 210.00003242492676,
- "z": "e2fe7a53.da009",
+ "x": 344.76194763183594,
+ "y": 310.33337593078613,
+ "z": "9455099.1e285f8",
"wires": [
[
- "dc51143b.674018"
+ "75b89bd3.b7035c"
]
]
},
{
- "id": "dc51143b.674018",
+ "id": "75b89bd3.b7035c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 417.238037109375,
- "y": 339.6666564941406,
- "z": "e2fe7a53.da009",
+ "x": 494.5713653564453,
+ "y": 440,
+ "z": "9455099.1e285f8",
"wires": [
[
- "45b2aaee.4a9d2c",
- "3e78a125.3512fe",
- "45ccee1d.26f07"
+ "b92c8346.1030c",
+ "d4055fd6.d46db",
+ "6a8d6043.e67918"
]
]
},
{
- "id": "45b2aaee.4a9d2c",
+ "id": "b92c8346.1030c",
"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": 713.5716552734375,
- "y": 616.59716796875,
- "z": "e2fe7a53.da009",
+ "x": 790.9049835205078,
+ "y": 716.9305114746094,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "9ea4d60.c51a0a8",
+ "id": "ee6a8ea4.1c7198",
"type": "comment",
"name": "new for TransportSlicing",
"info": "",
"comments": "",
- "x": 745,
- "y": 291,
- "z": "e2fe7a53.da009",
+ "x": 822.3333282470703,
+ "y": 391.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "3e78a125.3512fe",
+ "id": "d4055fd6.d46db",
"type": "save",
"name": "get service-instance from aai",
"xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n \n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--vnf-topology-operation-input.service-information.service-instance-id-->",
"comments": "",
"outputs": 1,
- "x": 765,
- "y": 387,
- "z": "e2fe7a53.da009",
+ "x": 842.3333282470703,
+ "y": 487.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "86ee6067.0c17a8",
- "bf4bb2c3.815168",
- "ac6196ae.1ef19"
+ "381d7bc0.f1068c",
+ "4a8a0c1b.ab698c",
+ "31b9c3f9.83b5cc"
]
]
},
{
- "id": "86ee6067.0c17a8",
+ "id": "381d7bc0.f1068c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 984,
- "y": 325,
- "z": "e2fe7a53.da009",
+ "x": 1061.3333282470703,
+ "y": 425.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "eb95b4de.4ca18"
+ "78172321.e32f04"
]
]
},
{
- "id": "bf4bb2c3.815168",
+ "id": "4a8a0c1b.ab698c",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 993.490966796875,
- "y": 367.57403564453125,
- "z": "e2fe7a53.da009",
+ "x": 1070.8242950439453,
+ "y": 467.9073791503906,
+ "z": "9455099.1e285f8",
"wires": [
[
- "4da0ff5c.9fdf8"
+ "fb661f4a.a35e88"
]
]
},
{
- "id": "ac6196ae.1ef19",
+ "id": "31b9c3f9.83b5cc",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 982,
- "y": 414,
- "z": "e2fe7a53.da009",
+ "x": 1059.3333282470703,
+ "y": 514.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "49170b5b.8b327c"
+ "c596dceb.f440c8"
]
]
},
{
- "id": "4da0ff5c.9fdf8",
+ "id": "fb661f4a.a35e88",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 1147.0623779296875,
- "y": 370.8597717285156,
- "z": "e2fe7a53.da009",
+ "x": 1224.3957061767578,
+ "y": 471.193115234375,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "49170b5b.8b327c",
+ "id": "c596dceb.f440c8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1151,
- "y": 415,
- "z": "e2fe7a53.da009",
+ "x": 1228.3333282470703,
+ "y": 515.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "eb95b4de.4ca18",
+ "id": "78172321.e32f04",
"type": "for",
"name": "for each relationship",
"xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1181,
- "y": 321,
- "z": "e2fe7a53.da009",
+ "x": 1258.3333282470703,
+ "y": 421.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "4f2c512c.91fb8"
+ "2b97696b.7fb036"
]
]
},
{
- "id": "4f2c512c.91fb8",
+ "id": "2b97696b.7fb036",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1404.33349609375,
- "y": 320.99993896484375,
- "z": "e2fe7a53.da009",
+ "x": 1481.6668243408203,
+ "y": 421.3332824707031,
+ "z": "9455099.1e285f8",
"wires": [
[
- "fa463b5.38a29c8"
+ "42c2b0bd.f47dd"
]
]
},
{
- "id": "fa463b5.38a29c8",
+ "id": "42c2b0bd.f47dd",
"type": "outcome",
"name": "connectivity",
"xml": "<outcome value='connectivity'>\n",
"comments": "",
"outputs": 1,
- "x": 1605.0001335144043,
- "y": 322.00002098083496,
- "z": "e2fe7a53.da009",
+ "x": 1682.3334617614746,
+ "y": 422.33336448669434,
+ "z": "9455099.1e285f8",
"wires": [
[
- "e51d2b5.f353758"
+ "2d4b22d.3ad5fde"
]
]
},
{
- "id": "45ccee1d.26f07",
+ "id": "6a8d6043.e67918",
"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' />",
"comments": "",
"outputs": 1,
- "x": 731,
- "y": 335,
- "z": "e2fe7a53.da009",
+ "x": 808.3333282470703,
+ "y": 435.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[]
]
},
{
- "id": "e51d2b5.f353758",
+ "id": "2d4b22d.3ad5fde",
"type": "save",
"name": "get connectivity from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",
"comments": "",
"outputs": 1,
- "x": 1843,
- "y": 324,
- "z": "e2fe7a53.da009",
+ "x": 1920.3333282470703,
+ "y": 424.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "bd96538d.fc9d98",
- "d296a5a5.03f2d8",
- "59d0b561.049ff4"
+ "767f3312.da0fc4",
+ "6e6e816a.046da8",
+ "7240a2d3.cdb52c"
]
]
},
{
- "id": "bd96538d.fc9d98",
+ "id": "767f3312.da0fc4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2051,
- "y": 288,
- "z": "e2fe7a53.da009",
+ "x": 2128.3333282470703,
+ "y": 388.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "a935f75b.7b8ae8"
+ "9782a1c0.c96908"
]
]
},
{
- "id": "d296a5a5.03f2d8",
+ "id": "6e6e816a.046da8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2051.490966796875,
- "y": 333.57403564453125,
- "z": "e2fe7a53.da009",
+ "x": 2128.8242950439453,
+ "y": 433.9073791503906,
+ "z": "9455099.1e285f8",
"wires": [
[
- "b4d9ea13.dc5c6"
+ "2e176049.379ac8"
]
]
},
{
- "id": "59d0b561.049ff4",
+ "id": "7240a2d3.cdb52c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2049,
- "y": 377,
- "z": "e2fe7a53.da009",
+ "x": 2126.3333282470703,
+ "y": 477.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "cc59ead5.ab58f"
+ "33c68883.4e4dd8"
]
]
},
{
- "id": "b4d9ea13.dc5c6",
+ "id": "2e176049.379ac8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 2214.0623779296875,
- "y": 333.8597717285156,
- "z": "e2fe7a53.da009",
+ "x": 2291.395706176758,
+ "y": 434.193115234375,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "cc59ead5.ab58f",
+ "id": "33c68883.4e4dd8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2218,
- "y": 378,
- "z": "e2fe7a53.da009",
+ "x": 2295.3333282470703,
+ "y": 478.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "2055e9c.9575d16",
+ "id": "2a05bc5b.b08dc4",
"type": "save",
"name": "get vpn-binding from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",
"comments": "",
"outputs": 1,
- "x": 2524,
- "y": 377,
- "z": "e2fe7a53.da009",
+ "x": 2601.3333282470703,
+ "y": 477.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "1719bc42.5de0cc",
- "b2907373.b3b1a",
- "fb17b477.f9109"
+ "efe59340.81f6b",
+ "9ec2589f.db3418",
+ "4f5683a7.464474"
]
]
},
{
- "id": "c87f5113.e0af38",
+ "id": "37afe5ee.53cc62",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2908,
- "y": 377,
- "z": "e2fe7a53.da009",
+ "x": 2985.3333282470703,
+ "y": 477.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "1985ee34.d96bba",
- "52698c53.01b1dc",
- "6e17a44c.f8e15c",
- "9562cdef.811fc8",
- "51f18b3b.809efc",
- "9405a159.40925",
- "e776447c.da84c8"
+ "e3b2dd80.eef1a8",
+ "a9ed431c.c281c",
+ "d4052d30.ad8718",
+ "fddd2ea9.355138",
+ "9f2982f0.62eef8",
+ "3eed71af.4521b6"
]
]
},
{
- "id": "1719bc42.5de0cc",
+ "id": "efe59340.81f6b",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2735,
- "y": 379,
- "z": "e2fe7a53.da009",
+ "x": 2812.3333282470703,
+ "y": 479.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "c87f5113.e0af38"
+ "37afe5ee.53cc62"
]
]
},
{
- "id": "b2907373.b3b1a",
+ "id": "9ec2589f.db3418",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2735.490966796875,
- "y": 424.57403564453125,
- "z": "e2fe7a53.da009",
+ "x": 2812.8242950439453,
+ "y": 524.9073791503906,
+ "z": "9455099.1e285f8",
"wires": [
[
- "34c1a665.03471a"
+ "597b7a11.444784"
]
]
},
{
- "id": "fb17b477.f9109",
+ "id": "4f5683a7.464474",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2733,
- "y": 468,
- "z": "e2fe7a53.da009",
+ "x": 2810.3333282470703,
+ "y": 568.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "8d4bf215.03d04"
+ "7e03ef7b.cd722"
]
]
},
{
- "id": "8d4bf215.03d04",
+ "id": "7e03ef7b.cd722",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2900,
- "y": 467,
- "z": "e2fe7a53.da009",
+ "x": 2977.3333282470703,
+ "y": 567.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "34c1a665.03471a",
+ "id": "597b7a11.444784",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 2898.0623779296875,
- "y": 424.8597717285156,
- "z": "e2fe7a53.da009",
+ "x": 2975.395706176758,
+ "y": 525.193115234375,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "a935f75b.7b8ae8",
+ "id": "9782a1c0.c96908",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
"comments": "",
"outputs": 1,
- "x": 2252,
- "y": 283,
- "z": "e2fe7a53.da009",
+ "x": 2329.3333282470703,
+ "y": 383.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "67091bed.864304"
+ "650cd08b.3ade4"
]
]
},
{
- "id": "67091bed.864304",
+ "id": "650cd08b.3ade4",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 2457,
- "y": 283,
- "z": "e2fe7a53.da009",
+ "x": 2534.3333282470703,
+ "y": 383.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "4e4ac25c.008624"
+ "aa3600cc.a7aae8"
]
]
},
{
- "id": "4e4ac25c.008624",
+ "id": "aa3600cc.a7aae8",
"type": "outcome",
"name": "vpn-binding",
"xml": "<outcome value='vpn-binding'>\n",
"comments": "",
"outputs": 1,
- "x": 2623,
- "y": 283,
- "z": "e2fe7a53.da009",
+ "x": 2700.3333282470703,
+ "y": 383.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "7c62e56b.ccfd7c"
+ "fb75e488.be7c5"
]
]
},
{
- "id": "7c62e56b.ccfd7c",
+ "id": "fb75e488.be7c5",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2786,
- "y": 283,
- "z": "e2fe7a53.da009",
+ "x": 2863.3333282470703,
+ "y": 383.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "2055e9c.9575d16"
+ "2a05bc5b.b08dc4"
]
]
},
{
- "id": "1985ee34.d96bba",
+ "id": "e3b2dd80.eef1a8",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-binding.src-access-node-id`\" />\n",
"comments": "",
- "x": 3123,
- "y": 87,
- "z": "e2fe7a53.da009",
+ "x": 3200.3333282470703,
+ "y": 187.33334350585938,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "52698c53.01b1dc",
+ "id": "a9ed431c.c281c",
"type": "get-resource",
"name": "get-resource src pnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 3149,
- "y": 204,
- "z": "e2fe7a53.da009",
+ "x": 3226.3333282470703,
+ "y": 304.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "df3dfd24.e7243",
- "21f9901e.5c5cb",
- "23d5d99c.1069c6"
+ "886463ef.2aa938",
+ "42b42c71.803e4c",
+ "a6449502.70e2c8"
]
]
},
{
- "id": "df3dfd24.e7243",
+ "id": "886463ef.2aa938",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3344.5001220703125,
- "y": 156,
- "z": "e2fe7a53.da009",
+ "x": 3421.833450317383,
+ "y": 256.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "b45e1015.15138"
+ "c18c6719.20bd2"
]
]
},
{
- "id": "21f9901e.5c5cb",
+ "id": "42b42c71.803e4c",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3336.5001220703125,
- "y": 211,
- "z": "e2fe7a53.da009",
+ "x": 3413.833450317383,
+ "y": 311.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "77f6a688.81ce38"
+ "30a99a18.cda186"
]
]
},
{
- "id": "b45e1015.15138",
+ "id": "c18c6719.20bd2",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 3488.8824462890625,
- "y": 155.65567016601562,
- "z": "e2fe7a53.da009",
+ "x": 3566.215774536133,
+ "y": 255.989013671875,
+ "z": "9455099.1e285f8",
"wires": [
[
- "a3edca1c.ba087"
+ "c69e4003.7eb5b8"
]
]
},
{
- "id": "a3edca1c.ba087",
+ "id": "c69e4003.7eb5b8",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 3673,
- "y": 154,
- "z": "e2fe7a53.da009",
+ "x": 3750.3333282470703,
+ "y": 254.33334350585938,
+ "z": "9455099.1e285f8",
"wires": [
[
- "db4aebfd.10c0f"
+ "690e98ca.6414f8"
]
]
},
{
- "id": "db4aebfd.10c0f",
+ "id": "690e98ca.6414f8",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 3868,
- "y": 154,
- "z": "e2fe7a53.da009",
+ "x": 3945.3333282470703,
+ "y": 254.33334350585938,
+ "z": "9455099.1e285f8",
"wires": [
[
- "47e44765.fd9158"
+ "2770cf70.6b8d58"
]
]
},
{
- "id": "23d5d99c.1069c6",
+ "id": "a6449502.70e2c8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3341.5001220703125,
- "y": 268,
- "z": "e2fe7a53.da009",
+ "x": 3418.833450317383,
+ "y": 368.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "4952922a.0e6edc"
+ "6503d576.73a654"
]
]
},
{
- "id": "4952922a.0e6edc",
+ "id": "6503d576.73a654",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 3493.5001220703125,
- "y": 269,
- "z": "e2fe7a53.da009",
+ "x": 3570.833450317383,
+ "y": 369.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "77f6a688.81ce38",
+ "id": "30a99a18.cda186",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 3504.5001220703125,
- "y": 212,
- "z": "e2fe7a53.da009",
+ "x": 3581.833450317383,
+ "y": 312.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "fa4dfe6b.cee79",
+ "id": "9068d2cf.278dc8",
"type": "execute",
"name": "get 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.domain.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 4456,
- "y": 171,
- "z": "e2fe7a53.da009",
+ "x": 4533.33332824707,
+ "y": 271.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "cbb209f7.a6664",
- "74e5e9b0.d9729",
- "a328bb91.cda89"
+ "1fca2290.06e8dd",
+ "c7116ee2.229ee",
+ "d17cbdef.3c1178"
]
]
},
{
- "id": "3f03e2fb.b5f81e",
+ "id": "7354c66b.f20a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4250,
- "y": 158,
- "z": "e2fe7a53.da009",
+ "x": 4327.33332824707,
+ "y": 258.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "8d9a188f.1a7a4",
- "fa4dfe6b.cee79",
- "920b64ba.47efa"
+ "3bcdb5b2.4a3a62",
+ "9068d2cf.278dc8",
+ "99f73767.79f228"
]
]
},
{
- "id": "8d9a188f.1a7a4",
+ "id": "3bcdb5b2.4a3a62",
"type": "set",
"name": "set esr-thirdparty-sdnc domain id",
"xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 4486,
- "y": 119,
- "z": "e2fe7a53.da009",
+ "x": 4563.33332824707,
+ "y": 219.33334350585938,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "cbb209f7.a6664",
+ "id": "1fca2290.06e8dd",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4666,
- "y": 162,
- "z": "e2fe7a53.da009",
+ "x": 4743.33332824707,
+ "y": 262.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "d166346a.002478"
+ "243ff6d9.66256a"
]
]
},
{
- "id": "74e5e9b0.d9729",
+ "id": "c7116ee2.229ee",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 4658,
- "y": 217,
- "z": "e2fe7a53.da009",
+ "x": 4735.33332824707,
+ "y": 317.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "73697be7.45641c"
+ "bfdc168b.3ce728"
]
]
},
{
- "id": "a328bb91.cda89",
+ "id": "d17cbdef.3c1178",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 4663,
- "y": 274,
- "z": "e2fe7a53.da009",
+ "x": 4740.33332824707,
+ "y": 374.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "482cf24f.1774ec"
+ "77929148.a8a1"
]
]
},
{
- "id": "482cf24f.1774ec",
+ "id": "77929148.a8a1",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 4815,
- "y": 275,
- "z": "e2fe7a53.da009",
+ "x": 4892.33332824707,
+ "y": 375.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "73697be7.45641c",
+ "id": "bfdc168b.3ce728",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 4826,
- "y": 220,
- "z": "e2fe7a53.da009",
+ "x": 4903.33332824707,
+ "y": 320.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "d166346a.002478",
+ "id": "243ff6d9.66256a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4810.38232421875,
- "y": 159.65567016601562,
- "z": "e2fe7a53.da009",
+ "x": 4887.71565246582,
+ "y": 259.989013671875,
+ "z": "9455099.1e285f8",
"wires": [
[
- "2f421760.45d288"
+ "ea25b28e.9d40c"
]
]
},
{
- "id": "47e44765.fd9158",
+ "id": "2770cf70.6b8d58",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 4071,
- "y": 158,
- "z": "e2fe7a53.da009",
+ "x": 4148.33332824707,
+ "y": 258.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "3f03e2fb.b5f81e"
+ "7354c66b.f20a"
]
]
},
{
- "id": "2f421760.45d288",
+ "id": "ea25b28e.9d40c",
"type": "set",
"name": "set controller domain data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
"comments": "",
- "x": 5025,
- "y": 156,
- "z": "e2fe7a53.da009",
+ "x": 5102.33332824707,
+ "y": 256.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "920b64ba.47efa",
+ "id": "99f73767.79f228",
"type": "break",
"name": "break",
"xml": "<break>\n",
"comments": "",
- "x": 4406,
- "y": 235,
- "z": "e2fe7a53.da009",
+ "x": 4483.33332824707,
+ "y": 335.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "9405a159.40925",
+ "id": "774630ef.e09c58",
"type": "execute",
"name": "execute RestApiCallNode Delete transport slice without token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-slice-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/operations/ietf-optical-slice:deallocate-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"otn-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`\" />\n",
"comments": "",
"outputs": 1,
- "x": 3273,
- "y": 502,
- "z": "e2fe7a53.da009",
+ "x": 3350.3333282470703,
+ "y": 602.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "ecacf915.574818",
- "e290fc99.96c1d8"
+ "8a18cee3.35ffe",
+ "99cc1156.473278"
]
]
},
{
- "id": "ecacf915.574818",
+ "id": "8a18cee3.35ffe",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3616.5,
- "y": 497,
- "z": "e2fe7a53.da009",
+ "x": 3693.8333282470703,
+ "y": 597.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "6c0fb618.3be698"
+ "a2ed508f.5c119"
]
]
},
{
- "id": "e290fc99.96c1d8",
+ "id": "99cc1156.473278",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3620.5,
- "y": 537,
- "z": "e2fe7a53.da009",
+ "x": 3697.8333282470703,
+ "y": 637.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "735428f1.2ceb3"
+ "912161a0.cf7bf"
]
]
},
{
- "id": "735428f1.2ceb3",
+ "id": "912161a0.cf7bf",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3778,
- "y": 537,
- "z": "e2fe7a53.da009",
+ "x": 3855.3333282470703,
+ "y": 637.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[]
]
},
{
- "id": "6c0fb618.3be698",
+ "id": "a2ed508f.5c119",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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 deallocate transport slice rest api\" />\n",
"comments": "",
- "x": 3774.5,
- "y": 497,
- "z": "e2fe7a53.da009",
+ "x": 3851.8333282470703,
+ "y": 597.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "6e17a44c.f8e15c",
+ "id": "3eed71af.4521b6",
"type": "set",
"name": "set attachment_param for TN NSSSI deleteion in PNC",
"xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
"comments": "",
- "x": 3249,
- "y": 377,
- "z": "e2fe7a53.da009",
+ "x": 3326.3333282470703,
+ "y": 477.3333435058594,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "9562cdef.811fc8",
+ "id": "d4052d30.ad8718",
"type": "save",
"name": "delete connectivity resource in AAI",
"xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n",
"comments": "",
"outputs": 1,
- "x": 3179,
- "y": 812,
- "z": "e2fe7a53.da009",
+ "x": 3256.3333282470703,
+ "y": 912.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[]
]
},
{
- "id": "51f18b3b.809efc",
+ "id": "fddd2ea9.355138",
"type": "save",
"name": "delete vpn-binding resource in AAI",
"xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n",
"comments": "",
"outputs": 1,
- "x": 3175,
- "y": 856,
- "z": "e2fe7a53.da009",
+ "x": 3252.3333282470703,
+ "y": 956.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[]
]
},
{
- "id": "9ec21c40.e14a88",
+ "id": "81312607.6bb828",
"type": "execute",
"name": "execute RestApiCallNode domain UNI deColoring",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />-->\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-network:networks/network=networkId-providerId-' + $tmp.aai.connectivity.access-provider-id + '-clientId-' + $tmp.aai.connectivity.access-client-id + '-topologyId-' + $tmp.aai.connectivity.access-topology-id + '/node=' + $tmp.aai.connectivity.access-node-id + '/ietf-network-topology:termination-point=' + $tmp.aai.connectivity.access-ltp-id + '/ietf-te-topology:te/ietf-optical-slice:slice-id-list=' + $slice-instance-id `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"otn-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`\" />\n",
"comments": "",
"outputs": 1,
- "x": 3759,
- "y": 676,
- "z": "e2fe7a53.da009",
+ "x": 3836.3333282470703,
+ "y": 776.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "f05a4dc0.054df",
- "f0f39295.b7b9a8"
+ "cd905ee1.eaa9b8",
+ "3271c447.28d454"
]
]
},
{
- "id": "f0f39295.b7b9a8",
+ "id": "3271c447.28d454",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4025,
- "y": 656,
- "z": "e2fe7a53.da009",
+ "x": 4102.33332824707,
+ "y": 756.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "b586e36a.93b3e8"
+ "e043f0ae.c34d08"
]
]
},
{
- "id": "f05a4dc0.054df",
+ "id": "cd905ee1.eaa9b8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4026.000213623047,
- "y": 706.9999094009399,
- "z": "e2fe7a53.da009",
+ "x": 4103.333541870117,
+ "y": 807.3332529067993,
+ "z": "9455099.1e285f8",
"wires": [
[
- "67ce9419.db502c"
+ "a5def9d3.538c"
]
]
},
{
- "id": "b586e36a.93b3e8",
+ "id": "e043f0ae.c34d08",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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 decoloring UNI rest api\" />\n",
"comments": "",
- "x": 4165.000247955322,
- "y": 656.0000009536743,
- "z": "e2fe7a53.da009",
+ "x": 4242.333576202393,
+ "y": 756.3333444595337,
+ "z": "9455099.1e285f8",
"wires": []
},
{
- "id": "67ce9419.db502c",
+ "id": "a5def9d3.538c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4171.02725982666,
- "y": 704.7453947067261,
- "z": "e2fe7a53.da009",
+ "x": 4248.3605880737305,
+ "y": 805.0787382125854,
+ "z": "9455099.1e285f8",
"wires": [
[]
]
},
{
- "id": "e776447c.da84c8",
+ "id": "9f2982f0.62eef8",
"type": "switchNode",
"name": "switch connectivity has ethernet service",
"xml": "<switch test='`$tmp.aai.connectivity.etht-svc-name`'>\n",
"comments": "",
"outputs": 1,
- "x": 3208,
- "y": 693,
- "z": "e2fe7a53.da009",
+ "x": 3285.3333282470703,
+ "y": 793.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "a367a533.706f78",
- "4d988de7.d09044"
+ "e2b757bb.931bf8",
+ "73b037b.7f08a48"
]
]
},
{
- "id": "4d988de7.d09044",
+ "id": "73b037b.7f08a48",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3446,
- "y": 676,
- "z": "e2fe7a53.da009",
+ "x": 3523.3333282470703,
+ "y": 776.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[
- "9ec21c40.e14a88"
+ "81312607.6bb828"
]
]
},
{
- "id": "a367a533.706f78",
+ "id": "e2b757bb.931bf8",
"type": "outcome",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 3458,
- "y": 743,
- "z": "e2fe7a53.da009",
+ "x": 3535.3333282470703,
+ "y": 843.3333435058594,
+ "z": "9455099.1e285f8",
"wires": [
[]
]
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json
index df10744c..651d55ce 100644
--- a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json
@@ -1,20 +1,20 @@
[
{
- "id": "b86b0fef.6d8f2",
+ "id": "2211395a.011d9e",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 228.56666564941406,
- "y": 144.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 163.3333282470703,
+ "y": 160.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "2128d45c.da5aa4"
+ "76c66690.98a45"
]
]
},
{
- "id": "2128d45c.da5aa4",
+ "id": "76c66690.98a45",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,5624 +22,5808 @@
"comments": "",
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
"outputs": 1,
- "x": 453.85235595703125,
- "y": 218.8047742843628,
- "z": "25a21122.0e2cfe",
+ "x": 388.6190185546875,
+ "y": 234.5714521408081,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "70e99b08.a81814"
+ "b63d123d.97032"
]
]
},
{
- "id": "70e99b08.a81814",
+ "id": "b63d123d.97032",
"type": "method",
- "name": "method tsli-vnf-topology-operation-trans-slice-modify",
- "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-modify' mode='sync'>\n",
+ "name": "method p2p-vnf-topology-operation-p2p-modify",
+ "xml": "<method rpc='p2p-vnf-topology-operation-p2p-modify' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 459.9952697753906,
- "y": 303.5666961669922,
- "z": "25a21122.0e2cfe",
+ "x": 394.7619323730469,
+ "y": 319.3333740234375,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "3d648e68.8f83fa"
+ "8673b8f9.6a3da8"
]
]
},
{
- "id": "3d648e68.8f83fa",
+ "id": "8673b8f9.6a3da8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 829.8047027587891,
- "y": 328.2333526611328,
- "z": "25a21122.0e2cfe",
+ "x": 764.5713653564453,
+ "y": 344.0000305175781,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "4898a5d2.c4814c",
- "43d16cc8.33970c",
- "dd074b01.699d5"
+ "ae3ebf6e.ef0d08",
+ "ab777fe6.923ff8",
+ "74df18ed.a4e518"
]
]
},
{
- "id": "4898a5d2.c4814c",
+ "id": "ae3ebf6e.ef0d08",
"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": 1085.138198852539,
- "y": 482.1636505126953,
- "z": "25a21122.0e2cfe",
+ "x": 1019.9048614501953,
+ "y": 497.9303283691406,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "43d16cc8.33970c",
+ "id": "ab777fe6.923ff8",
"type": "save",
"name": "get service-instance from aai",
"xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",
"comments": "",
"outputs": 1,
- "x": 1152.566665649414,
- "y": 301.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1087.3333282470703,
+ "y": 317.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "5739653.c5aef1c",
- "4e5f3667.ce514",
- "7d9553c0.a90d3c"
+ "aea97b8e.023f8",
+ "722dfa8c.b5ceac",
+ "9688fc7c.73aaf"
]
]
},
{
- "id": "5739653.c5aef1c",
+ "id": "aea97b8e.023f8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1377.566665649414,
- "y": 159.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1312.3333282470703,
+ "y": 175.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "fc0ebeea.3842e8"
+ "ef41f2be.ad3298"
]
]
},
{
- "id": "4e5f3667.ce514",
+ "id": "722dfa8c.b5ceac",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1373.057632446289,
- "y": 229.1407012939453,
- "z": "25a21122.0e2cfe",
+ "x": 1307.8242950439453,
+ "y": 244.90737915039062,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "9ccb6432.a6f758"
+ "1d2d7b8b.bf556c"
]
]
},
{
- "id": "7d9553c0.a90d3c",
+ "id": "9688fc7c.73aaf",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1361.566665649414,
- "y": 275.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1296.3333282470703,
+ "y": 291.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "2159c0a9.b6525"
+ "8b1a56ec.d55058"
]
]
},
{
- "id": "fc0ebeea.3842e8",
+ "id": "ef41f2be.ad3298",
"type": "switchNode",
"name": "switch allotted-resources_length != 0",
"xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 1616.566665649414,
- "y": 156.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1551.3333282470703,
+ "y": 172.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "9f0f2f3b.2aa0c8",
- "29eb9fec.58b94"
+ "34ae60f0.b22a",
+ "2322bdf8.c6bb02"
]
]
},
{
- "id": "9ccb6432.a6f758",
+ "id": "1d2d7b8b.bf556c",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 1526.6290435791016,
- "y": 232.4264373779297,
- "z": "25a21122.0e2cfe",
+ "x": 1461.3957061767578,
+ "y": 248.193115234375,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "2159c0a9.b6525",
+ "id": "8b1a56ec.d55058",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1530.566665649414,
- "y": 276.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1465.3333282470703,
+ "y": 292.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "9f0f2f3b.2aa0c8",
+ "id": "34ae60f0.b22a",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1829.566665649414,
- "y": 180.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1764.3333282470703,
+ "y": 196.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "c939819f.3d19a"
+ "3d51a7bc.14e5d"
]
]
},
{
- "id": "29eb9fec.58b94",
+ "id": "2322bdf8.c6bb02",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1831.566665649414,
- "y": 120.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1766.3333282470703,
+ "y": 136.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "1c8a1ea6.0feed9",
+ "id": "660e6b22.7f394c",
"type": "comment",
"name": "new for TransportSlicing",
"info": "",
"comments": "",
- "x": 1131.566665649414,
- "y": 189.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1066.3333282470703,
+ "y": 205.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "c939819f.3d19a",
+ "id": "3d51a7bc.14e5d",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1774.566665649414,
- "y": 362.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1709.3333282470703,
+ "y": 378.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "f0cde51e.fc048",
- "5a4aff44.5be78",
- "e781046f.1418e",
- "127eaa7a.98449e",
- "8780743f.a296a",
- "323fc4b1.60fe74"
+ "5c997953.c5b528",
+ "38f52a4e.84a6be",
+ "efd37c2f.4ac7f",
+ "ba577b94.b0dc8"
]
]
},
{
- "id": "db6151f2.0aacb",
+ "id": "c943499a.5fba18",
"type": "set",
"name": "set network-route-A",
"xml": "<set>\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />-->\n\n\n",
"comments": "",
- "x": 4343.566665649414,
- "y": 869.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4278.33332824707,
+ "y": 885.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "e016be81.6c64f",
+ "id": "a02a2dea.0be938",
"type": "set",
"name": "set network-route-B",
"xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",
"comments": "",
- "x": 4344.566665649414,
- "y": 924.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4279.33332824707,
+ "y": 940.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "103cc7a8.7e9b88",
+ "id": "b14c900.06de0f",
"type": "save",
"name": "get allotted-resource from aai",
"xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!-- AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",
"comments": "",
"outputs": 1,
- "x": 2300.566665649414,
- "y": 319.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2235.3333282470703,
+ "y": 335.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "f2966e51.e2caf8",
- "2b2db624.af7c1a",
- "626f780f.86dfb8"
+ "dfed5f78.dacb98",
+ "5582b318.e9d204",
+ "2fce3c04.1858e4"
]
]
},
{
- "id": "f2966e51.e2caf8",
+ "id": "dfed5f78.dacb98",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2516.566665649414,
- "y": 386.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2451.3333282470703,
+ "y": 402.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8eff1c95.000698"
+ "782c069d.e39358"
]
]
},
{
- "id": "2b2db624.af7c1a",
+ "id": "5582b318.e9d204",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2517.057632446289,
- "y": 286.14064025878906,
- "z": "25a21122.0e2cfe",
+ "x": 2451.8242950439453,
+ "y": 301.9073181152344,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e741338f.fadbb8"
+ "6fdc0c14.bf49ec"
]
]
},
{
- "id": "626f780f.86dfb8",
+ "id": "2fce3c04.1858e4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2512.566665649414,
- "y": 335.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2447.3333282470703,
+ "y": 351.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "2cb8a0b4.ed0f98"
+ "40e570f4.a7125"
]
]
},
{
- "id": "e741338f.fadbb8",
+ "id": "6fdc0c14.bf49ec",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 2694.629165649414,
- "y": 286.42640686035156,
- "z": "25a21122.0e2cfe",
+ "x": 2629.3958282470703,
+ "y": 302.1930847167969,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "2cb8a0b4.ed0f98",
+ "id": "40e570f4.a7125",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2694.566665649414,
- "y": 335.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2629.3333282470703,
+ "y": 351.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "1c10a7b4.762648",
+ "id": "c63be28d.8bf768",
"type": "save",
"name": "get logical-link from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",
"comments": "",
"outputs": 1,
- "x": 3569.566665649414,
- "y": 840.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 3504.3333282470703,
+ "y": 856.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "54f63921.d24288",
- "11c3d54e.f4363b",
- "e636914f.ca32e"
+ "fe4eb74e.b16da8",
+ "f1a8adba.61278",
+ "1668ffd4.4ff0c"
]
]
},
{
- "id": "54f63921.d24288",
+ "id": "fe4eb74e.b16da8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3861.057632446289,
- "y": 819.1406402587891,
- "z": "25a21122.0e2cfe",
+ "x": 3795.8242950439453,
+ "y": 834.9073181152344,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "4ad84bdb.1011e4"
+ "1a4b644b.4c6e64"
]
]
},
{
- "id": "11c3d54e.f4363b",
+ "id": "f1a8adba.61278",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3849.566665649414,
- "y": 863.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 3784.3333282470703,
+ "y": 879.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "611bd1d0.bbec68"
+ "9213678.fc93898"
]
]
},
{
- "id": "4ad84bdb.1011e4",
+ "id": "1a4b644b.4c6e64",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 4009.629165649414,
- "y": 819.4264068603516,
- "z": "25a21122.0e2cfe",
+ "x": 3944.3958282470703,
+ "y": 835.1930847167969,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "611bd1d0.bbec68",
+ "id": "9213678.fc93898",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 4008.566665649414,
- "y": 863.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 3943.3333282470703,
+ "y": 879.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "e636914f.ca32e",
+ "id": "1668ffd4.4ff0c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3855.566665649414,
- "y": 910.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 3790.3333282470703,
+ "y": 926.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "4dddc413.6cd63c",
+ "id": "498e3ba4.cbc914",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4009.566665649414,
- "y": 949.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 3944.3333282470703,
+ "y": 965.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "db6151f2.0aacb",
- "e016be81.6c64f",
- "9f8998d0.ce9c48",
- "44a9159e.85e724",
- "8f0ab711.e0d798",
- "d96045a7.1a29c8",
- "7c9d6be0.59e3fc",
- "5f01b0d6.663678",
- "96f11e74.5cf9",
- "32dd1d69.d1982a",
- "fefb165c.6d9d48",
- "afd6fb79.f36b6",
- "1a397526.128d93"
+ "c943499a.5fba18",
+ "a02a2dea.0be938",
+ "baaef2d3.b5b91",
+ "217d122e.216aae",
+ "f7348f80.aa12e8",
+ "7a252ae2.45ae64",
+ "9446dea5.335408",
+ "adfb9d4f.ef8fd8",
+ "586bfbbd.46cc14",
+ "2a7b5024.c32ac8",
+ "8e0823d9.c3d5f",
+ "642b12a.3e870ec",
+ "f34b01.8e0f75"
]
]
},
{
- "id": "9f8998d0.ce9c48",
+ "id": "baaef2d3.b5b91",
"type": "save",
"name": "get network-route-A from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-A'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-A\">",
"comments": "",
"outputs": 1,
- "x": 4356.566665649414,
- "y": 992.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4291.33332824707,
+ "y": 1008.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ad94bc3e.2edb18",
- "3c6b8cbe.35a074",
- "e925e05d.5c3e7"
+ "d4cc395.cbcc8c8",
+ "73709604.b968f",
+ "7296162a.34f3c8"
]
]
},
{
- "id": "44a9159e.85e724",
+ "id": "217d122e.216aae",
"type": "save",
"name": "get network-route-B from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-B'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-B\">",
"comments": "",
"outputs": 1,
- "x": 4335.566665649414,
- "y": 1594.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 4270.33332824707,
+ "y": 1610.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ce3181da.534ae8",
- "dd474f13.0169c8",
- "1e53e46c.6ee5dc"
+ "33c50f98.788ad",
+ "41cb8574.dd9304",
+ "d536577b.eef8e8"
]
]
},
{
- "id": "ad94bc3e.2edb18",
+ "id": "d4cc395.cbcc8c8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 4557.566665649414,
- "y": 876.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4492.33332824707,
+ "y": 892.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "11095a88.1d6375"
+ "d86c12e3.b2275"
]
]
},
{
- "id": "3c6b8cbe.35a074",
+ "id": "73709604.b968f",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4553.075698852539,
- "y": 925.9926910400391,
- "z": "25a21122.0e2cfe",
+ "x": 4487.842361450195,
+ "y": 941.7593688964844,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "1c85f4a2.49e393"
+ "800e46e3.3573a"
]
]
},
{
- "id": "e925e05d.5c3e7",
+ "id": "7296162a.34f3c8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4557.075698852539,
- "y": 976.9926910400391,
- "z": "25a21122.0e2cfe",
+ "x": 4491.842361450195,
+ "y": 992.7593688964844,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "7e7cdd76.7cfb84"
+ "a34e2377.27ccd8"
]
]
},
{
- "id": "11095a88.1d6375",
+ "id": "d86c12e3.b2275",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 4706.138198852539,
- "y": 875.8524322509766,
- "z": "25a21122.0e2cfe",
+ "x": 4640.904861450195,
+ "y": 891.6191101074219,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "1c85f4a2.49e393",
+ "id": "800e46e3.3573a",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 4696.075698852539,
- "y": 925.9926910400391,
- "z": "25a21122.0e2cfe",
+ "x": 4630.842361450195,
+ "y": 941.7593688964844,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ce3181da.534ae8",
+ "id": "33c50f98.788ad",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 4558.566665649414,
- "y": 1564.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 4493.33332824707,
+ "y": 1580.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "b22dee41.00f36"
+ "4a962304.a215f4"
]
]
},
{
- "id": "dd474f13.0169c8",
+ "id": "41cb8574.dd9304",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4554.075698852539,
- "y": 1613.9925689697266,
- "z": "25a21122.0e2cfe",
+ "x": 4488.842361450195,
+ "y": 1629.7592468261719,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "6933584e.ecc31"
+ "310d3fa7.cc4238"
]
]
},
{
- "id": "1e53e46c.6ee5dc",
+ "id": "d536577b.eef8e8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4558.075698852539,
- "y": 1664.9925689697266,
- "z": "25a21122.0e2cfe",
+ "x": 4492.842361450195,
+ "y": 1680.7592468261719,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "b7fe5d85.6c90f"
+ "c757b760.b406b"
]
]
},
{
- "id": "b22dee41.00f36",
+ "id": "4a962304.a215f4",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 4707.138198852539,
- "y": 1563.852310180664,
- "z": "25a21122.0e2cfe",
+ "x": 4641.904861450195,
+ "y": 1579.6189880371094,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "6933584e.ecc31",
+ "id": "310d3fa7.cc4238",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 4697.075698852539,
- "y": 1613.9925689697266,
- "z": "25a21122.0e2cfe",
+ "x": 4631.842361450195,
+ "y": 1629.7592468261719,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "95843474.b9bce8",
+ "id": "62da33ab.561f8c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 5371.233169555664,
- "y": 1020.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5305.99983215332,
+ "y": 1036.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "b4615ea7.1bce1",
- "be2e7ced.c4df",
- "ce2c131b.42f24",
- "71b17710.70c14",
- "89a7842f.afd83"
+ "70f308bc.05dc48",
+ "a4aed251.f9b08",
+ "d868e9d5.e95cb",
+ "2078a502.9da27a",
+ "8465e4fd.6de0a"
]
]
},
{
- "id": "4503129f.bd2fd4",
+ "id": "24a2bf70.dd5f6",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5198.566665649414,
- "y": 1021.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5133.33332824707,
+ "y": 1037.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "95843474.b9bce8"
+ "62da33ab.561f8c"
]
]
},
{
- "id": "8659354b.96b4a",
+ "id": "b92bac73.6c9778",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5208.057632446289,
- "y": 1064.1407012939453,
- "z": "25a21122.0e2cfe",
+ "x": 5142.824295043945,
+ "y": 1079.9073791503906,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "df26ebdc.1c7d8"
+ "e76a7bba.50458"
]
]
},
{
- "id": "f14e9aee.41ddd",
+ "id": "4c3b9d0a.797a8c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 5196.566665649414,
- "y": 1110.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5131.33332824707,
+ "y": 1126.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "779f16ad.79c298"
+ "24a51d5a.eb4b0a"
]
]
},
{
- "id": "df26ebdc.1c7d8",
+ "id": "e76a7bba.50458",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 5361.629043579102,
- "y": 1067.4264373779297,
- "z": "25a21122.0e2cfe",
+ "x": 5296.395706176758,
+ "y": 1083.193115234375,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "779f16ad.79c298",
+ "id": "24a51d5a.eb4b0a",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 5365.566665649414,
- "y": 1111.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5300.33332824707,
+ "y": 1127.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "7e7cdd76.7cfb84",
+ "id": "a34e2377.27ccd8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4718.566665649414,
- "y": 978.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4653.33332824707,
+ "y": 994.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d6ce477c.e6b1",
- "6ff01134.d27b1"
+ "709f1167.bbcf68",
+ "77da836c.7c453c"
]
]
},
{
- "id": "b7fe5d85.6c90f",
+ "id": "c757b760.b406b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4708.566665649414,
- "y": 1666.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 4643.33332824707,
+ "y": 1682.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "44dc4d90.b0cc4c",
- "abe40e95.5db908"
+ "e832df40.3cb4e8",
+ "e46caf0e.563478"
]
]
},
{
- "id": "12aedd33.0f1043",
+ "id": "e7fcac87.3713a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 5339.233169555664,
- "y": 1856.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5273.99983215332,
+ "y": 1872.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e22e2a42.a26b1",
- "cf28df7d.f3d4b",
- "daaed265.7759a8",
- "cb8398b0.7dbb5",
- "7bc8d59f.6d2444"
+ "53c6fb5d.111ec4",
+ "34b35dcd.443f82",
+ "3a858051.3cdb98",
+ "a5489f79.fd4018",
+ "a9a1085f.9d214"
]
]
},
{
- "id": "9a2935ba.2db97",
+ "id": "d0bf9af7.9310c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5166.566665649414,
- "y": 1857.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5101.33332824707,
+ "y": 1873.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "12aedd33.0f1043"
+ "e7fcac87.3713a"
]
]
},
{
- "id": "dcc235b8.72838",
+ "id": "26c8c3e3.b7c694",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5176.057632446289,
- "y": 1900.1407012939453,
- "z": "25a21122.0e2cfe",
+ "x": 5110.824295043945,
+ "y": 1915.9073791503906,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "6a73fa3d.d6c2b4"
+ "a82c31f6.750ae8"
]
]
},
{
- "id": "262965f5.6cf9ea",
+ "id": "dbc3af7a.2f9fb8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 5164.566665649414,
- "y": 1946.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5099.33332824707,
+ "y": 1962.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "403c1229.13a954"
+ "10e75613.88aafa"
]
]
},
{
- "id": "6a73fa3d.d6c2b4",
+ "id": "a82c31f6.750ae8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 5329.629043579102,
- "y": 1903.4264373779297,
- "z": "25a21122.0e2cfe",
+ "x": 5264.395706176758,
+ "y": 1919.193115234375,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "403c1229.13a954",
+ "id": "10e75613.88aafa",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 5333.566665649414,
- "y": 1947.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5268.33332824707,
+ "y": 1963.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "b4615ea7.1bce1",
+ "id": "70f308bc.05dc48",
"type": "execute",
"name": "execute split tp-id to get pnf-name",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 5635.566665649414,
- "y": 1004.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5570.33332824707,
+ "y": 1020.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "7fca3373.091184",
- "84a28ee2.eeb658"
+ "6bbffa2e.46690c",
+ "77cd07cb.ebdf78"
]
]
},
{
- "id": "84a28ee2.eeb658",
+ "id": "77cd07cb.ebdf78",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5858.566665649414,
- "y": 959.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5793.33332824707,
+ "y": 975.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "70d4fffc.d22c5"
+ "e975bc36.28a99"
]
]
},
{
- "id": "7fca3373.091184",
+ "id": "6bbffa2e.46690c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 5860.566665649414,
- "y": 1023.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5795.33332824707,
+ "y": 1039.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "3dce84d0.b85dd4"
+ "8466cb9d.f4bc28"
]
]
},
{
- "id": "850dbb90.b4b68",
+ "id": "d8fed17b.7e481",
"type": "set",
"name": "set ltpId",
"xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",
"comments": "",
- "x": 6193.566665649414,
- "y": 914.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6128.33332824707,
+ "y": 930.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "3dce84d0.b85dd4",
+ "id": "8466cb9d.f4bc28",
"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": 6022.566665649414,
- "y": 1019.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5957.33332824707,
+ "y": 1035.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "70d4fffc.d22c5",
+ "id": "e975bc36.28a99",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6023.566665649414,
- "y": 956.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5958.33332824707,
+ "y": 972.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "caf9269d.270b2",
- "850dbb90.b4b68"
+ "34be39c3.d02096",
+ "d8fed17b.7e481"
]
]
},
{
- "id": "caf9269d.270b2",
+ "id": "34be39c3.d02096",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",
"comments": "",
- "x": 6194.566665649414,
- "y": 1022.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6129.33332824707,
+ "y": 1038.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "59bf2583.d75a84",
+ "id": "becbdb78.8c28c",
"type": "comment",
"name": "TODO: FIXME",
"info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",
"comments": "",
- "x": 6195.566665649414,
- "y": 971.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6130.33332824707,
+ "y": 987.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "be2e7ced.c4df",
+ "id": "a4aed251.f9b08",
"type": "execute",
"name": "execute UUID generator for connectivity domainA",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",
"comments": "",
"outputs": 1,
- "x": 5682.566665649414,
- "y": 1073.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5617.33332824707,
+ "y": 1089.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "27594e13.316c22",
+ "id": "1e8d2c8e.4a5dbb",
"type": "comment",
"name": "TODO: FIXME",
"info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",
"comments": "",
- "x": 5571.566665649414,
- "y": 1114.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5506.33332824707,
+ "y": 1130.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "e22e2a42.a26b1",
+ "id": "53c6fb5d.111ec4",
"type": "execute",
"name": "execute split tp-id to get pnf-name",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n\n",
"comments": "",
"outputs": 1,
- "x": 5625.566665649414,
- "y": 1860.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5560.33332824707,
+ "y": 1876.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "b2f644ca.d12c2",
- "b58bca2c.4bf2c"
+ "46b3e138.d3f2e8",
+ "cddf08d4.ef0a5"
]
]
},
{
- "id": "b58bca2c.4bf2c",
+ "id": "cddf08d4.ef0a5",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5848.566665649414,
- "y": 1815.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5783.33332824707,
+ "y": 1831.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "983024ad.f8675"
+ "f20f3066.a035b8"
]
]
},
{
- "id": "b2f644ca.d12c2",
+ "id": "46b3e138.d3f2e8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 5850.566665649414,
- "y": 1879.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5785.33332824707,
+ "y": 1895.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "4af84f4.a49b8b"
+ "2b8acdb2.b50cfa"
]
]
},
{
- "id": "c96d7934.c0e9e8",
+ "id": "db0e4a6.96bfeb8",
"type": "set",
"name": "set ltpId",
"xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",
"comments": "",
- "x": 6183.566665649414,
- "y": 1773.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 6118.33332824707,
+ "y": 1789.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "4af84f4.a49b8b",
+ "id": "2b8acdb2.b50cfa",
"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": 6009.566665649414,
- "y": 1898.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5944.33332824707,
+ "y": 1914.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "983024ad.f8675",
+ "id": "f20f3066.a035b8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6013.566665649414,
- "y": 1812.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5948.33332824707,
+ "y": 1828.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "c96d7934.c0e9e8",
- "183e4dc8.9e45ba"
+ "db0e4a6.96bfeb8",
+ "aa82495b.a24c98"
]
]
},
{
- "id": "183e4dc8.9e45ba",
+ "id": "aa82495b.a24c98",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",
"comments": "",
- "x": 6184.566665649414,
- "y": 1878.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 6119.33332824707,
+ "y": 1894.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "57730d78.763bfc",
+ "id": "76704f22.ba3f58",
"type": "comment",
"name": "TODO: FIXME",
"info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",
"comments": "",
- "x": 6179.566665649414,
- "y": 1827.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 6114.33332824707,
+ "y": 1843.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "daaed265.7759a8",
+ "id": "3a858051.3cdb98",
"type": "save",
"name": "save connectivity resource in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\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`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
"comments": "",
"outputs": 1,
- "x": 5627.566665649414,
- "y": 2019.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5562.33332824707,
+ "y": 2035.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "cf28df7d.f3d4b",
+ "id": "34b35dcd.443f82",
"type": "execute",
"name": "execute UUID generator for connectivity domainB",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",
"comments": "",
"outputs": 1,
- "x": 5672.566665649414,
- "y": 1929.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5607.33332824707,
+ "y": 1945.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "9f3e922b.b3211",
+ "id": "c373fb4d.a3a7f",
"type": "comment",
"name": "TODO: FIXME",
"info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",
"comments": "",
- "x": 5561.566665649414,
- "y": 1967.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5496.33332824707,
+ "y": 1983.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "8f0ab711.e0d798",
+ "id": "f7348f80.aa12e8",
"type": "call",
"name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",
"comments": "",
"outputs": 1,
- "x": 4556.566665649414,
- "y": 2264.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4491.33332824707,
+ "y": 2280.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "d96045a7.1a29c8",
+ "id": "7a252ae2.45ae64",
"type": "set",
"name": "set attachment_param",
"xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n\n<!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->\n",
"comments": "",
- "x": 4350.566665649414,
- "y": 2165.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4285.33332824707,
+ "y": 2181.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "d2d69fa1.baa39",
+ "id": "c4146d99.a600e",
"type": "comment",
"name": "TODO: FIXME",
"info": "put proper values for src topology-id, node-id, ltp-id, etc (in domain A)\nand dst topology-id, node-id, ltp-id, etc (in domain B)",
"comments": "",
- "x": 4324.566665649414,
- "y": 2118.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4259.33332824707,
+ "y": 2134.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ce2c131b.42f24",
+ "id": "d868e9d5.e95cb",
"type": "save",
"name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \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/' + $uuid.connectivity-domainA-uuid`\" />\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=\"`$uuid.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\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/' + $prop.sotn.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=\"`$prop.sotn.network-id`\" />-->",
"comments": "",
"outputs": 1,
- "x": 5765.566665649414,
- "y": 1211.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5700.33332824707,
+ "y": 1227.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "cb8398b0.7dbb5",
+ "id": "a5489f79.fd4018",
"type": "save",
"name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \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/' + $prop.connectivity-domainB-uuid`\" />\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=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\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/' + $prop.sotn.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=\"`$prop.sotn.network-id`\" />-->",
"comments": "",
"outputs": 1,
- "x": 5754.566665649414,
- "y": 2084.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5689.33332824707,
+ "y": 2100.333465576172,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "92b1873d.551bc",
+ "id": "e38e7099.4c1268",
"type": "execute",
"name": "get 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.domainA.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 6809.566665649414,
- "y": 731.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6744.33332824707,
+ "y": 747.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "3b96c7df.05e2",
- "1eec19a2.07645e",
- "b1213bca.c3532"
+ "60adc82e.ec907",
+ "ef6befb7.25ec38",
+ "2514309d.ea219"
]
]
},
{
- "id": "8eff1c95.000698",
+ "id": "782c069d.e39358",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2696.566665649414,
- "y": 386.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2631.3333282470703,
+ "y": 402.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ad97eaf2.db3cf"
+ "5b7c0727.9a035"
]
]
},
{
- "id": "5c4d87c2.cacd08",
+ "id": "47d4cad8.17d52c",
"type": "outcome",
"name": "logical-link",
"xml": "<outcome value='logical-link'>\n",
"comments": "",
"outputs": 1,
- "x": 1093.5667877197266,
- "y": 781.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 1028.3334503173828,
+ "y": 797.3334655761719,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ba05feca.357468"
+ "6079a4cf.66fe14"
]
]
},
{
- "id": "41f5506e.8f5aa",
+ "id": "21c0e3fe.82515c",
"type": "switchNode",
"name": "switch allotted-resource.relationship-list not empty",
"xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 2259.566665649414,
- "y": 480.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2194.3333282470703,
+ "y": 496.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8b2a546b.9f5318",
- "f654fc01.bf0048"
+ "8d2ba343.63f8c8",
+ "ae4416d5.ca7b4"
]
]
},
{
- "id": "f654fc01.bf0048",
+ "id": "ae4416d5.ca7b4",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2580.566665649414,
- "y": 462.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2515.3333282470703,
+ "y": 478.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "8b2a546b.9f5318",
+ "id": "8d2ba343.63f8c8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2562.566665649414,
- "y": 560.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 2497.3333282470703,
+ "y": 576.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "24772c6a.a8483c"
+ "b6502203.02c108"
]
]
},
{
- "id": "94799b47.aa87f8",
+ "id": "8bb28c9b.5b048",
"type": "set",
"name": "set the current logical-link-name",
"xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n<parameter name='currLinkIsFound' value=\"false\" />\n\n\n",
"comments": "",
- "x": 1516.566665649414,
- "y": 684.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1451.3333282470703,
+ "y": 700.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ba05feca.357468",
+ "id": "6079a4cf.66fe14",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1270.566665649414,
- "y": 774.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1205.3333282470703,
+ "y": 790.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "94799b47.aa87f8",
- "433e887a.5dd2c",
- "fc0b0bdf.af57e8"
+ "8bb28c9b.5b048",
+ "b7e06d6e.f371a",
+ "9653963e.b4d7a8"
]
]
},
{
- "id": "fa0822cd.53caf",
+ "id": "485e027f.e391bc",
"type": "comment",
"name": "Question?",
"info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
"comments": "",
- "x": 4898.566665649414,
- "y": 983.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4833.33332824707,
+ "y": 999.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "d6ce477c.e6b1",
+ "id": "709f1167.bbcf68",
"type": "save",
"name": "get p-interface-src from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t key=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\n\t AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-A.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",
"comments": "",
"outputs": 1,
- "x": 4941.566665649414,
- "y": 1048.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4876.33332824707,
+ "y": 1064.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "4503129f.bd2fd4",
- "8659354b.96b4a",
- "f14e9aee.41ddd"
+ "24a2bf70.dd5f6",
+ "b92bac73.6c9778",
+ "4c3b9d0a.797a8c"
]
]
},
{
- "id": "44dc4d90.b0cc4c",
+ "id": "e832df40.3cb4e8",
"type": "save",
"name": "get p-interface-dst from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t key=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\n\t AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-B.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",
"comments": "",
"outputs": 1,
- "x": 4938.566665649414,
- "y": 1892.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4873.33332824707,
+ "y": 1908.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "9a2935ba.2db97",
- "dcc235b8.72838",
- "262965f5.6cf9ea"
+ "d0bf9af7.9310c",
+ "26c8c3e3.b7c694",
+ "dbc3af7a.2f9fb8"
]
]
},
{
- "id": "2ca1c6c2.0f0f22",
+ "id": "a33a2969.97acc",
"type": "comment",
"name": "Question?",
"info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
"comments": "",
- "x": 4899.566665649414,
- "y": 1836.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4834.33332824707,
+ "y": 1852.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ad97eaf2.db3cf",
+ "id": "5b7c0727.9a035",
"type": "save",
"name": "get allotted-resource relationship from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",
"comments": "",
"outputs": 1,
- "x": 2989.566665649414,
- "y": 333.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2924.3333282470703,
+ "y": 349.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ef5e96fe.587c78",
- "e171a2b9.a46c9",
- "ed7e8b76.daabf"
+ "ca1aef51.5c2e6",
+ "fa2abd46.be79a8",
+ "6dcd89ce.d8f7b8"
]
]
},
{
- "id": "e171a2b9.a46c9",
+ "id": "fa2abd46.be79a8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3263.057632446289,
- "y": 226.14064025878906,
- "z": "25a21122.0e2cfe",
+ "x": 3197.8242950439453,
+ "y": 241.90731811523438,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ae21063b.421918"
+ "3cf8b5c.596c24a"
]
]
},
{
- "id": "ae21063b.421918",
+ "id": "3cf8b5c.596c24a",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 3440.629165649414,
- "y": 226.42640686035156,
- "z": "25a21122.0e2cfe",
+ "x": 3375.3958282470703,
+ "y": 242.19308471679688,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ed7e8b76.daabf",
+ "id": "6dcd89ce.d8f7b8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3258.566665649414,
- "y": 275.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 3193.3333282470703,
+ "y": 291.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "1fe6476a.260d99"
+ "143224ce.735913"
]
]
},
{
- "id": "1fe6476a.260d99",
+ "id": "143224ce.735913",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 3440.566665649414,
- "y": 275.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 3375.3333282470703,
+ "y": 291.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ef5e96fe.587c78",
+ "id": "ca1aef51.5c2e6",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3262.566665649414,
- "y": 326.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 3197.3333282470703,
+ "y": 342.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "5ed5bf6.6fd244"
+ "eadcd586.811458"
]
]
},
{
- "id": "5ed5bf6.6fd244",
+ "id": "eadcd586.811458",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 3442.566665649414,
- "y": 326.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 3377.3333282470703,
+ "y": 342.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "41f5506e.8f5aa"
+ "21c0e3fe.82515c"
]
]
},
{
- "id": "99ef6a45.9ad878",
+ "id": "d8bf1877.11fa58",
"type": "for",
"name": "for each allotted-resource relationship",
"xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 868.5666656494141,
- "y": 710.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 803.3333282470703,
+ "y": 726.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "99689150.5b9778"
+ "a6f98a69.92187"
]
]
},
{
- "id": "99689150.5b9778",
+ "id": "a6f98a69.92187",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1139.566665649414,
- "y": 706.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1074.3333282470703,
+ "y": 722.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "5c4d87c2.cacd08"
+ "47d4cad8.17d52c"
]
]
},
{
- "id": "2bf740bc.b587b",
+ "id": "a15de96b.529998",
"type": "outcome",
"name": "network-policy",
"xml": "<outcome value='network-policy'>\n",
"comments": "",
"outputs": 1,
- "x": 3418.566665649414,
- "y": 524.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 3353.3333282470703,
+ "y": 540.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "3a3c2a70.68a7ee"
+ "d0adfe64.da86a8"
]
]
},
{
- "id": "3a3c2a70.68a7ee",
+ "id": "d0adfe64.da86a8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 3595.5665435791016,
- "y": 517.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 3530.333206176758,
+ "y": 533.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e9454f9d.caf03",
- "6d43a86.3d48758"
+ "d9045bb1.a62d4",
+ "d7d4dfac.f8ef88"
]
]
},
{
- "id": "e9454f9d.caf03",
+ "id": "d9045bb1.a62d4",
"type": "set",
"name": "set the 1st network-policy-id",
"xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",
"comments": "",
- "x": 3838.5665435791016,
- "y": 474.56654357910156,
- "z": "25a21122.0e2cfe",
+ "x": 3773.333206176758,
+ "y": 490.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "6d43a86.3d48758",
+ "id": "d7d4dfac.f8ef88",
"type": "save",
"name": "get network-policy from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",
"comments": "",
"outputs": 1,
- "x": 3827.5665435791016,
- "y": 529.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 3762.333206176758,
+ "y": 545.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8a364a72.424c28",
- "fd07ec43.4387a",
- "4d3c4393.f4c224"
+ "641b6dc1.ae62a4",
+ "e8473ac4.f5e678",
+ "d854cd7f.05151"
]
]
},
{
- "id": "4d3c4393.f4c224",
+ "id": "d854cd7f.05151",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 4080.566665649414,
- "y": 415.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 4015.3333282470703,
+ "y": 431.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8a48cdf4.281a78"
+ "d89f7cfd.a998c"
]
]
},
{
- "id": "8a48cdf4.281a78",
+ "id": "d89f7cfd.a998c",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 4229.138198852539,
- "y": 415.85243225097656,
- "z": "25a21122.0e2cfe",
+ "x": 4163.904861450195,
+ "y": 431.6191101074219,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "81c305db.010dc",
+ "id": "40195b62.cb5874",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 4228.075698852539,
- "y": 459.99269104003906,
- "z": "25a21122.0e2cfe",
+ "x": 4162.842361450195,
+ "y": 475.7593688964844,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "fd07ec43.4387a",
+ "id": "e8473ac4.f5e678",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4069.075698852539,
- "y": 459.99269104003906,
- "z": "25a21122.0e2cfe",
+ "x": 4003.8423614501953,
+ "y": 475.7593688964844,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "81c305db.010dc"
+ "40195b62.cb5874"
]
]
},
{
- "id": "8a364a72.424c28",
+ "id": "641b6dc1.ae62a4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4076.075698852539,
- "y": 538.9926910400391,
- "z": "25a21122.0e2cfe",
+ "x": 4010.8423614501953,
+ "y": 554.7593688964844,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "41b3b67d.c6f8e8"
+ "cfb2b016.ca50d"
]
]
},
{
- "id": "41b3b67d.c6f8e8",
+ "id": "cfb2b016.ca50d",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4215.075698852539,
- "y": 538.9926910400391,
- "z": "25a21122.0e2cfe",
+ "x": 4149.842361450195,
+ "y": 554.7593688964844,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "f0091688.66654",
- "4f7a1356.449274"
+ "4e1d40ab.8f7c48",
+ "6ab22d0b.607efc"
]
]
},
{
- "id": "f0091688.66654",
+ "id": "4e1d40ab.8f7c48",
"type": "set",
"name": "set the max bandwidth",
"xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",
"comments": "",
- "x": 4420.566665649414,
- "y": 536.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4355.33332824707,
+ "y": 552.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "6ff01134.d27b1",
+ "id": "77da836c.7c453c",
"type": "execute",
"name": "execute split tp-id to get pnf-name",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA-pnfName\"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 4942.566665649414,
- "y": 718.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4877.33332824707,
+ "y": 734.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "39467319.609964",
- "3cc969fb.c20abe"
+ "f644ca88.cc84",
+ "e4420296.1dde4"
]
]
},
{
- "id": "3cc969fb.c20abe",
+ "id": "e4420296.1dde4",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5165.566665649414,
- "y": 704.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5100.33332824707,
+ "y": 720.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "2dfb867b.202c62"
+ "1b75d3d5.946174"
]
]
},
{
- "id": "39467319.609964",
+ "id": "f644ca88.cc84",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 5167.566665649414,
- "y": 737.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5102.33332824707,
+ "y": 753.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "fb83e9be.2efe"
+ "ccf559e8.ec486"
]
]
},
{
- "id": "fb83e9be.2efe",
+ "id": "ccf559e8.ec486",
"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": 5310.566665649414,
- "y": 734.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5245.33332824707,
+ "y": 750.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "2dfb867b.202c62",
+ "id": "1b75d3d5.946174",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 5313.566665649414,
- "y": 697.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5248.33332824707,
+ "y": 713.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "15d7491f.df8677",
- "965ca101.13418"
+ "a48b4f87.115f58",
+ "eae40c98.29734"
]
]
},
{
- "id": "15d7491f.df8677",
+ "id": "a48b4f87.115f58",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n $param-prefix-domainA-pnfName[1] + '-' +\n $param-prefix-domainA-pnfName[2] + '-' +\n $param-prefix-domainA-pnfName[3] + '-' +\n $param-prefix-domainA-pnfName[4] + '-' +\n $param-prefix-domainA-pnfName[5] + '-' +\n $param-prefix-domainA-pnfName[6] + '-' +\n $param-prefix-domainA-pnfName[7] + '-' +\n $param-prefix-domainA-pnfName[8]`\" />\n",
"comments": "",
- "x": 5475.566665649414,
- "y": 692.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5410.33332824707,
+ "y": 708.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "abe40e95.5db908",
+ "id": "e46caf0e.563478",
"type": "execute",
"name": "execute split tp-id to get pnf-name",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB-pnfName\"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 4956.566665649414,
- "y": 1555.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 4891.33332824707,
+ "y": 1571.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d51c262f.477ec",
- "4509355c.99159c"
+ "970472a2.405aa8",
+ "224c4d4.84eea32"
]
]
},
{
- "id": "4509355c.99159c",
+ "id": "224c4d4.84eea32",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5179.566665649414,
- "y": 1541.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 5114.33332824707,
+ "y": 1557.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d6d3b9d3.95749"
+ "1f5eda96.09790d"
]
]
},
{
- "id": "d51c262f.477ec",
+ "id": "970472a2.405aa8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 5181.566665649414,
- "y": 1574.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 5116.33332824707,
+ "y": 1590.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "41fb7895.687548"
+ "66cb0f3.6d8da7"
]
]
},
{
- "id": "41fb7895.687548",
+ "id": "66cb0f3.6d8da7",
"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": 5324.566665649414,
- "y": 1571.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 5259.33332824707,
+ "y": 1587.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "d6d3b9d3.95749",
+ "id": "1f5eda96.09790d",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 5327.566665649414,
- "y": 1534.5665435791016,
- "z": "25a21122.0e2cfe",
+ "x": 5262.33332824707,
+ "y": 1550.3332214355469,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "dc31fe9c.b39df",
- "22e60879.c39a9"
+ "a035c695.e5c6c8",
+ "ce893d50.59c348"
]
]
},
{
- "id": "dc31fe9c.b39df",
+ "id": "a035c695.e5c6c8",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n $param-prefix-domainB-pnfName[1] + '-' +\n $param-prefix-domainB-pnfName[2] + '-' +\n $param-prefix-domainB-pnfName[3] + '-' +\n $param-prefix-domainB-pnfName[4] + '-' +\n $param-prefix-domainB-pnfName[5] + '-' +\n $param-prefix-domainB-pnfName[6] + '-' +\n $param-prefix-domainB-pnfName[7] + '-' +\n $param-prefix-domainB-pnfName[8]`\" />\n",
"comments": "",
- "x": 5521.566665649414,
- "y": 1537.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5456.33332824707,
+ "y": 1553.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "dd074b01.699d5",
+ "id": "74df18ed.a4e518",
"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' />",
"comments": "",
"outputs": 1,
- "x": 1119.566665649414,
- "y": 241.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1054.3333282470703,
+ "y": 257.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "71b17710.70c14",
+ "id": "2078a502.9da27a",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 5589.566665649414,
- "y": 1288.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5524.33332824707,
+ "y": 1304.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "262b12c7.d4eb86"
+ "34f7a0cd.8f1da"
]
]
},
{
- "id": "262b12c7.d4eb86",
+ "id": "34f7a0cd.8f1da",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 5795.566665649414,
- "y": 1288.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5730.33332824707,
+ "y": 1304.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "5944b4c4.a90d9c"
+ "9675c47c.3f1e28"
]
]
},
{
- "id": "5944b4c4.a90d9c",
+ "id": "9675c47c.3f1e28",
"type": "outcome",
"name": "tunnel-termination-point",
"xml": "<outcome value='tunnel-termination-point'>\n",
"comments": "",
"outputs": 1,
- "x": 6010.852310180664,
- "y": 1288.388442993164,
- "z": "25a21122.0e2cfe",
+ "x": 5945.61897277832,
+ "y": 1304.1551208496094,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "97ca4a46.233f6"
+ "c3bcfe29.7893b"
]
]
},
{
- "id": "97ca4a46.233f6",
+ "id": "c3bcfe29.7893b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6217.683853149414,
- "y": 1288.906997680664,
- "z": "25a21122.0e2cfe",
+ "x": 6152.45051574707,
+ "y": 1304.6736755371094,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "18a90b5a.512eed",
- "9b9213f3.dfc428",
- "21506293.2b15d6"
+ "69e0123c.36df34",
+ "c9b70802.7fae28",
+ "bff980ae.51a118"
]
]
},
{
- "id": "18a90b5a.512eed",
+ "id": "69e0123c.36df34",
"type": "set",
"name": "set source ttp-id",
"xml": "<set>\n<parameter name='tmp.source.ttp-id' value=\"`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 6432.683853149414,
- "y": 1250.906997680664,
- "z": "25a21122.0e2cfe",
+ "x": 6367.45051574707,
+ "y": 1266.6736755371094,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "9b9213f3.dfc428",
+ "id": "c9b70802.7fae28",
"type": "get-resource",
"name": "get-resource src TTP",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.source.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.source-ttp' local-only='false' >\n\n\n",
"comments": "",
"outputs": 1,
- "x": 6429.683853149414,
- "y": 1289.906997680664,
- "z": "25a21122.0e2cfe",
+ "x": 6364.45051574707,
+ "y": 1305.6736755371094,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8cbab548.0454b"
+ "f008b798.fbfc48"
]
]
},
{
- "id": "21506293.2b15d6",
+ "id": "bff980ae.51a118",
"type": "break",
"name": "break",
"xml": "<break>\n",
"comments": "",
- "x": 6385.183853149414,
- "y": 1331.906997680664,
- "z": "25a21122.0e2cfe",
+ "x": 6319.95051574707,
+ "y": 1347.6736755371094,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "8cbab548.0454b",
+ "id": "f008b798.fbfc48",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 6610.183853149414,
- "y": 1288.906997680664,
- "z": "25a21122.0e2cfe",
+ "x": 6544.95051574707,
+ "y": 1304.6736755371094,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "326ba546.7f7e7a"
+ "d5a58693.57d22"
]
]
},
{
- "id": "326ba546.7f7e7a",
+ "id": "d5a58693.57d22",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6768.183853149414,
- "y": 1288.906997680664,
- "z": "25a21122.0e2cfe",
+ "x": 6702.95051574707,
+ "y": 1304.6736755371094,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "49cced3d.6f7764"
+ "396517b4.b44f88"
]
]
},
{
- "id": "49cced3d.6f7764",
+ "id": "396517b4.b44f88",
"type": "set",
"name": "set source tunnel tp ip",
"xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",
"comments": "",
- "x": 6975.183853149414,
- "y": 1288.906997680664,
- "z": "25a21122.0e2cfe",
+ "x": 6909.95051574707,
+ "y": 1304.6736755371094,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "7bc8d59f.6d2444",
+ "id": "a9a1085f.9d214",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 5586.566665649414,
- "y": 2157.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5521.33332824707,
+ "y": 2173.333465576172,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8f6d6d5b.1cead8"
+ "a77b3a4c.0b52a"
]
]
},
{
- "id": "8f6d6d5b.1cead8",
+ "id": "a77b3a4c.0b52a",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 5792.566665649414,
- "y": 2157.5667877197266,
- "z": "25a21122.0e2cfe",
+ "x": 5727.33332824707,
+ "y": 2173.333465576172,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e19b436a.7033d"
+ "db3ff85.e969d08"
]
]
},
{
- "id": "e19b436a.7033d",
+ "id": "db3ff85.e969d08",
"type": "outcome",
"name": "tunnel-termination-point",
"xml": "<outcome value='tunnel-termination-point'>\n",
"comments": "",
"outputs": 1,
- "x": 6007.852310180664,
- "y": 2157.3885650634766,
- "z": "25a21122.0e2cfe",
+ "x": 5942.61897277832,
+ "y": 2173.155242919922,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "bec0ab0f.3e04c8"
+ "9bb2d2a8.a44c98"
]
]
},
{
- "id": "bec0ab0f.3e04c8",
+ "id": "9bb2d2a8.a44c98",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6214.683853149414,
- "y": 2157.9071197509766,
- "z": "25a21122.0e2cfe",
+ "x": 6149.45051574707,
+ "y": 2173.673797607422,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "27fbcba1.3d3b74",
- "ceb087f2.f1a2d",
- "f5af142d.56f9a8"
+ "c3db954c.458008",
+ "bccacc6d.699c5",
+ "cc6698ed.a3038"
]
]
},
{
- "id": "27fbcba1.3d3b74",
+ "id": "c3db954c.458008",
"type": "set",
"name": "set destination ttp-id",
"xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 6429.683853149414,
- "y": 2119.9071197509766,
- "z": "25a21122.0e2cfe",
+ "x": 6364.45051574707,
+ "y": 2135.673797607422,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ceb087f2.f1a2d",
+ "id": "bccacc6d.699c5",
"type": "get-resource",
"name": "get-resource src TTP",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.destination.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",
"comments": "",
"outputs": 1,
- "x": 6426.683853149414,
- "y": 2158.9071197509766,
- "z": "25a21122.0e2cfe",
+ "x": 6361.45051574707,
+ "y": 2174.673797607422,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "3dd2b911.678516"
+ "534b81c9.17a2c"
]
]
},
{
- "id": "f5af142d.56f9a8",
+ "id": "cc6698ed.a3038",
"type": "break",
"name": "break",
"xml": "<break>\n",
"comments": "",
- "x": 6382.183853149414,
- "y": 2200.9071197509766,
- "z": "25a21122.0e2cfe",
+ "x": 6316.95051574707,
+ "y": 2216.673797607422,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "3dd2b911.678516",
+ "id": "534b81c9.17a2c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 6607.183853149414,
- "y": 2157.9071197509766,
- "z": "25a21122.0e2cfe",
+ "x": 6541.95051574707,
+ "y": 2173.673797607422,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "2d748944.5ecffe"
+ "faa75b91.1af87"
]
]
},
{
- "id": "2d748944.5ecffe",
+ "id": "faa75b91.1af87",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6765.183853149414,
- "y": 2157.9071197509766,
- "z": "25a21122.0e2cfe",
+ "x": 6699.95051574707,
+ "y": 2173.673797607422,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "6570963f.999c3"
+ "ba3c4c7d.18cfc"
]
]
},
{
- "id": "6570963f.999c3",
+ "id": "ba3c4c7d.18cfc",
"type": "set",
"name": "set destination tunnel tp ip",
"xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",
"comments": "",
- "x": 6972.183853149414,
- "y": 2157.9071197509766,
- "z": "25a21122.0e2cfe",
+ "x": 6906.95051574707,
+ "y": 2173.673797607422,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "965ca101.13418",
+ "id": "eae40c98.29734",
"type": "get-resource",
"name": "get-resource src pnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 5502.566665649414,
- "y": 764.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5437.33332824707,
+ "y": 780.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "50b56074.398fb8",
- "37713986.ac02f6",
- "9d9c191d.f7c08"
+ "6fc687f8.9a3218",
+ "d8b6607b.4ee438",
+ "5c6d770a.c0fbc8"
]
]
},
{
- "id": "50b56074.398fb8",
+ "id": "6fc687f8.9a3218",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5698.066787719727,
- "y": 716.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5632.833450317383,
+ "y": 732.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e3c2a355.360d3"
+ "ee2e2b2e.648d3"
]
]
},
{
- "id": "37713986.ac02f6",
+ "id": "d8b6607b.4ee438",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5690.066787719727,
- "y": 771.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5624.833450317383,
+ "y": 787.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "f545ca2e.f44db"
+ "7003cbf4.1f7a3c"
]
]
},
{
- "id": "9d9c191d.f7c08",
+ "id": "5c6d770a.c0fbc8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5695.066787719727,
- "y": 828.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5629.833450317383,
+ "y": 844.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e48b21a8.d61508"
+ "4cd59828.2f4188"
]
]
},
{
- "id": "e48b21a8.d61508",
+ "id": "4cd59828.2f4188",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 5847.066787719727,
- "y": 829.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5781.833450317383,
+ "y": 845.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "f545ca2e.f44db",
+ "id": "7003cbf4.1f7a3c",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 5858.066787719727,
- "y": 774.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5792.833450317383,
+ "y": 790.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "e3c2a355.360d3",
+ "id": "ee2e2b2e.648d3",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5842.449111938477,
- "y": 714.2223358154297,
- "z": "25a21122.0e2cfe",
+ "x": 5777.215774536133,
+ "y": 729.989013671875,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "206fadad.185672"
+ "76f14509.f7c67c"
]
]
},
{
- "id": "16b234e1.30a8c3",
+ "id": "85f22617.8c77a",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 6424.566665649414,
- "y": 732.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6359.33332824707,
+ "y": 748.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e787bf98.1dda3"
+ "ee84357b.71ae88"
]
]
},
{
- "id": "e787bf98.1dda3",
+ "id": "ee84357b.71ae88",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6601.566665649414,
- "y": 724.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6536.33332824707,
+ "y": 740.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "71a48553.06547c",
- "92b1873d.551bc"
+ "cd9128cb.f1f28",
+ "e38e7099.4c1268"
]
]
},
{
- "id": "206fadad.185672",
+ "id": "76f14509.f7c67c",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 6026.566665649414,
- "y": 728.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 5961.33332824707,
+ "y": 744.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "69c3e96a.358898"
+ "c8a88cd4.d8034"
]
]
},
{
- "id": "69c3e96a.358898",
+ "id": "c8a88cd4.d8034",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 6221.566665649414,
- "y": 728.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6156.33332824707,
+ "y": 744.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "16b234e1.30a8c3",
- "90deb9f8.a72b18"
+ "85f22617.8c77a",
+ "bf124b63.5099c"
]
]
},
{
- "id": "71a48553.06547c",
+ "id": "cd9128cb.f1f28",
"type": "set",
"name": "set esr-thirdparty-sdnc domainA id",
"xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 6839.566665649414,
- "y": 679.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6774.33332824707,
+ "y": 695.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "3b96c7df.05e2",
+ "id": "60adc82e.ec907",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 7019.566665649414,
- "y": 722.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6954.33332824707,
+ "y": 738.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "6f8ea6fb.24df1"
+ "dbbdd720.ee73d"
]
]
},
{
- "id": "1eec19a2.07645e",
+ "id": "ef6befb7.25ec38",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 7011.566665649414,
- "y": 777.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6946.33332824707,
+ "y": 793.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "91f5de57.10361"
+ "3ad0c537.936882"
]
]
},
{
- "id": "b1213bca.c3532",
+ "id": "2514309d.ea219",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 7016.566665649414,
- "y": 834.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6951.33332824707,
+ "y": 850.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "62327f7e.aacf68"
+ "2203278b.ee8d48"
]
]
},
{
- "id": "62327f7e.aacf68",
+ "id": "2203278b.ee8d48",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 7168.566665649414,
- "y": 835.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 7103.33332824707,
+ "y": 851.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "91f5de57.10361",
+ "id": "3ad0c537.936882",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 7179.566665649414,
- "y": 780.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 7114.33332824707,
+ "y": 796.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "6f8ea6fb.24df1",
+ "id": "dbbdd720.ee73d",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 7163.948989868164,
- "y": 720.2223358154297,
- "z": "25a21122.0e2cfe",
+ "x": 7098.71565246582,
+ "y": 735.989013671875,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "10e59332.2edbc5"
+ "3a2f5b08.ae9d74"
]
]
},
{
- "id": "10e59332.2edbc5",
+ "id": "3a2f5b08.ae9d74",
"type": "set",
"name": "set controller domainA data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
"comments": "",
- "x": 7378.566665649414,
- "y": 716.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 7313.33332824707,
+ "y": 732.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "22e60879.c39a9",
+ "id": "ce893d50.59c348",
"type": "get-resource",
"name": "get-resource src pnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n pfx='tmp.aai.destination-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 5543.566665649414,
- "y": 1605.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5478.33332824707,
+ "y": 1621.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "3be38b30.4b1f64",
- "53e462a7.300ecc",
- "be7dfbd6.3bfbb"
+ "11d6f276.27b5f6",
+ "da24ed5d.ec28b8",
+ "60f19c6c.a06434"
]
]
},
{
- "id": "3be38b30.4b1f64",
+ "id": "11d6f276.27b5f6",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5739.066787719727,
- "y": 1557.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5673.833450317383,
+ "y": 1573.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "3d4c22c4.8bc33e"
+ "888d9251.ae059"
]
]
},
{
- "id": "53e462a7.300ecc",
+ "id": "da24ed5d.ec28b8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5731.066787719727,
- "y": 1612.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5665.833450317383,
+ "y": 1628.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "cc499006.fb3a6"
+ "6f593c1a.aa4654"
]
]
},
{
- "id": "be7dfbd6.3bfbb",
+ "id": "60f19c6c.a06434",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5736.066787719727,
- "y": 1669.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5670.833450317383,
+ "y": 1685.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "95cfda12.13aa08"
+ "9d43ea5b.7c699"
]
]
},
{
- "id": "95cfda12.13aa08",
+ "id": "9d43ea5b.7c699",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 5888.066787719727,
- "y": 1670.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5822.833450317383,
+ "y": 1686.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "cc499006.fb3a6",
+ "id": "6f593c1a.aa4654",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 5899.066787719727,
- "y": 1615.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5833.833450317383,
+ "y": 1631.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "3d4c22c4.8bc33e",
+ "id": "888d9251.ae059",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5883.449111938477,
- "y": 1555.2223358154297,
- "z": "25a21122.0e2cfe",
+ "x": 5818.215774536133,
+ "y": 1570.989013671875,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "7d552eed.53cb2"
+ "ca25d5e8.786f18"
]
]
},
{
- "id": "6ebd5273.de974c",
+ "id": "ad6fdb4e.87cfb",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 6465.566665649414,
- "y": 1573.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6400.33332824707,
+ "y": 1589.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d2cb326b.2ce928"
+ "4ceff195.e94608"
]
]
},
{
- "id": "d2cb326b.2ce928",
+ "id": "4ceff195.e94608",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6642.566665649414,
- "y": 1565.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6577.33332824707,
+ "y": 1581.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "afdd7500.c5c358",
- "995d487d.d5b57"
+ "d9a17cf0.5ffca8",
+ "76506084.c842f8"
]
]
},
{
- "id": "7d552eed.53cb2",
+ "id": "ca25d5e8.786f18",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 6067.566665649414,
- "y": 1569.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6002.33332824707,
+ "y": 1585.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "6d34d717.589238"
+ "52693a86.8017bc"
]
]
},
{
- "id": "6d34d717.589238",
+ "id": "52693a86.8017bc",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 6262.566665649414,
- "y": 1569.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6197.33332824707,
+ "y": 1585.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "6ebd5273.de974c",
- "9bbf0d49.94213"
+ "ad6fdb4e.87cfb",
+ "6c3438b4.5be28"
]
]
},
{
- "id": "995d487d.d5b57",
+ "id": "76506084.c842f8",
"type": "execute",
"name": "get 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.domainB.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 6850.566665649414,
- "y": 1572.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6785.33332824707,
+ "y": 1588.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "bb91f7ce.3ad978",
- "8e3f2e93.c1d45",
- "c8e3caf1.3f9eb8"
+ "aefba90d.b82758",
+ "3df8e74b.556d28",
+ "a16ee96.560b218"
]
]
},
{
- "id": "afdd7500.c5c358",
+ "id": "d9a17cf0.5ffca8",
"type": "set",
"name": "set esr-thirdparty-sdnc domainB id",
"xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 6880.566665649414,
- "y": 1520.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6815.33332824707,
+ "y": 1536.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "bb91f7ce.3ad978",
+ "id": "aefba90d.b82758",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 7060.566665649414,
- "y": 1563.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6995.33332824707,
+ "y": 1579.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ced1d2ca.c0f7c"
+ "3639d79a.d4db38"
]
]
},
{
- "id": "8e3f2e93.c1d45",
+ "id": "3df8e74b.556d28",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 7052.566665649414,
- "y": 1618.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6987.33332824707,
+ "y": 1634.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "20b91ac9.f7bb0e"
+ "185761cf.ebd5ee"
]
]
},
{
- "id": "c8e3caf1.3f9eb8",
+ "id": "a16ee96.560b218",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 7057.566665649414,
- "y": 1675.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6992.33332824707,
+ "y": 1691.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "625c69e0.19da8"
+ "6f08e25f.8ff0f4"
]
]
},
{
- "id": "625c69e0.19da8",
+ "id": "6f08e25f.8ff0f4",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 7209.566665649414,
- "y": 1676.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 7144.33332824707,
+ "y": 1692.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "20b91ac9.f7bb0e",
+ "id": "185761cf.ebd5ee",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 7220.566665649414,
- "y": 1621.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 7155.33332824707,
+ "y": 1637.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ced1d2ca.c0f7c",
+ "id": "3639d79a.d4db38",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 7204.948989868164,
- "y": 1561.2223358154297,
- "z": "25a21122.0e2cfe",
+ "x": 7139.71565246582,
+ "y": 1576.989013671875,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "483f20c0.02d49"
+ "27770afe.2fe37e"
]
]
},
{
- "id": "483f20c0.02d49",
+ "id": "27770afe.2fe37e",
"type": "set",
"name": "set controller domainB data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
"comments": "",
- "x": 7419.566665649414,
- "y": 1557.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 7354.33332824707,
+ "y": 1573.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "24772c6a.a8483c",
+ "id": "b6502203.02c108",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 416.56666564941406,
- "y": 686.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 351.3333282470703,
+ "y": 702.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "3dd61cc7.9b7d74",
- "99ef6a45.9ad878"
+ "ae72f64.7ced288",
+ "d8bf1877.11fa58"
]
]
},
{
- "id": "3dd61cc7.9b7d74",
+ "id": "ae72f64.7ced288",
"type": "for",
"name": "for each allotted-resource relationship",
"xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 862.5666656494141,
- "y": 545.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 797.3333282470703,
+ "y": 561.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "51cf951b.e925c4"
+ "56a6a6ce.1c9e38"
]
]
},
{
- "id": "51cf951b.e925c4",
+ "id": "56a6a6ce.1c9e38",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 3227.566665649414,
- "y": 527.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 3162.3333282470703,
+ "y": 543.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "2bf740bc.b587b"
+ "a15de96b.529998"
]
]
},
{
- "id": "90deb9f8.a72b18",
+ "id": "bf124b63.5099c",
"type": "outcome",
"name": "network-resource",
"xml": "<outcome value='network-resource'>",
"comments": "",
"outputs": 1,
- "x": 6427.566665649414,
- "y": 806.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6362.33332824707,
+ "y": 822.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d620e654.6255c"
+ "cf9d9db9.ed34d8"
]
]
},
{
- "id": "d620e654.6255c",
+ "id": "cf9d9db9.ed34d8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6604.566665649414,
- "y": 798.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6539.33332824707,
+ "y": 814.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "4397af3f.dc85e"
+ "e093ed3f.1bfe98"
]
]
},
{
- "id": "4397af3f.dc85e",
+ "id": "e093ed3f.1bfe98",
"type": "set",
"name": "set domainA ethernet layer network-id",
"xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 6839.566665649414,
- "y": 922.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 6774.33332824707,
+ "y": 938.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "40a79108.ee4848",
+ "id": "f8b7be24.4e873",
"type": "set",
"name": "set domainB ethernet layer network-id",
"xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 6879.566665649414,
- "y": 1762.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6814.33332824707,
+ "y": 1778.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "607a3e65.d46208",
+ "id": "796da710.8b0ab8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6644.566665649414,
- "y": 1638.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6579.33332824707,
+ "y": 1654.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "40a79108.ee4848"
+ "f8b7be24.4e873"
]
]
},
{
- "id": "9bbf0d49.94213",
+ "id": "6c3438b4.5be28",
"type": "outcome",
"name": "network-resource",
"xml": "<outcome value='network-resource'>",
"comments": "",
"outputs": 1,
- "x": 6467.566665649414,
- "y": 1646.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6402.33332824707,
+ "y": 1662.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "607a3e65.d46208"
+ "796da710.8b0ab8"
]
]
},
{
- "id": "4f7a1356.449274",
+ "id": "6ab22d0b.607efc",
"type": "set",
"name": "set the max bandwidth",
"xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",
"comments": "",
- "x": 4419.566665649414,
- "y": 582.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4354.33332824707,
+ "y": 598.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "d1460a52.2dc398",
+ "id": "45cbb167.26c3e8",
"type": "execute",
"name": "execute UUID generator for ethernet-service-name",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",
"comments": "",
"outputs": 1,
- "x": 4441.566665649414,
- "y": 717.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4376.33332824707,
+ "y": 733.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "96f11e74.5cf9",
+ "id": "586bfbbd.46cc14",
"type": "execute",
"name": "execute UUID generator for otn-tunnel-name",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",
"comments": "",
"outputs": 1,
- "x": 4422.566665649414,
- "y": 767.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4357.33332824707,
+ "y": 783.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "f0cde51e.fc048",
+ "id": "5c997953.c5b528",
"type": "for",
"name": "for each allotted-resource",
"xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 2032.566665649414,
- "y": 315.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1967.3333282470703,
+ "y": 331.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "fe22e044.99d4c8",
- "103cc7a8.7e9b88"
+ "e42627f6.b8767",
+ "b14c900.06de0f"
]
]
},
{
- "id": "fe22e044.99d4c8",
+ "id": "e42627f6.b8767",
"type": "set",
"name": "set the current allotted-resource-id",
"xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",
"comments": "",
- "x": 2297.566665649414,
- "y": 238.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2232.3333282470703,
+ "y": 254.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "7c9d6be0.59e3fc",
+ "id": "9446dea5.335408",
"type": "set",
"name": "set query_param",
"xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",
"comments": "",
- "x": 4339.566665649414,
- "y": 2217.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4274.33332824707,
+ "y": 2233.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "5f01b0d6.663678",
+ "id": "adfb9d4f.ef8fd8",
"type": "set",
"name": "unset parameters",
"xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",
"comments": "",
- "x": 4322.566665649414,
- "y": 3975.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4257.33332824707,
+ "y": 3991.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "32dd1d69.d1982a",
+ "id": "2a7b5024.c32ac8",
"type": "set",
"name": "set new ethernet-service-name",
"xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",
"comments": "",
- "x": 4379.566665649414,
- "y": 812.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 4314.33332824707,
+ "y": 828.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "fefb165c.6d9d48",
+ "id": "e65eb704.1a5ee",
"type": "for",
"name": "for vidx..tmp.otninfo_length[]",
"xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",
"comments": "",
"outputs": 1,
- "x": 4368.566665649414,
- "y": 2457.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4303.33332824707,
+ "y": 2473.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "15c5a249.e6ba26"
+ "70d68732.b14c"
]
]
},
{
- "id": "1531085f.c55ba",
+ "id": "9fe431f7.1a7068",
"type": "save",
"name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\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`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",
"comments": "",
"outputs": 1,
- "x": 5496.566665649414,
- "y": 2964.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5431.33332824707,
+ "y": 2980.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "fcadaec7.4e387"
+ "9da9527c.fe7dd"
]
]
},
{
- "id": "24f90323.65c334",
+ "id": "36a781af.2ddb3e",
"type": "save",
"name": "save connectivity-A relationship to vpn-binding-A, in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \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/' + $uuid.connectivity-domainA-uuid`\" />\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=\"`$uuid.connectivity-domainA-uuid`\" />",
"comments": "",
"outputs": 1,
- "x": 6069.066665649414,
- "y": 3068.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6003.83332824707,
+ "y": 3084.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "fcadaec7.4e387",
+ "id": "9da9527c.fe7dd",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5802.566665649414,
- "y": 2963.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5737.33332824707,
+ "y": 2979.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "47fc66cf.f2219"
+ "3d5ff1a1.a7195e"
]
]
},
{
- "id": "47fc66cf.f2219",
+ "id": "3d5ff1a1.a7195e",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 6012.066665649414,
- "y": 2963.820571899414,
- "z": "25a21122.0e2cfe",
+ "x": 5946.83332824707,
+ "y": 2979.5872497558594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "e4910759.e9a85",
+ "id": "dfe4a3e1.5f7a28",
"type": "execute",
"name": "execute UUID generator for vpn-binding $otnidx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",
"comments": "",
"outputs": 1,
- "x": 5532.566665649414,
- "y": 2428.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5467.33332824707,
+ "y": 2444.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "19efb26.3a5054e",
+ "id": "d4a2c427.226738",
"type": "switchNode",
"name": "switch otnidx == 0",
"xml": "<switch test='`$otnidx == 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 5405.566665649414,
- "y": 3081.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5340.33332824707,
+ "y": 3097.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "6ac91bae.a4e2fc",
- "f696dd3e.08c3d"
+ "e5869a7d.a035e8",
+ "4f7fb15.bbc855"
]
]
},
{
- "id": "6ac91bae.a4e2fc",
+ "id": "e5869a7d.a035e8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 5588.566665649414,
- "y": 3081.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5523.33332824707,
+ "y": 3097.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "5559f5ba.2a16b4"
+ "11b27338.362ff5"
]
]
},
{
- "id": "f696dd3e.08c3d",
+ "id": "4f7fb15.bbc855",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 5413.566665649414,
- "y": 3228.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5348.33332824707,
+ "y": 3244.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "16a87f5a.f1d3a9"
+ "5e731523.edaba4"
]
]
},
{
- "id": "b74045ae.325b78",
+ "id": "df75995c.9d6d7",
"type": "switchNode",
"name": "switch otnidx == last",
"xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",
"comments": "",
"outputs": 1,
- "x": 5754.566665649414,
- "y": 3309.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5689.33332824707,
+ "y": 3325.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "93c212f0.0f2258",
- "d060ce07.272bc8"
+ "8d4f5504.9d4348",
+ "dc78732e.2c80d8"
]
]
},
{
- "id": "93c212f0.0f2258",
+ "id": "8d4f5504.9d4348",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 5939.566665649414,
- "y": 3310.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5874.33332824707,
+ "y": 3326.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8ce15cd2.dd2d"
+ "48ad14bc.45fb34"
]
]
},
{
- "id": "d060ce07.272bc8",
+ "id": "dc78732e.2c80d8",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 5958.566665649414,
- "y": 3576.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5893.33332824707,
+ "y": 3592.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "1b72857d.e58193"
+ "1d8019eb.b8f316"
]
]
},
{
- "id": "a4b93978.557f9",
+ "id": "c9167223.c48c5",
"type": "save",
"name": "save connectivity-B relationship to vpn-binding-B, in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \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/' + $prop.connectivity-domainB-uuid`\" />\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=\"`$prop.connectivity-domainB-uuid`\" />",
"comments": "",
"outputs": 1,
- "x": 6369.566665649414,
- "y": 3311.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6304.33332824707,
+ "y": 3327.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "c7b0c40a.9c6038",
+ "id": "82593f3c.44e9a",
"type": "execute",
"name": "execute UUID generator for connectivity domain otnidx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",
"comments": "",
"outputs": 1,
- "x": 6443.566665649414,
- "y": 3609.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6378.33332824707,
+ "y": 3625.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "689f50a5.dff04",
+ "id": "a5aff8c7.dcc0d",
"type": "save",
"name": "save connectivity resource in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\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`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
"comments": "",
"outputs": 1,
- "x": 6379.566665649414,
- "y": 3660.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6314.33332824707,
+ "y": 3676.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "67d0e07e.cd61f8",
+ "id": "48179575.56acdc",
"type": "save",
"name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \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/' + $uuid.connectivity-otnidx-uuid`\" />\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=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\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/' + $prop.sotn.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=\"`$prop.sotn.network-id`\" />-->",
"comments": "",
"outputs": 1,
- "x": 6508.566665649414,
- "y": 3710.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6443.33332824707,
+ "y": 3726.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "8bcc08c5.9c4d7",
+ "id": "4fc515a8.51d2e4",
"type": "comment",
"name": "connectivity has not been created for middle domains, so we have to create one",
"info": "",
"comments": "",
- "x": 6518.566665649414,
- "y": 3553.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6453.33332824707,
+ "y": 3569.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "64006ab7.c64d44",
+ "id": "c0955063.7c75f",
"type": "save",
"name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \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/' + $uuid.connectivity-otnidx-uuid`\" />\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=\"`$uuid.connectivity-otnidx-uuid`\" />",
"comments": "",
"outputs": 1,
- "x": 6476.566665649414,
- "y": 3769.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6411.33332824707,
+ "y": 3785.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "1b72857d.e58193",
+ "id": "1d8019eb.b8f316",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 6115.566665649414,
- "y": 3577.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6050.33332824707,
+ "y": 3593.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "c7b0c40a.9c6038",
- "689f50a5.dff04",
- "67d0e07e.cd61f8",
- "64006ab7.c64d44",
- "9642c24b.bc1f8"
+ "82593f3c.44e9a",
+ "a5aff8c7.dcc0d",
+ "48179575.56acdc",
+ "c0955063.7c75f",
+ "ab63214f.ab52e"
]
]
},
{
- "id": "15c5a249.e6ba26",
+ "id": "70d68732.b14c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4625.566665649414,
- "y": 2457.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4560.33332824707,
+ "y": 2473.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e4910759.e9a85",
- "1531085f.c55ba",
- "19efb26.3a5054e",
- "ad7dc399.bf418",
- "59469467.70a6d4",
- "982e5c66.4703f8",
- "e9c05ada.bb249"
+ "dfe4a3e1.5f7a28",
+ "9fe431f7.1a7068",
+ "d4a2c427.226738",
+ "6c1ad513.ca11a4",
+ "ddb6267f.2382f",
+ "39bce85.43eb118",
+ "e250e406.45b0b8"
]
]
},
{
- "id": "b962e9bf.f7ec68",
+ "id": "7dffa406.706e6c",
"type": "set",
"name": "set attachment_param domain A",
"xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",
"comments": "",
- "x": 5993.566665649414,
- "y": 3125.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5928.33332824707,
+ "y": 3141.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "7f4b2d0d.ab9d0c",
+ "id": "7214f15c.14004",
"type": "execute",
"name": "execute RestApiCallNode domainA UNI Coloring",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-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": 6046.566665649414,
- "y": 3169.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5981.33332824707,
+ "y": 3185.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d0a8f560.124258",
- "e919fb8f.48aeb"
+ "d7742ed9.525e08",
+ "f96706f6.1edf38"
]
]
},
{
- "id": "e919fb8f.48aeb",
+ "id": "f96706f6.1edf38",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 6317.566665649414,
- "y": 3154.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6252.33332824707,
+ "y": 3170.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "408ad253.15a054"
+ "70a27353.90bdbc"
]
]
},
{
- "id": "d0a8f560.124258",
+ "id": "d7742ed9.525e08",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 6315.566879272461,
- "y": 3212.566575050354,
- "z": "25a21122.0e2cfe",
+ "x": 6250.333541870117,
+ "y": 3228.3332529067993,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "bfaa06ad.2149c"
+ "eb2a823e.260b78"
]
]
},
{
- "id": "408ad253.15a054",
+ "id": "70a27353.90bdbc",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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 UNI Coloring for domain A\" />\n",
"comments": "",
- "x": 6457.566913604736,
- "y": 3154.5666666030884,
- "z": "25a21122.0e2cfe",
+ "x": 6392.333576202393,
+ "y": 3170.3333444595337,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "bfaa06ad.2149c",
+ "id": "eb2a823e.260b78",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 6463.593925476074,
- "y": 3203.31206035614,
- "z": "25a21122.0e2cfe",
+ "x": 6398.3605880737305,
+ "y": 3219.0787382125854,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "5559f5ba.2a16b4",
+ "id": "11b27338.362ff5",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5729.566665649414,
- "y": 3071.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5664.33332824707,
+ "y": 3087.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "24f90323.65c334",
- "7f4b2d0d.ab9d0c",
- "b962e9bf.f7ec68"
+ "36a781af.2ddb3e",
+ "7dffa406.706e6c"
]
]
},
{
- "id": "8ce15cd2.dd2d",
+ "id": "48ad14bc.45fb34",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 6073.566665649414,
- "y": 3311.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6008.33332824707,
+ "y": 3327.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "a4b93978.557f9",
- "fc367338.14f248",
- "546374c7.67c9c4"
+ "c9167223.c48c5",
+ "c8df83a3.bc227"
]
]
},
{
- "id": "546374c7.67c9c4",
+ "id": "c8df83a3.bc227",
"type": "set",
"name": "set attachment_param domain B",
"xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",
"comments": "",
- "x": 6293.566665649414,
- "y": 3355.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6228.33332824707,
+ "y": 3371.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "fc367338.14f248",
+ "id": "d358673f.8a632",
"type": "execute",
"name": "execute RestApiCallNode domainB UNI Coloring",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-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": 6344.566665649414,
- "y": 3399.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6279.33332824707,
+ "y": 3415.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "edc516eb.d6818",
- "889681a1.8aebb"
+ "c74c0688.e153c8",
+ "bbe92e0a.776158"
]
]
},
{
- "id": "889681a1.8aebb",
+ "id": "bbe92e0a.776158",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 6607.566665649414,
- "y": 3379.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6542.33332824707,
+ "y": 3395.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "b62983f6.8b1c68"
+ "745303bf.c36e14"
]
]
},
{
- "id": "edc516eb.d6818",
+ "id": "c74c0688.e153c8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 6608.566879272461,
- "y": 3430.566575050354,
- "z": "25a21122.0e2cfe",
+ "x": 6543.333541870117,
+ "y": 3446.3332529067993,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "51aaba5d.abae2c"
+ "16fe3b7.bef5ac5"
]
]
},
{
- "id": "b62983f6.8b1c68",
+ "id": "745303bf.c36e14",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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 UNI coloring for domain B\" />\n",
"comments": "",
- "x": 6747.566913604736,
- "y": 3379.5666666030884,
- "z": "25a21122.0e2cfe",
+ "x": 6682.333576202393,
+ "y": 3395.3333444595337,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "51aaba5d.abae2c",
+ "id": "16fe3b7.bef5ac5",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 6753.593925476074,
- "y": 3428.31206035614,
- "z": "25a21122.0e2cfe",
+ "x": 6688.3605880737305,
+ "y": 3444.0787382125854,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "9642c24b.bc1f8",
+ "id": "ab63214f.ab52e",
"type": "set",
"name": "set attachment_param domain otnidx",
"xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
"comments": "",
- "x": 6390.566665649414,
- "y": 3829.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6325.33332824707,
+ "y": 3845.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "127eaa7a.98449e",
+ "id": "758165ab.6ede0c",
"type": "save",
"name": "get all-vpn-bindings from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",
"comments": "",
"outputs": 1,
- "x": 3709.566665649414,
- "y": 4176.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 3644.3333282470703,
+ "y": 4192.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "4f7f9fac.fe049",
- "7f9abc32.a826f4",
- "58223279.e77444"
+ "342e9d1a.c50cf2",
+ "85e441ba.70e1e",
+ "cd45d3e5.a8a2f"
]
]
},
{
- "id": "4f7f9fac.fe049",
+ "id": "342e9d1a.c50cf2",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3897.566665649414,
- "y": 4189.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 3832.3333282470703,
+ "y": 4205.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "f21f6a6d.7c0b9"
+ "24a9c2eb.e19b9e"
]
]
},
{
- "id": "7f9abc32.a826f4",
+ "id": "85e441ba.70e1e",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3898.057632446289,
- "y": 4235.140701293945,
- "z": "25a21122.0e2cfe",
+ "x": 3832.8242950439453,
+ "y": 4250.907379150391,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "5b9e9e7e.bd3fb8"
+ "abf9be0d.a5d62"
]
]
},
{
- "id": "58223279.e77444",
+ "id": "cd45d3e5.a8a2f",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3895.566665649414,
- "y": 4278.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 3830.3333282470703,
+ "y": 4294.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "81ac9378.5e17c8"
+ "5bf5c027.26df9"
]
]
},
{
- "id": "f21f6a6d.7c0b9",
+ "id": "24a9c2eb.e19b9e",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4070.566665649414,
- "y": 4187.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4005.3333282470703,
+ "y": 4203.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "1562d3ab.607dc4"
+ "5543848d.3b0414"
]
]
},
{
- "id": "5b9e9e7e.bd3fb8",
+ "id": "abf9be0d.a5d62",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 4060.6290435791016,
- "y": 4235.42643737793,
- "z": "25a21122.0e2cfe",
+ "x": 3995.395706176758,
+ "y": 4251.193115234375,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "81ac9378.5e17c8",
+ "id": "5bf5c027.26df9",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 4062.566665649414,
- "y": 4277.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 3997.3333282470703,
+ "y": 4293.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "e781046f.1418e",
+ "id": "b32c7a7e.680c18",
"type": "for",
"name": "for vidx..tmp.otninfo_length[]",
"xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 3698.566665649414,
- "y": 4367.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 3633.3333282470703,
+ "y": 4383.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d5bebf9c.374a9"
+ "e206a705.651b58"
]
]
},
{
- "id": "a7536813.9c6d5",
+ "id": "aad93e89.0d91f",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4508.566665649414,
- "y": 4367.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4443.33332824707,
+ "y": 4383.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "a13486f2.279748"
+ "aa320024.3f29d"
]
]
},
{
- "id": "d852a581.272668",
+ "id": "371672f7.af2966",
"type": "for",
"name": "for vidx..tmp.otninfo_length[]",
"xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 4280.566665649414,
- "y": 4367.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4215.33332824707,
+ "y": 4383.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "a7536813.9c6d5"
+ "aad93e89.0d91f"
]
]
},
{
- "id": "35196fa7.3e82b8",
+ "id": "b7b629ca.699bf",
"type": "set",
"name": "set providerValue",
"xml": "<set>\n<parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />\n<parameter name='found' value='false' />\n\n\n",
"comments": "",
- "x": 5400.566665649414,
- "y": 4134.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5335.33332824707,
+ "y": 4150.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "1b7fbbc1.fdc524",
+ "id": "278fac8.6485754",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",
"comments": "",
- "x": 5702.566665649414,
- "y": 3260.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5637.33332824707,
+ "y": 3276.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "16a87f5a.f1d3a9",
+ "id": "5e731523.edaba4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5537.566665649414,
- "y": 3235.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5472.33332824707,
+ "y": 3251.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "1b7fbbc1.fdc524",
- "b74045ae.325b78"
+ "278fac8.6485754",
+ "df75995c.9d6d7"
]
]
},
{
- "id": "5a4aff44.5be78",
+ "id": "38f52a4e.84a6be",
"type": "set",
"name": "set tmp.arr",
"xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n<parameter name='bwModified' value='false' />\n",
"comments": "",
- "x": 1991.566665649414,
- "y": 265.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1926.3333282470703,
+ "y": 281.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "1562d3ab.607dc4",
+ "id": "5543848d.3b0414",
"type": "for",
"name": "for vpnidx in all-vpn-bindings",
"xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 4299.566665649414,
- "y": 4188.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4234.33332824707,
+ "y": 4204.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "1d7f1d69.47cb1b"
+ "f4fb2913.3f08e8"
]
]
},
{
- "id": "1d7f1d69.47cb1b",
+ "id": "f4fb2913.3f08e8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4514.566665649414,
- "y": 4189.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4449.33332824707,
+ "y": 4205.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "25f755d1.b61592"
+ "b4dc52fa.e41dc8"
]
]
},
{
- "id": "5d5ba3f2.74414c",
+ "id": "59decc03.5b792c",
"type": "for",
"name": "for arridx in tmp.arr",
"xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 5967.566665649414,
- "y": 4109.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5902.33332824707,
+ "y": 4125.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "c853cdfd.dbbe38"
+ "12c019ee.a843ee"
]
]
},
{
- "id": "b4d44dab.0baa88",
+ "id": "97c70d48.16fe38",
"type": "switchNode",
"name": "switch $tmp.arr_length != 0",
"xml": "<switch test='`$tmp.arr_length != 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 5433.566665649414,
- "y": 4189.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5368.33332824707,
+ "y": 4205.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "62eec498.21eadc",
- "978a0072.3fd11"
+ "6bfc5feb.67a1e",
+ "f9517302.701ea"
]
]
},
{
- "id": "62eec498.21eadc",
+ "id": "6bfc5feb.67a1e",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 5629.566665649414,
- "y": 4159.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5564.33332824707,
+ "y": 4175.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "899efa3b.42e148"
+ "8987adcc.4e1008"
]
]
},
{
- "id": "978a0072.3fd11",
+ "id": "f9517302.701ea",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 5630.566665649414,
- "y": 4230.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5565.33332824707,
+ "y": 4246.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "214f2c3d.6d899c"
+ "35a88f3a.b6ac08"
]
]
},
{
- "id": "899efa3b.42e148",
+ "id": "8987adcc.4e1008",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 5780.566665649414,
- "y": 4157.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5715.33332824707,
+ "y": 4173.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "5d5ba3f2.74414c",
- "a601628e.52c128"
+ "59decc03.5b792c",
+ "6882fe7c.6197e8"
]
]
},
{
- "id": "c853cdfd.dbbe38",
+ "id": "12c019ee.a843ee",
"type": "switchNode",
"name": "switch tmp.arr[$arridx] == $providerValue",
"xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",
"comments": "",
"outputs": 1,
- "x": 6258.566665649414,
- "y": 4109.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6193.33332824707,
+ "y": 4125.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "32f1af6e.548f98",
- "aa4fe454.7a4ce"
+ "e5c18223.e30628",
+ "cba25abe.848d6"
]
]
},
{
- "id": "32f1af6e.548f98",
+ "id": "e5c18223.e30628",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 6533.566665649414,
- "y": 4078.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6468.33332824707,
+ "y": 4094.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "811e814b.5875b8"
+ "4b465147.34a4b"
]
]
},
{
- "id": "aa4fe454.7a4ce",
+ "id": "cba25abe.848d6",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 6534.566665649414,
- "y": 4149.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6469.33332824707,
+ "y": 4165.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "989bacbe.4af828"
+ "ace0f3a2.ba867"
]
]
},
{
- "id": "811e814b.5875b8",
+ "id": "4b465147.34a4b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 6684.566665649414,
- "y": 4076.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6619.33332824707,
+ "y": 4092.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "af4f903c.21f488",
- "2d6d2965.4ae4be",
- "e5b6e917.a4d33",
- "1c32b22d.5aadde",
- "1865add8.1adbe2"
+ "2155a1a2.b1abbe",
+ "f005c04e.d898a8",
+ "4fb6d7b7.ecc78",
+ "46824160.b1d988",
+ "1e06ac9b.2a6bc3"
]
]
},
{
- "id": "af4f903c.21f488",
+ "id": "2155a1a2.b1abbe",
"type": "set",
"name": "set found to true",
"xml": "<set>\n<parameter name='found' value='true' />\n\n\n",
"comments": "",
- "x": 6872.566665649414,
- "y": 4036.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6807.33332824707,
+ "y": 4052.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "2d6d2965.4ae4be",
+ "id": "f005c04e.d898a8",
"type": "save",
"name": "store $arridx somewhere in vpn-binding",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx`' />\n\n\n",
"comments": "",
"outputs": 1,
- "x": 6944.566665649414,
- "y": 4081.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6879.33332824707,
+ "y": 4097.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "1865add8.1adbe2",
+ "id": "1e06ac9b.2a6bc3",
"type": "set",
"name": "set twoD arr",
"xml": "<set>\n\n<!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->\n<!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->\n<parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />\n\n",
"comments": "",
- "x": 6859.566665649414,
- "y": 4208.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6794.33332824707,
+ "y": 4224.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "1c32b22d.5aadde",
+ "id": "46824160.b1d988",
"type": "set",
"name": "set sizeOfSliceList",
"xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",
"comments": "",
- "x": 6880.566665649414,
- "y": 4144.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6815.33332824707,
+ "y": 4160.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "214f2c3d.6d899c",
+ "id": "35a88f3a.b6ac08",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 5782.566665649414,
- "y": 4230.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5717.33332824707,
+ "y": 4246.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "2a37cb43.8a38d4",
- "2a56e17b.8d5c2e"
+ "bec1bd98.095008",
+ "6bef5837.fb58f"
]
]
},
{
- "id": "2a37cb43.8a38d4",
+ "id": "bec1bd98.095008",
"type": "save",
"name": "store $arridx somewhere in vpn-binding",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='0' />\n\n\n",
"comments": "",
"outputs": 1,
- "x": 6037.566665649414,
- "y": 4223.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5972.33332824707,
+ "y": 4239.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "2a56e17b.8d5c2e",
+ "id": "6bef5837.fb58f",
"type": "set",
"name": "set twoD array",
"xml": "<set>\n<parameter name='tmp.arr[0]' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='1' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='1' />\n<parameter name='otn-tunnel-slice[0].list_length' value='1' />\n\n",
"comments": "",
- "x": 5965.566665649414,
- "y": 4270.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5900.33332824707,
+ "y": 4286.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "a601628e.52c128",
+ "id": "6882fe7c.6197e8",
"type": "switchNode",
"name": "switch found?",
"xml": "<switch test='`$found`'>\n",
"comments": "",
"outputs": 1,
- "x": 5958.566665649414,
- "y": 4154.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5893.33332824707,
+ "y": 4170.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "38e10d32.2b93c2",
- "dbcc850c.fc8dd"
+ "fe294cd.9421bb",
+ "65b4ebb1.845464"
]
]
},
{
- "id": "38e10d32.2b93c2",
+ "id": "fe294cd.9421bb",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 6118.566665649414,
- "y": 4146.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6053.33332824707,
+ "y": 4162.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "b21401a.fc6228"
+ "e093232d.0ab56"
]
]
},
{
- "id": "dbcc850c.fc8dd",
+ "id": "65b4ebb1.845464",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 6116.566665649414,
- "y": 4183.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6051.33332824707,
+ "y": 4199.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e4683213.00ce18"
+ "ab13fab7.3aabe"
]
]
},
{
- "id": "b21401a.fc6228",
+ "id": "e093232d.0ab56",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 6243.566665649414,
- "y": 4146.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6178.33332824707,
+ "y": 4162.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "a2a7d328.f35de8",
+ "id": "62438f19.a66048",
"type": "save",
"name": "store $arridx+1 somewhere in vpn-binding",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx + 1`' />\n\n\n",
"comments": "",
"outputs": 1,
- "x": 6550.566665649414,
- "y": 4204.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6485.33332824707,
+ "y": 4220.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "e4683213.00ce18",
+ "id": "ab13fab7.3aabe",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 6276.566665649414,
- "y": 4191.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6211.33332824707,
+ "y": 4207.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "a2a7d328.f35de8",
- "930daebd.33fb78"
+ "62438f19.a66048",
+ "f4afeb0e.ae0db"
]
]
},
{
- "id": "930daebd.33fb78",
+ "id": "f4afeb0e.ae0db",
"type": "set",
"name": "set twoD array",
"xml": "<set>\n<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />\n\n",
"comments": "",
- "x": 6467.566665649414,
- "y": 4250.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6402.33332824707,
+ "y": 4266.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "989bacbe.4af828",
+ "id": "ace0f3a2.ba867",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 6667.566665649414,
- "y": 4148.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6602.33332824707,
+ "y": 4164.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "e5b6e917.a4d33",
+ "id": "4fb6d7b7.ecc78",
"type": "break",
"name": "break",
"xml": "<break>\n",
"comments": "",
- "x": 6838.566665649414,
- "y": 4275.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6773.33332824707,
+ "y": 4291.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ad7dc399.bf418",
+ "id": "6c1ad513.ca11a4",
"type": "switchNode",
"name": "switch dstPort == NULL",
"xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 5235.566665649414,
- "y": 2487.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5170.33332824707,
+ "y": 2503.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "359b938e.1f1cd4",
- "64d68365.eb604c"
+ "e5311d8f.316e3",
+ "377e7dc.719a502"
]
]
},
{
- "id": "359b938e.1f1cd4",
+ "id": "e5311d8f.316e3",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 5624.566665649414,
- "y": 2465.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5559.33332824707,
+ "y": 2481.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "73a3115c.3a191"
+ "53a0d07b.9ddd2"
]
]
},
{
- "id": "64d68365.eb604c",
+ "id": "377e7dc.719a502",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 5625.566665649414,
- "y": 2511.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5560.33332824707,
+ "y": 2527.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "40a2bbc1.5980e4"
+ "bda8eef7.7834b"
]
]
},
{
- "id": "73a3115c.3a191",
+ "id": "53a0d07b.9ddd2",
"type": "set",
"name": "set access-provider-id and client-id",
"xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",
"comments": "",
- "x": 5838.566665649414,
- "y": 2464.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5773.33332824707,
+ "y": 2480.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "40a2bbc1.5980e4",
+ "id": "bda8eef7.7834b",
"type": "set",
"name": "set access-provider-id and client-id",
"xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",
"comments": "",
- "x": 5836.566665649414,
- "y": 2509.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5771.33332824707,
+ "y": 2525.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "a13486f2.279748",
+ "id": "aa320024.3f29d",
"type": "set",
"name": "set attachment_param sliceG",
"xml": "<set>\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`\" />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />\n\n\n<parameter name=\"tmp.domainG.restapiUrl\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`\" />\n<parameter name=\"tmp.domainG.restapiUser\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`\" />\n<parameter name=\"tmp.domainG.restapiPassword\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`\" />",
"comments": "",
- "x": 4761.566665649414,
- "y": 4365.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4696.33332824707,
+ "y": 4381.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "3fa485d1.c8f9c2",
+ "id": "582f4b19.cbc35c",
"type": "execute",
"name": "execute RestApiCallNode sliceG creation domainG",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.domainG.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`tmp.domainG.restapiPassword`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"otn-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`\" />\n",
"comments": "",
"outputs": 1,
- "x": 4346.566665649414,
- "y": 4473.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4281.33332824707,
+ "y": 4489.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "f023dd0f.b91278",
- "29f41b43.8a7c44"
+ "2ee5af11.6c1e68",
+ "dcd2689e.43975"
]
]
},
{
- "id": "29f41b43.8a7c44",
+ "id": "dcd2689e.43975",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4629.566665649414,
- "y": 4453.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4564.33332824707,
+ "y": 4469.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e71ba272.6cc34"
+ "226131b5.dcdb56"
]
]
},
{
- "id": "f023dd0f.b91278",
+ "id": "2ee5af11.6c1e68",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4630.566879272461,
- "y": 4504.566575050354,
- "z": "25a21122.0e2cfe",
+ "x": 4565.333541870117,
+ "y": 4520.333252906799,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "7f431198.b36fd"
+ "9a360786.0f7708"
]
]
},
{
- "id": "e71ba272.6cc34",
+ "id": "226131b5.dcdb56",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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 slice creation api for domain A\" />\n",
"comments": "",
- "x": 4769.566913604736,
- "y": 4453.566666603088,
- "z": "25a21122.0e2cfe",
+ "x": 4704.333576202393,
+ "y": 4469.333344459534,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "7f431198.b36fd",
+ "id": "9a360786.0f7708",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4775.593925476074,
- "y": 4502.31206035614,
- "z": "25a21122.0e2cfe",
+ "x": 4710.3605880737305,
+ "y": 4518.078738212585,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "59469467.70a6d4",
+ "id": "ddb6267f.2382f",
"type": "set",
"name": "set srcdstpnf-name",
"xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n $tmp.access-provider-id + '-clientId-' +\n $tmp.access-client-id + '-topologyId-' + \n $tmp.access-topology-id + '-nodeId-' + \n $tmp.srcdstpnf-id`\" />\n\n",
"comments": "",
- "x": 5419.566665649414,
- "y": 2607.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5354.33332824707,
+ "y": 2623.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "982e5c66.4703f8",
+ "id": "39bce85.43eb118",
"type": "get-resource",
"name": "get-resource tmp.srcdstpnf-name",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 5463.566665649414,
- "y": 2655.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5398.33332824707,
+ "y": 2671.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "48087d37.a26c6c",
- "da051a0e.70b99",
- "11fa1a3.3e28f66"
+ "e3200e7d.1b6158",
+ "a27bf097.a61688",
+ "aed031.10f8e7d"
]
]
},
{
- "id": "48087d37.a26c6c",
+ "id": "e3200e7d.1b6158",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5676.066665649414,
- "y": 2602.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5610.83332824707,
+ "y": 2618.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d7b6e1d4.5db9c8"
+ "ec0b5318.bd94a"
]
]
},
{
- "id": "da051a0e.70b99",
+ "id": "a27bf097.a61688",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5688.066665649414,
- "y": 2652.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5622.83332824707,
+ "y": 2668.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8bafac6.5725d5"
+ "194dd3a5.9683ac"
]
]
},
{
- "id": "11fa1a3.3e28f66",
+ "id": "aed031.10f8e7d",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5679.066665649414,
- "y": 2707.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5613.83332824707,
+ "y": 2723.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "1bd627d5.df5018"
+ "121802d5.075bad"
]
]
},
{
- "id": "1bd627d5.df5018",
+ "id": "121802d5.075bad",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 5824.066665649414,
- "y": 2706.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5758.83332824707,
+ "y": 2722.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "8bafac6.5725d5",
+ "id": "194dd3a5.9683ac",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 5835.066665649414,
- "y": 2649.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5769.83332824707,
+ "y": 2665.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "d7b6e1d4.5db9c8",
+ "id": "ec0b5318.bd94a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5801.449111938477,
- "y": 2596.2223358154297,
- "z": "25a21122.0e2cfe",
+ "x": 5736.215774536133,
+ "y": 2611.989013671875,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "7412b5af.ff0f9c"
+ "6ffb5206.ab40dc"
]
]
},
{
- "id": "2b52018c.262d56",
+ "id": "a75d0b14.3b6cd8",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 6360.566665649414,
- "y": 2614.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6295.33332824707,
+ "y": 2630.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "691fa48a.848bcc"
+ "5ed989fd.7ba3d8"
]
]
},
{
- "id": "691fa48a.848bcc",
+ "id": "5ed989fd.7ba3d8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 6537.566665649414,
- "y": 2606.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6472.33332824707,
+ "y": 2622.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "40d861d8.1df158",
- "6005e754.3b403"
+ "4b327d9f.7fa68c",
+ "a56c9b9d.4b71c"
]
]
},
{
- "id": "7412b5af.ff0f9c",
+ "id": "6ffb5206.ab40dc",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 5962.566665649414,
- "y": 2610.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5897.33332824707,
+ "y": 2626.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "cee0c51f.59e4e8"
+ "157a7f1c.cef0f9"
]
]
},
{
- "id": "cee0c51f.59e4e8",
+ "id": "157a7f1c.cef0f9",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 6157.566665649414,
- "y": 2610.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6092.33332824707,
+ "y": 2626.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "2b52018c.262d56"
+ "a75d0b14.3b6cd8"
]
]
},
{
- "id": "6005e754.3b403",
+ "id": "a56c9b9d.4b71c",
"type": "execute",
"name": "get 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.domainG.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 6745.566665649414,
- "y": 2613.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6680.33332824707,
+ "y": 2629.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ba9890c1.c4a288",
- "659d7a5f.8396d4",
- "c60c2b5.88a3ed8"
+ "5942c841.aa6ee8",
+ "9c93c9ac.788a48",
+ "6429f071.39b59"
]
]
},
{
- "id": "40d861d8.1df158",
+ "id": "4b327d9f.7fa68c",
"type": "set",
"name": "set esr-thirdparty-sdnc domainG id",
"xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 6775.566665649414,
- "y": 2561.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6710.33332824707,
+ "y": 2577.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ba9890c1.c4a288",
+ "id": "5942c841.aa6ee8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 6955.566665649414,
- "y": 2604.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6890.33332824707,
+ "y": 2620.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "203ebc79.0da80c"
+ "f8702def.d95bc8"
]
]
},
{
- "id": "659d7a5f.8396d4",
+ "id": "9c93c9ac.788a48",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 6947.566665649414,
- "y": 2659.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6882.33332824707,
+ "y": 2675.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "23f5bad7.571c16"
+ "440237ad.5da15"
]
]
},
{
- "id": "c60c2b5.88a3ed8",
+ "id": "6429f071.39b59",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 6952.566665649414,
- "y": 2716.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6887.33332824707,
+ "y": 2732.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d78cb5ab.fdf3"
+ "2304d14f.3cde06"
]
]
},
{
- "id": "d78cb5ab.fdf3",
+ "id": "2304d14f.3cde06",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 7104.566665649414,
- "y": 2717.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 7039.33332824707,
+ "y": 2733.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "23f5bad7.571c16",
+ "id": "440237ad.5da15",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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": 7115.566665649414,
- "y": 2662.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 7050.33332824707,
+ "y": 2678.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "203ebc79.0da80c",
+ "id": "f8702def.d95bc8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 7099.948989868164,
- "y": 2602.2223358154297,
- "z": "25a21122.0e2cfe",
+ "x": 7034.71565246582,
+ "y": 2617.989013671875,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "510e20cb.08311"
+ "f24381a1.f5a1a8"
]
]
},
{
- "id": "510e20cb.08311",
+ "id": "f24381a1.f5a1a8",
"type": "set",
"name": "set controller domainA data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
"comments": "",
- "x": 7314.566665649414,
- "y": 2598.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 7249.33332824707,
+ "y": 2614.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "d5bebf9c.374a9",
+ "id": "e206a705.651b58",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3930.566665649414,
- "y": 4365.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 3865.3333282470703,
+ "y": 4381.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "d852a581.272668",
- "3fa485d1.c8f9c2"
+ "371672f7.af2966",
+ "582f4b19.cbc35c"
]
]
},
{
- "id": "e9c05ada.bb249",
+ "id": "e250e406.45b0b8",
"type": "switchNode",
"name": "switch dmnsidx == 0 (domainA)",
"xml": "<switch test='`$otnidx == 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 5433.566665649414,
- "y": 2824.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5368.33332824707,
+ "y": 2840.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e3270b50.ca16b",
- "1493e80e.a20608"
+ "7ec634eb.fd12e4",
+ "72b43008.da4948"
]
]
},
{
- "id": "e3270b50.ca16b",
+ "id": "7ec634eb.fd12e4",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 5634.566665649414,
- "y": 2822.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5569.33332824707,
+ "y": 2838.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8c1f5350.45b238"
+ "9a8afed8.5944c"
]
]
},
{
- "id": "8c1f5350.45b238",
+ "id": "9a8afed8.5944c",
"type": "set",
"name": "set attachment_param domain A",
"xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",
"comments": "",
- "x": 5848.566665649414,
- "y": 2824.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5783.33332824707,
+ "y": 2840.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "efd041d2.1f57c",
+ "id": "a2a5b281.9fc21",
"type": "switchNode",
"name": "switch dmnsidx == last (domainB)",
"xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",
"comments": "",
"outputs": 1,
- "x": 5851.566665649414,
- "y": 2873.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5786.33332824707,
+ "y": 2889.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "18ead70f.a7a7d1",
- "86ea5500.031798"
+ "51c23d0e.7b05dc",
+ "905f334d.4416a8"
]
]
},
{
- "id": "18ead70f.a7a7d1",
+ "id": "51c23d0e.7b05dc",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 6081.566665649414,
- "y": 2869.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6016.33332824707,
+ "y": 2885.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "45ea107a.0ebac8"
+ "6e6ce692.530ee8"
]
]
},
{
- "id": "45ea107a.0ebac8",
+ "id": "6e6ce692.530ee8",
"type": "set",
"name": "set attachment_param domain B",
"xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",
"comments": "",
- "x": 6295.566665649414,
- "y": 2872.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6230.33332824707,
+ "y": 2888.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "1493e80e.a20608",
+ "id": "72b43008.da4948",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 5634.566665649414,
- "y": 2871.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5569.33332824707,
+ "y": 2887.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "efd041d2.1f57c"
+ "a2a5b281.9fc21"
]
]
},
{
- "id": "86ea5500.031798",
+ "id": "905f334d.4416a8",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 6082.566665649414,
- "y": 2915.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6017.33332824707,
+ "y": 2931.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "7828b5dc.b70c4c"
+ "17f66f36.7df949"
]
]
},
{
- "id": "7828b5dc.b70c4c",
+ "id": "17f66f36.7df949",
"type": "set",
"name": "set attachment_param domain G",
"xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",
"comments": "",
- "x": 6296.566665649414,
- "y": 2915.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6231.33332824707,
+ "y": 2931.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "72c2b2cc.2ba44c",
+ "id": "31ff32a6.490d6e",
"type": "set",
"name": "set tmp.slicevpns",
"xml": "<set>\n<parameter name='`tmp.slicevpns[$tmp.slicevpns_length]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n<parameter name='tmp.slicevpns_length' value=\"`$tmp.slicevpns_length + 1`\" />\n\n<parameter name='`tmp.slicevpnuuids[$prop.vpn-binding-otnidx-uuid]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n\n",
"comments": "",
- "x": 6194.566665649414,
- "y": 2964.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 6129.33332824707,
+ "y": 2980.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "25f755d1.b61592",
+ "id": "b4dc52fa.e41dc8",
"type": "switchNode",
"name": "switch vpnuuid is for this slice",
"xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n \n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `\">\n",
"comments": "",
"outputs": 1,
- "x": 4758.566665649414,
- "y": 4188.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4693.33332824707,
+ "y": 4204.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "15207d44.a4310b",
- "179e4c90.1525b3"
+ "ddeec6d8.2b66d",
+ "ad3e1b09.a7dd3"
]
]
},
{
- "id": "15207d44.a4310b",
+ "id": "ddeec6d8.2b66d",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 4975.566665649414,
- "y": 4167.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4910.33332824707,
+ "y": 4183.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "64fe7f3a.b5df9"
+ "faf87a35.78eb88"
]
]
},
{
- "id": "179e4c90.1525b3",
+ "id": "ad3e1b09.a7dd3",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 4975.566665649414,
- "y": 4216.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4910.33332824707,
+ "y": 4232.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "64fe7f3a.b5df9",
+ "id": "faf87a35.78eb88",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 5143.566665649414,
- "y": 4167.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5078.33332824707,
+ "y": 4183.333343505859,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "35196fa7.3e82b8",
- "b4d44dab.0baa88"
+ "b7b629ca.699bf",
+ "97c70d48.16fe38"
]
]
},
{
- "id": "433e887a.5dd2c",
+ "id": "b7e06d6e.f371a",
"type": "save",
"name": "get logical-link from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",
"comments": "",
"outputs": 1,
- "x": 1483.566665649414,
- "y": 798.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1418.3333282470703,
+ "y": 814.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "4058fc82.6dfacc",
- "4151c29c.d64b0c",
- "5541a408.f0ed0c"
+ "16c2412b.16deaf",
+ "ae26bbae.e630b8",
+ "e8c1e05c.a0ff5"
]
]
},
{
- "id": "4058fc82.6dfacc",
+ "id": "16c2412b.16deaf",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1696.057632446289,
- "y": 765.1406402587891,
- "z": "25a21122.0e2cfe",
+ "x": 1630.8242950439453,
+ "y": 780.9073181152344,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "417a2c30.fd69ac"
+ "28aa8e7b.7b6a9a"
]
]
},
{
- "id": "4151c29c.d64b0c",
+ "id": "ae26bbae.e630b8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1684.566665649414,
- "y": 809.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1619.3333282470703,
+ "y": 825.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "2fc8bb7d.787cac"
+ "d31e63f3.254"
]
]
},
{
- "id": "417a2c30.fd69ac",
+ "id": "28aa8e7b.7b6a9a",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 1844.629165649414,
- "y": 765.4264068603516,
- "z": "25a21122.0e2cfe",
+ "x": 1779.3958282470703,
+ "y": 781.1930847167969,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "2fc8bb7d.787cac",
+ "id": "d31e63f3.254",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1843.566665649414,
- "y": 809.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1778.3333282470703,
+ "y": 825.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "5541a408.f0ed0c",
+ "id": "e8c1e05c.a0ff5",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1689.566665649414,
- "y": 852.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1624.3333282470703,
+ "y": 868.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e145a9c3.48d208"
+ "c3b9530.73a28b"
]
]
},
{
- "id": "e145a9c3.48d208",
+ "id": "c3b9530.73a28b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 835.5666656494141,
- "y": 1191.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 770.3333282470703,
+ "y": 1207.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "88efa0d6.0c1808"
+ "3e859b6c.a626d4"
]
]
},
{
- "id": "88efa0d6.0c1808",
+ "id": "3e859b6c.a626d4",
"type": "for",
"name": "for each svc-instance relationship",
"xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1109.566665649414,
- "y": 1191.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1044.3333282470703,
+ "y": 1207.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "c2dd1c9b.b3dd48"
+ "9fdac28f.05e248"
]
]
},
{
- "id": "c2dd1c9b.b3dd48",
+ "id": "9fdac28f.05e248",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1344.900161743164,
- "y": 1192.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1279.6668243408203,
+ "y": 1208.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e5b1da68.bc54"
+ "6b8b4db1.78e19c"
]
]
},
{
- "id": "e5b1da68.bc54",
+ "id": "6b8b4db1.78e19c",
"type": "outcome",
"name": "connectivity",
"xml": "<outcome value='connectivity'>\n",
"comments": "",
"outputs": 1,
- "x": 628.5669097900391,
- "y": 1345.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 563.3335723876953,
+ "y": 1361.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "fb4c81c8.58ec08"
+ "2aa5f521.f24e92"
]
]
},
{
- "id": "68774cff.da4f7c",
+ "id": "83814db5.2acc38",
"type": "save",
"name": "get connectivity from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",
"comments": "",
"outputs": 1,
- "x": 1017.5666656494141,
- "y": 1350.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 952.3333282470703,
+ "y": 1366.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ae979c86.2af0a",
- "c51e116c.9e96e",
- "bc29e653.3cf5f8"
+ "f08fdd90.4c3b48",
+ "74408ee8.7c8248",
+ "bddcb73f.c2f73"
]
]
},
{
- "id": "ae979c86.2af0a",
+ "id": "f08fdd90.4c3b48",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1213.566665649414,
- "y": 1315.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1148.3333282470703,
+ "y": 1331.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "323455e1.4146ea"
+ "b8ac9b43.4a9818"
]
]
},
{
- "id": "c51e116c.9e96e",
+ "id": "74408ee8.7c8248",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1214.057632446289,
- "y": 1361.1407012939453,
- "z": "25a21122.0e2cfe",
+ "x": 1148.8242950439453,
+ "y": 1376.9073791503906,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "bf9be58f.d0c428"
+ "dda3b631.5e1b9"
]
]
},
{
- "id": "bc29e653.3cf5f8",
+ "id": "bddcb73f.c2f73",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1178.566665649414,
- "y": 1406.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1113.3333282470703,
+ "y": 1422.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "dd499616.1dbe"
+ "c0397cda.3cd818"
]
]
},
{
- "id": "bf9be58f.d0c428",
+ "id": "dda3b631.5e1b9",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 1373.629165649414,
- "y": 1358.4264068603516,
- "z": "25a21122.0e2cfe",
+ "x": 1308.3958282470703,
+ "y": 1374.1930847167969,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "dd499616.1dbe",
+ "id": "c0397cda.3cd818",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1331.566665649414,
- "y": 1408.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1266.3333282470703,
+ "y": 1424.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "66825a6f.db4e3c",
+ "id": "4d852904.6e1e58",
"type": "switchNode",
"name": "switch loglink-id exists in conn",
"xml": "<switch test='`$tmp.aai.logical-link.link-id == $tmp.aai.connectivity.etht-svc-name`'>\n",
"comments": "",
"outputs": 1,
- "x": 1606.566665649414,
- "y": 1298.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1541.3333282470703,
+ "y": 1314.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "85e80e78.a683f",
- "e9363fe4.4910f8"
+ "28fd1bef.755efc",
+ "5889d337.e7ce3c"
]
]
},
{
- "id": "85e80e78.a683f",
+ "id": "28fd1bef.755efc",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1817.566665649414,
- "y": 1263.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1752.3333282470703,
+ "y": 1279.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ea49207.e144c6"
+ "b34d6866.bc5698"
]
]
},
{
- "id": "e9363fe4.4910f8",
+ "id": "5889d337.e7ce3c",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1814.566665649414,
- "y": 1324.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1749.3333282470703,
+ "y": 1340.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "a72bfa1e.2c0188",
+ "id": "2876f138.d4a73e",
"type": "set",
"name": "set currLinkIsFound",
"xml": "<set>\n<parameter name='currLinkIsFound' value=\"true\" />\n\n\n",
"comments": "",
- "x": 2155.566665649414,
- "y": 1236.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 2090.3333282470703,
+ "y": 1252.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "ea49207.e144c6",
+ "id": "b34d6866.bc5698",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1969.566665649414,
- "y": 1264.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1904.3333282470703,
+ "y": 1280.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "a72bfa1e.2c0188"
+ "2876f138.d4a73e"
]
]
},
{
- "id": "77625e01.45cfa",
+ "id": "6674b61e.a06d68",
"type": "break",
"name": "break",
"xml": "<break>\n",
"comments": "",
- "x": 2122.566665649414,
- "y": 1292.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 2057.3333282470703,
+ "y": 1308.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "747752c5.edcc6c",
+ "id": "ee2fec7a.bb72",
"type": "comment",
"name": "currLinkIsFound. Go to the next logical-link",
"info": "",
"comments": "",
- "x": 2127.566665649414,
- "y": 1186.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 2062.3333282470703,
+ "y": 1202.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "fc0b0bdf.af57e8",
+ "id": "9653963e.b4d7a8",
"type": "switchNode",
"name": "switch currLinkIsFound",
"xml": "<switch test='`$currLinkIsFound`'>\n",
"comments": "",
"outputs": 1,
- "x": 1409.566665649414,
- "y": 916.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1344.3333282470703,
+ "y": 932.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "ec2c299e.a7094",
- "12a10d8.78ec073"
+ "78ad0a60.3340ec",
+ "c4221fd4.9cf0f8"
]
]
},
{
- "id": "ec2c299e.a7094",
+ "id": "78ad0a60.3340ec",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1595.566665649414,
- "y": 895.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1530.3333282470703,
+ "y": 911.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "43c18e2d.dbbe18"
+ "9a111eaa.a49b48"
]
]
},
{
- "id": "12a10d8.78ec073",
+ "id": "c4221fd4.9cf0f8",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1592.566665649414,
- "y": 1031.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1527.3333282470703,
+ "y": 1047.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "4dddc413.6cd63c"
+ "498e3ba4.cbc914"
]
]
},
{
- "id": "43c18e2d.dbbe18",
+ "id": "9a111eaa.a49b48",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1837.566665649414,
- "y": 890.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1772.3333282470703,
+ "y": 906.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "6e81ab2b.cd2004",
+ "id": "bd09e3c8.ced5f8",
"type": "comment",
"name": "A new logical-link has been found: modify process should be triggered",
"info": "",
"comments": "",
- "x": 1783.566665649414,
- "y": 994.5666656494141,
- "z": "25a21122.0e2cfe",
+ "x": 1718.3333282470703,
+ "y": 1010.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "323455e1.4146ea",
+ "id": "b8ac9b43.4a9818",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1377.566665649414,
- "y": 1299.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1312.3333282470703,
+ "y": 1315.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "66825a6f.db4e3c",
- "4b0ae75c.1aab4"
+ "4d852904.6e1e58",
+ "275b774d.5d0718"
]
]
},
{
- "id": "4b0ae75c.1aab4",
+ "id": "275b774d.5d0718",
"type": "switchNode",
"name": "switch connectivityBW == gfp",
"xml": "<switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'>\n",
"comments": "",
"outputs": 1,
- "x": 1607.566665649414,
- "y": 1389.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1542.3333282470703,
+ "y": 1405.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "c8e4becf.570ed8",
- "efb821b0.8f5c8"
+ "8ffa4f79.ade61",
+ "c4dfc850.994ac"
]
]
},
{
- "id": "c8e4becf.570ed8",
+ "id": "8ffa4f79.ade61",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1812.566665649414,
- "y": 1385.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1747.3333282470703,
+ "y": 1401.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "efb821b0.8f5c8",
+ "id": "c4dfc850.994ac",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1814.566665649414,
- "y": 1435.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1749.3333282470703,
+ "y": 1451.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "35c21580.2c9b32"
+ "30c2ae4.1f45052"
]
]
},
{
- "id": "fd83a72b.0cf5a8",
+ "id": "30007844.075cd",
"type": "set",
"name": "set bwModified",
"xml": "<set>\n<parameter name='bwModified' value=\"true\" />\n\n\n",
"comments": "",
- "x": 2163.566665649414,
- "y": 1413.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 2098.3333282470703,
+ "y": 1429.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "35c21580.2c9b32",
+ "id": "30c2ae4.1f45052",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1968.566665649414,
- "y": 1434.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1903.3333282470703,
+ "y": 1450.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "fd83a72b.0cf5a8",
- "b1b00645.427888"
+ "30007844.075cd",
+ "b1f43ea6.58c508"
]
]
},
{
- "id": "b1b00645.427888",
+ "id": "b1f43ea6.58c508",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
"comments": "",
"outputs": 1,
- "x": 988.5666656494141,
- "y": 1639.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 923.3333282470703,
+ "y": 1655.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "3c4549a7.0d1376"
+ "5f59c5b8.8000ec"
]
]
},
{
- "id": "3c4549a7.0d1376",
+ "id": "5f59c5b8.8000ec",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1193.566665649414,
- "y": 1639.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1128.3333282470703,
+ "y": 1655.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "adf26b65.8f90e"
+ "d7cb533e.bd93a"
]
]
},
{
- "id": "adf26b65.8f90e",
+ "id": "d7cb533e.bd93a",
"type": "outcome",
"name": "vpn-binding",
"xml": "<outcome value='vpn-binding'>\n",
"comments": "",
"outputs": 1,
- "x": 1359.566665649414,
- "y": 1639.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1294.3333282470703,
+ "y": 1655.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "64e47481.3a26d4"
+ "5c501362.927b6c"
]
]
},
{
- "id": "64e47481.3a26d4",
+ "id": "5c501362.927b6c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1522.566665649414,
- "y": 1639.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1457.3333282470703,
+ "y": 1655.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "6e6ea5ef.8c2224",
- "d5aad2e.d2c753"
+ "53a207fe.affe78",
+ "2105f763.ee4f68"
]
]
},
{
- "id": "d5aad2e.d2c753",
+ "id": "2105f763.ee4f68",
"type": "set",
"name": "unset tmp.aai.vpn-binding",
"xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
"comments": "",
- "x": 1751.566665649414,
- "y": 1579.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1686.3333282470703,
+ "y": 1595.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "6e6ea5ef.8c2224",
+ "id": "53a207fe.affe78",
"type": "save",
"name": "get vpn-binding from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",
"comments": "",
"outputs": 1,
- "x": 1260.566665649414,
- "y": 1733.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1195.3333282470703,
+ "y": 1749.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "8146e5c8.89f0a",
- "7ba4a096.c89f48",
- "d58f3b9.ef82248"
+ "96d7c193.8b3058",
+ "915fad51.2fe24",
+ "52119562.4019b4"
]
]
},
{
- "id": "f88195dd.98254",
+ "id": "e9bb6625.bf214",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1644.566665649414,
- "y": 1733.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1579.3333282470703,
+ "y": 1749.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "1f6be69e.efcee9",
- "dca75bc1.9206a8"
+ "aea8b329.30e9d",
+ "4aaf718e.250ab8"
]
]
},
{
- "id": "8146e5c8.89f0a",
+ "id": "96d7c193.8b3058",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1471.566665649414,
- "y": 1735.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1406.3333282470703,
+ "y": 1751.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "f88195dd.98254"
+ "e9bb6625.bf214"
]
]
},
{
- "id": "7ba4a096.c89f48",
+ "id": "915fad51.2fe24",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1472.057632446289,
- "y": 1781.1407012939453,
- "z": "25a21122.0e2cfe",
+ "x": 1406.8242950439453,
+ "y": 1796.9073791503906,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "e8dc9623.1376d8"
+ "9471576f.097388"
]
]
},
{
- "id": "d58f3b9.ef82248",
+ "id": "52119562.4019b4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1469.566665649414,
- "y": 1824.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1404.3333282470703,
+ "y": 1840.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "1a1a5ddc.251932"
+ "18330305.6a2a7d"
]
]
},
{
- "id": "1a1a5ddc.251932",
+ "id": "18330305.6a2a7d",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1636.566665649414,
- "y": 1841.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1571.3333282470703,
+ "y": 1857.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "e8dc9623.1376d8",
+ "id": "9471576f.097388",
"type": "returnFailure",
"name": "return failure",
"xml": "<return 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.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 1634.6290435791016,
- "y": 1781.4264373779297,
- "z": "25a21122.0e2cfe",
+ "x": 1569.3957061767578,
+ "y": 1797.193115234375,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "fb4c81c8.58ec08",
+ "id": "2aa5f521.f24e92",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 800.5666656494141,
- "y": 1345.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 735.3333282470703,
+ "y": 1361.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[
- "68774cff.da4f7c",
- "458e84.00aae97c"
+ "83814db5.2acc38",
+ "4cdc6ff0.28b37"
]
]
},
{
- "id": "458e84.00aae97c",
+ "id": "4cdc6ff0.28b37",
"type": "set",
"name": "unset tmp.aai.connectivity",
"xml": "<set>\n<parameter name='tmp.aai.connectivity.' value='' />\n",
"comments": "",
- "x": 1020.5666656494141,
- "y": 1293.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 955.3333282470703,
+ "y": 1309.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "1f6be69e.efcee9",
+ "id": "aea8b329.30e9d",
"type": "save",
"name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n",
"comments": "",
"outputs": 1,
- "x": 1995.066665649414,
- "y": 1728.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1929.8333282470703,
+ "y": 1744.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "dca75bc1.9206a8",
+ "id": "4aaf718e.250ab8",
"type": "save",
"name": "update connectivity resource in AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n",
"comments": "",
"outputs": 1,
- "x": 1922.066665649414,
- "y": 1792.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 1856.8333282470703,
+ "y": 1808.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "ee7fd236.9ed9a8",
+ "id": "301a3cc6.e828c4",
"type": "comment",
"name": "The following two nodes are for PCE",
"info": "",
"comments": "",
- "x": 2066.566665649414,
- "y": 120.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 2001.3333282470703,
+ "y": 136.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": []
},
{
- "id": "323fc4b1.60fe74",
+ "id": "ba577b94.b0dc8",
"type": "get-resource",
"name": "get-resource pnfs-list",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v25/network/pnfs?depth=0' depth = 0\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",
"comments": "",
"outputs": 1,
- "x": 2026.566665649414,
- "y": 164.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1961.3333282470703,
+ "y": 180.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "8780743f.a296a",
+ "id": "efd37c2f.4ac7f",
"type": "get-resource",
"name": "get-resource logical-links",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v25/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",
"comments": "",
"outputs": 1,
- "x": 2039.566665649414,
- "y": 209.56666564941406,
- "z": "25a21122.0e2cfe",
+ "x": 1974.3333282470703,
+ "y": 225.33334350585938,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "afd6fb79.f36b6",
+ "id": "8e0823d9.c3d5f",
"type": "execute",
"name": "execute printContext",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",
"comments": "",
"outputs": 1,
- "x": 4346.566665649414,
- "y": 2326.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4281.33332824707,
+ "y": 2342.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "89a7842f.afd83",
+ "id": "8465e4fd.6de0a",
"type": "save",
"name": "save connectivity resource in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\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`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
"comments": "",
"outputs": 1,
- "x": 5637.566665649414,
- "y": 1163.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 5572.33332824707,
+ "y": 1179.3333435058594,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
},
{
- "id": "1a397526.128d93",
+ "id": "642b12a.3e870ec",
"type": "call",
"name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-find-maximum-used-tpn",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",
"comments": "",
"outputs": 1,
- "x": 4535.566665649414,
- "y": 2398.566665649414,
- "z": "25a21122.0e2cfe",
+ "x": 4470.333740234375,
+ "y": 2399.3333740234375,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f34b01.8e0f75",
+ "type": "switchNode",
+ "name": "switch src and dst same domain?",
+ "xml": "<switch test=\"`$param-prefix-domainA[$param-prefix-domainA_length -9] == $param-prefix-domainB[$param-prefix-domainB_length -9]`\">\n \n `\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2923.666748046875,
+ "y": 2446.33349609375,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ [
+ "db4fc7e3.ebc94",
+ "5ec8edee.aa3afc"
+ ]
+ ]
+ },
+ {
+ "id": "5ec8edee.aa3afc",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3137.6666870117188,
+ "y": 2459.3333740234375,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ [
+ "42219b91.01efdc"
+ ]
+ ]
+ },
+ {
+ "id": "db4fc7e3.ebc94",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3118.6666259765625,
+ "y": 2560.33349609375,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ [
+ "5c61900d.2cdc2"
+ ]
+ ]
+ },
+ {
+ "id": "42219b91.01efdc",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3545.0001831054688,
+ "y": 2465.66650390625,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ [
+ "50b64f95.e5fb98"
+ ]
+ ]
+ },
+ {
+ "id": "5c61900d.2cdc2",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3269.0000610351562,
+ "y": 2560.66650390625,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ [
+ "f027aef7.634db8",
+ "7a63eedd.e32c3",
+ "2b5a38a.97b3448",
+ "7fefe031.312d88"
+ ]
+ ]
+ },
+ {
+ "id": "50b64f95.e5fb98",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3971.3333129882812,
+ "y": 2465.33349609375,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ [
+ "e65eb704.1a5ee"
+ ]
+ ]
+ },
+ {
+ "id": "f027aef7.634db8",
+ "type": "execute",
+ "name": "execute UUID generator for vpn-binding $otnidx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-samedomain-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3552.9999389648438,
+ "y": 2566.3333740234375,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7a63eedd.e32c3",
+ "type": "set",
+ "name": "set attachment_param Same Domain",
+ "xml": "<set>\n<parameter name='tmp.sameDomain-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.sameDomain-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",
+ "comments": "",
+ "x": 3520.9999389648438,
+ "y": 2626.6663818359375,
+ "z": "1f8b432c.7b707d",
+ "wires": []
+ },
+ {
+ "id": "2b5a38a.97b3448",
+ "type": "save",
+ "name": "save vpn-binding same domain resource (aka. OTN) in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-samedomain-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.sameDomain-src-access-node-id`' />\n<!--<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />-->\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.sameDomain-dst-access-node-id`' />\n<!--<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />-->\n<parameter name='route-distinguisher' value='`$gfp`' />\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`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3586.3331909179688,
+ "y": 2682.6663818359375,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ [
+ "1b626686.9373e9"
+ ]
+ ]
+ },
+ {
+ "id": "1b626686.9373e9",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3903.3331909179688,
+ "y": 2684.6663818359375,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ [
+ "de4818c6.968eb8"
+ ]
+ ]
+ },
+ {
+ "id": "de4818c6.968eb8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4066.8331909179688,
+ "y": 2683.9202880859375,
+ "z": "1f8b432c.7b707d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7fefe031.312d88",
+ "type": "save",
+ "name": "save connectivity-domainA relationship to vpn-binding-sameDomain, in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-uuid' \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/' + $uuid.connectivity-domainA-uuid`\" />\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=\"`$uuid.connectivity-domainA-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3634.9995727539062,
+ "y": 2737.3331298828125,
+ "z": "1f8b432c.7b707d",
"wires": [
[]
]
diff --git a/platform-logic/generic-resource-api/src/main/resources/graph.versions b/platform-logic/generic-resource-api/src/main/resources/graph.versions
index dbf06928..936f88dc 100755
--- a/platform-logic/generic-resource-api/src/main/resources/graph.versions
+++ b/platform-logic/generic-resource-api/src/main/resources/graph.versions
@@ -307,4 +307,5 @@ GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-create ${project.version} sy
GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-activate ${project.version} sync
GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-deactivate ${project.version} sync
GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-delete ${project.version} sync
-GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-modify ${project.version} sync \ No newline at end of file
+GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-modify ${project.version} sync
+GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-callbackdg-notification 888 sync \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.xml
index 7662ce84..2d3237a9 100644
--- a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.xml
@@ -249,6 +249,68 @@
<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
<parameter name='orchestration-status' value='Activated' />
</update>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-create-pm-data.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/data/ietf-service-pm:performance-monitoring'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/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"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishSubscriptionOnly' >
+ <parameter name="subscriberId" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-subscribe-notification.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`" />
+ <parameter name="dirPath" value="/opt/sdnc/restconfapi/yang/notification" />
+ <!--<parameter name="deviceIp" value="192.168.198.6" />-->
+ <!--<parameter name="devicePort" value="18181" />-->
+ <parameter name="sseConnectURL" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`" />
+ <parameter name="format" value="json" />
+ <parameter name="httpMethod" value="post" />
+ <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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9" />
+ <parameter name="module" value="GENERIC-RESOURCE-API" />
+ <parameter name="rpc" value="cll-vnf-topology-operation-cll-callbackdg-notification" />
+ <parameter name="version" value="777" />
+ <parameter name="mode" value="sync" />
+ <!--<parameter name="version" value="sync" />-->
+ <!--<parameter name="mode" value="777" />-->
+ <parameter name="responsePrefix" value="restapi-result"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishPersistentSseConnection' >
+ <parameter name="subscriberId" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-subscribe-notification.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`" />
+ <parameter name="sseConnectURL" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`" />
+ <parameter name="dirPath" value="/opt/sdnc/restconfapi/yang/notification" />
+ <parameter name="format" value="json" />
+ <parameter name="httpMethod" value="get" />
+ <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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9" />
+ <parameter name="module" value="GENERIC-RESOURCE-API" />
+ <parameter name="rpc" value="cll-vnf-topology-operation-cll-callbackdg-notification" />
+ <parameter name="version" value="777" />
+ <parameter name="mode" value="sync" />
+ <!--<parameter name="version" value="sync" />-->
+ <!--<parameter name="mode" value="777" />-->
+ <parameter name="responsePrefix" value="notification-get-result"/>
+ </execute>
</block>
</outcome>
</execute>
@@ -567,6 +629,68 @@
<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
<parameter name='orchestration-status' value='Activated' />
</update>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-create-pm-data.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/data/ietf-service-pm:performance-monitoring'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/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"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishSubscriptionOnly' >
+ <parameter name="subscriberId" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-subscribe-notification.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`" />
+ <parameter name="dirPath" value="/opt/sdnc/restconfapi/yang/notification" />
+ <!--<parameter name="deviceIp" value="192.168.198.6" />-->
+ <!--<parameter name="devicePort" value="18181" />-->
+ <parameter name="sseConnectURL" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`" />
+ <parameter name="format" value="json" />
+ <parameter name="httpMethod" value="post" />
+ <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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9" />
+ <parameter name="module" value="GENERIC-RESOURCE-API" />
+ <parameter name="rpc" value="cll-vnf-topology-operation-cll-callbackdg-notification" />
+ <parameter name="version" value="777" />
+ <parameter name="mode" value="sync" />
+ <!--<parameter name="version" value="sync" />-->
+ <!--<parameter name="mode" value="777" />-->
+ <parameter name="responsePrefix" value="restapi-result"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishPersistentSseConnection' >
+ <parameter name="subscriberId" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-subscribe-notification.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`" />
+ <parameter name="sseConnectURL" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.url + '/restconf/streams/yang-push-json'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`" />
+ <parameter name="dirPath" value="/opt/sdnc/restconfapi/yang/notification" />
+ <parameter name="format" value="json" />
+ <parameter name="httpMethod" value="get" />
+ <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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9" />
+ <parameter name="module" value="GENERIC-RESOURCE-API" />
+ <parameter name="rpc" value="cll-vnf-topology-operation-cll-callbackdg-notification" />
+ <parameter name="version" value="777" />
+ <parameter name="mode" value="sync" />
+ <!--<parameter name="version" value="sync" />-->
+ <!--<parameter name="mode" value="777" />-->
+ <parameter name="responsePrefix" value="notification-get-result"/>
+ </execute>
</block>
</outcome>
</execute>
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-callbackdg-notification.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-callbackdg-notification.xml
new file mode 100644
index 00000000..e3d1c939
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-callbackdg-notification.xml
@@ -0,0 +1,79 @@
+<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='888'>
+ <method rpc='p2p-vnf-topology-operation-p2p-callbackdg-notification' mode='sync'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CallBack DG For SSE CONNECTION is called"/>
+ <!--<parameter name="field2" value="`$rcvdNotif`"/>-->
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <switch test="`$push-change-update.datastore-changes.type == 'update' `">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <!--<parameter name='rcvdNotif' value='`$notifvalue`' />-->
+ <parameter name='rcvd-etht-svc-end-point' value='`$push-change-update.datastore-changes.payload.parameter-value[0].etht-svc-end-point`' />
+ <parameter name='rcvd-subscription-id' value='`$push-change-update.subscription-id`' />
+ <parameter name='rcvd-bandwidth-value' value='`$push-change-update.datastore-changes.payload.parameter-value[0].value`' />
+ <parameter name='rcvd-service-instance-id' value='`$push-change-update.datastore-changes.payload.parameter-value[0].value-description`' />
+ </set>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource="service-instance:metadata"
+ key="service-instance.service-instance-id = $rcvd-service-instance-id
+ AND customer.global-customer-id = 'IBNCustomer'
+ AND service-subscription.service-type = 'IBN'" force="true" pfx="tmp.AnAI-data">
+ <parameter name="metadata.metadatum[0].metaname" value="`$rcvd-etht-svc-end-point`" />
+ <parameter name="metadata.metadatum[0].metaval" value="`$rcvd-bandwidth-value`" />
+ </save>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource="service-instance"
+ key="service-instance.service-instance-id = $rcvd-service-instance-id
+ AND customer.global-customer-id = 'IBNCustomer'
+ AND service-subscription.service-type = 'IBN'
+ AND metadatum.metaname = $rcvd-etht-svc-end-point" force="true" pfx="tmp.AnAI-data">
+ <parameter name="metaname" value="`$rcvd-etht-svc-end-point`" />
+ <parameter name="metaval" value="`$rcvd-bandwidth-value`" />
+ <!--AND metadatum.metaname = $rcvd-etht-svc-end-point-->
+ <!--<parameter name="metadata.metadatum[0].metaname" value="`$rcvd-etht-svc-end-point`" />-->
+ <!-- <parameter name="metadata.metadatum[0].metaval" value="`$rcvd-bandwidth-value`" />-->
+ </update>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="eventId-uuid"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="eventName-uuid"/>
+ </execute>
+ <set>
+ <parameter name='eventIdUuid' value="`'BandwidthChanged_' + $eventId-uuid`" />
+ <parameter name='eventNameUuid' value='`$eventName-uuid`' />
+ <parameter name='cclId' value='`$rcvd-service-instance-id`' />
+ <parameter name='uniId' value='`$rcvd-etht-svc-end-point`' />
+ <parameter name='bandwidthValue' value='`$rcvd-bandwidth-value`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.p2p-call-ves.templatefile`" />
+ <!--<parameter name="restapiUrl" value="`$prop.dcaeAddrAndPort + '/eventListener/v7'`" />-->
+ <parameter name="restapiUrl" value="https://dcae-ves-collector:8443/eventListener/v7" />
+ <parameter name="restapiUser" value="sample1" />
+ <parameter name="restapiPassword" value="sample1" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="post"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <parameter name="responsePrefix" value="ves-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="disableHostVerification" value="true"/>
+ <parameter name="ssl" value="false"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.xml
index 3997add7..5a45ed39 100644
--- a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.xml
@@ -1,7 +1,7 @@
<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='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>
+ <method rpc='p2p-vnf-topology-operation-p2p-deactivate' mode='sync'>
<block atomic="true">
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.xml
index 7c6e65ff..78ec3179 100644
--- a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.xml
@@ -1,249 +1,225 @@
-<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='tsli-vnf-topology-operation-trans-slice-delete' mode='sync'>
- <block atomic="true">
- <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
- <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
- <parameter name='contextPrefix' value='prop' />
- </execute>
- <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
- <!-- resource="service-instance"-->
- <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->
- <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->
- <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->
- <!-- local-only="false"-->
- <!-- force="true" pfx="tmp.aai.service-instance">-->
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="service-instance"
- key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
- AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
- AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
- local-only="false"
- force="true" pfx="tmp.aai.service-instance">
- <!--vnf-topology-operation-input.service-information.service-instance-id-->
- <outcome value='success'>
- <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >
- <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>
- <outcome value='connectivity'>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="connectivity"
- key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"
- local-only="false"
- pfx="tmp.aai.connectivity" >
- <outcome value='success'>
- <for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >
- <switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>
- <outcome value='vpn-binding'>
- <block atomic="true">
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="vpn-binding"
- key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value"
- local-only="false"
- pfx="tmp.aai.vpn-binding" >
- <outcome value='success'>
- <block atomic="true">
- <set>
- <parameter name='tmp.domain.pnf-name' value="`'networkId-providerId-' +
- $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +
- $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +
- $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +
- $tmp.aai.vpn-binding.src-access-node-id`" />
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="pnf"
- key="pnf.pnf-name = $tmp.domain.pnf-name"
- pfx='tmp.aai.source-pnf' local-only='false' >
- <!--AND depth = '0'"-->
- <outcome value='success'>
- <block>
- <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
- <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
- <outcome value='esr-thirdparty-sdnc'>
- <block atomic="true">
- <set>
- <parameter name='tmp.domain.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="esr-thirdparty-sdnc"
- key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domain.esr-thirdparty-id AND
- depth = '1'"
- pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >
- <outcome value='success'>
- <block>
- <set>
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
- <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
- <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
- <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
- <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
- <!--<parameter name="format" value="json"/>-->
- <!--<parameter name="httpMethod" value="get"/>-->
- <!--<parameter name="responsePrefix" value="topology"/>-->
- <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
- <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
- <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
- <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
- </set>
- </block>
- </outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
- </return>
- </outcome>
- </get-resource>
- <break/>
- </block>
- </outcome>
- </switch>
- </for>
- </block>
- </outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
- </return>
- </outcome>
- </get-resource>
- <set>
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.transport-slice-creation.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/operations/ietf-optical-slice:deallocate-optical-slice'`" />
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domain.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domain.password`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="post"/>
- <parameter name="responsePrefix" value="otn-oof"/>
- <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 deallocate transport slice rest api" />
- </return>
- </outcome>
- <outcome value='success'>
- <block atomic="true"></block>
- </outcome>
- </execute>
- <switch test='`$tmp.aai.connectivity.etht-svc-name`'>
- <outcome value='Other'>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <!--<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />-->
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-network:networks/network=networkId-providerId-' + $tmp.aai.connectivity.access-provider-id + '-clientId-' + $tmp.aai.connectivity.access-client-id + '-topologyId-' + $tmp.aai.connectivity.access-topology-id + '/node=' + $tmp.aai.connectivity.access-node-id + '/ietf-network-topology:termination-point=' + $tmp.aai.connectivity.access-ltp-id + '/ietf-te-topology:te/ietf-optical-slice:slice-id-list=' + $slice-instance-id `" />
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domain.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domain.password`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="delete"/>
- <parameter name="responsePrefix" value="otn-oof"/>
- <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 decoloring UNI rest api" />
- </return>
- </outcome>
- <outcome value='success'>
- <block></block>
- </outcome>
- </execute>
- </outcome>
- <outcome value=''></outcome>
- </switch>
- <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
- key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'></delete>
- <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
- key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' ></delete>
- </block>
- </outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
- </return>
- </outcome>
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='error-code' value='' />
- <parameter name='error-message' value='' />
- </return>
- </outcome>
- </get-resource>
- </block>
- </outcome>
- </switch>
- </for>
- </outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
- </return>
- </outcome>
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='error-code' value='' />
- <parameter name='error-message' value='' />
- </return>
- </outcome>
- </get-resource>
- </outcome>
- </switch>
- </for>
- </outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
- </return>
- </outcome>
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='error-code' value='' />
- <parameter name='error-message' value='' />
- </return>
- </outcome>
- </get-resource>
- <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
+ 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='p2p-vnf-topology-operation-p2p-delete' mode='sync'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="service-instance"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.service-instance">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <!--vnf-topology-operation-input.service-information.service-instance-id-->
+ <outcome value='success'>
+ <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='connectivity'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivity" >
+ <outcome value='success'>
+ <for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>
+ <outcome value='vpn-binding'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-binding" >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domain.pnf-name' value="`'networkId-providerId-' +
+ $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +
+ $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +
+ $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +
+ $tmp.aai.vpn-binding.src-access-node-id`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.domain.pnf-name"
+ pfx='tmp.aai.source-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domain.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domain.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <break/>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ <switch test='`$tmp.aai.connectivity.etht-svc-name`'>
+ <outcome value='Other'>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <!--<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />-->
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-network:networks/network=networkId-providerId-' + $tmp.aai.connectivity.access-provider-id + '-clientId-' + $tmp.aai.connectivity.access-client-id + '-topologyId-' + $tmp.aai.connectivity.access-topology-id + '/node=' + $tmp.aai.connectivity.access-node-id + '/ietf-network-topology:termination-point=' + $tmp.aai.connectivity.access-ltp-id + '/ietf-te-topology:te/ietf-optical-slice:slice-id-list=' + $slice-instance-id `" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domain.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domain.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="delete"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <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 decoloring UNI rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </execute>
+ </outcome>
+ <outcome value=''></outcome>
+ </switch>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'></delete>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' ></delete>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
</service-logic> \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.xml
index bc0505d4..f1c90eca 100644
--- a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.xml
@@ -1,7 +1,7 @@
<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='tsli-vnf-topology-operation-trans-slice-modify' mode='sync'>
+ <method rpc='p2p-vnf-topology-operation-p2p-modify' mode='sync'>
<block atomic="true">
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -849,320 +849,335 @@
<parameter name="filename" value="`$filenamemm`" />
</execute>
<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync' ></call>
- <for index='otnidx' start='0' end='`$tmp.otninfo_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
- <parameter name="ctx-destination" value="prop.vpn-binding-otnidx-uuid"/>
- </execute>
- <switch test="`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`">
- <outcome value='true'>
- <set>
- <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />
- <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />
- <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />
- <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
- </set>
- </outcome>
- <outcome value='false'>
- <set>
- <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />
- <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />
- <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />
- <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
- </set>
- </outcome>
- </switch>
- <set>
- <parameter name='tmp.srcdstpnf-name' value="`'networkId-providerId-' +
+ <switch test="`$param-prefix-domainA[$param-prefix-domainA_length -9] == $param-prefix-domainB[$param-prefix-domainB_length -9]`">
+
+ `
+
+
+ <outcome value='false'>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >
+ <block atomic='true'>
+ <for index='otnidx' start='0' end='`$tmp.otninfo_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.vpn-binding-otnidx-uuid"/>
+ </execute>
+ <switch test="`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`">
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />
+ <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />
+ <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />
+ <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <set>
+ <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />
+ <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />
+ <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />
+ <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name='tmp.srcdstpnf-name' value="`'networkId-providerId-' +
$tmp.access-provider-id + '-clientId-' +
$tmp.access-client-id + '-topologyId-' +
$tmp.access-topology-id + '-nodeId-' +
$tmp.srcdstpnf-id`" />
- </set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="pnf"
- key="pnf.pnf-name = $tmp.srcdstpnf-name"
- pfx='tmp.aai.srcdst-pnf' local-only='false' >
- <!--AND depth = '0'"-->
- <outcome value='success'>
- <block>
- <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >
- <switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>
- <outcome value='esr-thirdparty-sdnc'>
- <block atomic="true">
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.srcdstpnf-name"
+ pfx='tmp.aai.srcdst-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainG.esr-thirdparty-id' value="`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <switch test='`$otnidx == 0`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >
+ <parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />
+ <parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />
+ <!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->
+ <parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <parameter name='access-provider-id' value='`$tmp.access-provider-id`' />
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <parameter name='access-client-id' value='`$tmp.access-client-id`' />
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <parameter name='access-topology-id' value='`$tmp.access-topology-id`' />
+ <!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />
+ <parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />
+ <!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->
+ <parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />
+ <parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />
+ <parameter name='route-distinguisher' value='`$gfp`' />
+ <parameter name='operational-status' value='Created' />
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />
+ <parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />
+ <parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />
+ <!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->
+ <parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </save>
+ <switch test='`$otnidx == 0`'>
+ <outcome value='true'>
+ <block>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" />
+ </save>
<set>
- <parameter name='tmp.domainG.esr-thirdparty-id' value="`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
</set>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="esr-thirdparty-sdnc"
- key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND
- depth = '1'"
- pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >
- <outcome value='success'>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block>
+ <set>
+ <parameter name='testingvalue' value='$tmp.otninfo_length -1' />
+ </set>
+ <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
+ <outcome value='true'>
<block>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" />
+ </save>
<set>
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
- <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
- <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
- <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
- <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
- <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
- <!--<parameter name="format" value="json"/>-->
- <!--<parameter name="httpMethod" value="get"/>-->
- <!--<parameter name="responsePrefix" value="topology"/>-->
- <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
- <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
- <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
- <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
</set>
</block>
</outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
- </return>
+ <outcome value='false'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="uuid.connectivity-otnidx-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>
+ <parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />
+ <!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->
+ <parameter name='operational-status' value='Created' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <!--<parameter name='access-ltp-id' value='``' />-->
+ <!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='dummy' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->
+ <!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->
+ <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
+ <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
+ <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-otnidx-uuid`" />
+ <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
+ <!-- force="true" pfx="tmp.AnAI-data">-->
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-otnidx-uuid`" />
+ </save>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ </block>
</outcome>
- </get-resource>
+ </switch>
</block>
</outcome>
</switch>
- </for>
- </block>
- </outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
- </return>
- </outcome>
- </get-resource>
- <switch test='`$otnidx == 0`'>
- <outcome value='true'>
- <set>
- <parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
- <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
- </set>
- </outcome>
- <outcome value='false'>
- <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
- <outcome value='true'>
- <set>
- <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
- <parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
- </set>
- </outcome>
- <outcome value='false'>
- <set>
- <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
- <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
- </set>
- </outcome>
- </switch>
- </outcome>
- </switch>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
- key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >
- <parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />
- <parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />
- <!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->
- <parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />
- <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
- <parameter name='access-provider-id' value='`$tmp.access-provider-id`' />
- <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
- <parameter name='access-client-id' value='`$tmp.access-client-id`' />
- <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
- <parameter name='access-topology-id' value='`$tmp.access-topology-id`' />
- <!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
- <parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />
- <parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />
- <!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->
- <parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />
- <parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />
- <parameter name='route-distinguisher' value='`$gfp`' />
- <parameter name='operational-status' value='Created' />
- <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
- <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
- <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
- <parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />
- <parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />
- <parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />
- <!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->
- <parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />
- <outcome value='success'>
- <block></block>
- </outcome>
- </save>
- <switch test='`$otnidx == 0`'>
- <outcome value='true'>
- <block>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
- key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
- force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" />
- </save>
- <set>
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te' `" />
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.password`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="patch"/>
- <parameter name="responsePrefix" value="otn-oof"/>
- <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 UNI Coloring for domain A" />
- </return>
- </outcome>
- <outcome value='success'>
- <block></block>
- </outcome>
- </execute>
- </block>
- </outcome>
- <outcome value='false'>
- <block>
- <set>
- <parameter name='testingvalue' value='$tmp.otninfo_length -1' />
- </set>
- <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
- <outcome value='true'>
- <block>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
- key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
- force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" />
- </save>
- <set>
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- </set>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te' `" />
- <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
- <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.password`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="patch"/>
- <parameter name="responsePrefix" value="otn-oof"/>
- <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 UNI coloring for domain B" />
- </return>
- </outcome>
- <outcome value='success'>
- <block></block>
- </outcome>
- </execute>
- </block>
- </outcome>
- <outcome value='false'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
- <parameter name="ctx-destination" value="uuid.connectivity-otnidx-uuid"/>
- </execute>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
- key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>
- <parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />
- <!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->
- <parameter name='operational-status' value='Created' />
- <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
- <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
- <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
- <!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
- <!--<parameter name='access-ltp-id' value='``' />-->
- <!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->
- <parameter name='bandwidth-profile-name' value='`$gfp`' />
- <parameter name='vpn-type' value='dummy' />
- <parameter name='cir' value='`$gfp *1000000`' />
- <parameter name='eir' value='`$gfp *1000000`' />
- <!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->
- <!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->
- <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
- <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
- <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
- <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
- <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
- <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
- </save>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
- key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
- AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
- AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
- force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-otnidx-uuid`" />
- <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
- <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
- <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
- <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
- <!-- force="true" pfx="tmp.AnAI-data">-->
- <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
- <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
- <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
- <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
- </save>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
- key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
- force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-otnidx-uuid`" />
- </save>
- <set>
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- </set>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
+ </block>
+ </for>
+ </block>
+ </call>
+ </outcome>
+ <outcome value='true'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.vpn-binding-samedomain-uuid"/>
+ </execute>
+ <set>
+ <parameter name='tmp.sameDomain-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='tmp.sameDomain-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ </set>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-uuid' >
+ <parameter name='vpn-id' value='`$prop.vpn-binding-samedomain-uuid`' />
+ <parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />
+ <!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->
+ <parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />
+ <!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <parameter name='src-access-node-id' value='`$tmp.sameDomain-src-access-node-id`' />
+ <!--<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />-->
+ <!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->
+ <parameter name='dst-access-node-id' value='`$tmp.sameDomain-dst-access-node-id`' />
+ <!--<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />-->
+ <parameter name='route-distinguisher' value='`$gfp`' />
+ <parameter name='operational-status' value='Created' />
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />
+ <parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />
+ <parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />
+ <!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->
+ <parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" />
+ </save>
+ </block>
+ </outcome>
+ </switch>
<set>
<parameter name='domain-A.tunnel-tp-id' value='' />
<parameter name='domain-A.node-id' value='' />
@@ -1212,191 +1227,6 @@
</outcome>
</get-resource>
</for>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="vpn-bindings"
- key="selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings"
- local-only="false"
- pfx="tmp.aai.all-vpn-bindings" >
- <outcome value='success'>
- <block atomic="true">
- <for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >
- <block atomic='true'>
- <!--<switch test="`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `">-->
- <!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->
- <switch test="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `">
- <outcome value='true'>
- <block atomic='true'>
- <set>
- <parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />
- <parameter name='found' value='false' />
- </set>
- <switch test='`$tmp.arr_length != 0`'>
- <outcome value='true'>
- <block atomic='true'>
- <for index='arridx' start='0' end='`$tmp.arr_length`' >
- <switch test='`$tmp.arr[$arridx] == $providerValue`'>
- <outcome value='true'>
- <block atomic='true'>
- <set>
- <parameter name='found' value='true' />
- </set>
- <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
- key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >
- <parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
- <parameter name='vpn-type' value='`$arridx`' />
- </update>
- <set>
- <parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />
- </set>
- <set>
- <!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->
- <!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->
- <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
- <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />
- <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />
- <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value="`'0,' + $gfp`" />
- <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />
- <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`" />
- <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />
- <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />
- <!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->
- <parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />
- </set>
- <break/>
- </block>
- </outcome>
- <outcome value='false'>
- <block></block>
- </outcome>
- </switch>
- </for>
- <switch test='`$found`'>
- <outcome value='true'>
- <block></block>
- </outcome>
- <outcome value='false'>
- <block atomic='true'>
- <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
- key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >
- <parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
- <parameter name='vpn-type' value='`$arridx + 1`' />
- </update>
- <set>
- <parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />
- <parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value="`'0,' + $gfp`" />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`" />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />
- <parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />
- <parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />
- </set>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='false'>
- <block atomic='true'>
- <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
- key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >
- <parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
- <parameter name='vpn-type' value='0' />
- </update>
- <set>
- <parameter name='tmp.arr[0]' value='`$providerValue`' />
- <parameter name='tmp.arr_length' value='1' />
- <parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
- <parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />
- <parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />
- <parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value="`'0,' + $gfp`" />
- <parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />
- <parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- <parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`" />
- <parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />
- <parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />
- <parameter name='otn-tunnel-slice_length' value='1' />
- <parameter name='otn-tunnel-slice[0].list_length' value='1' />
- </set>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='false'></outcome>
- </switch>
- </block>
- </for>
- </block>
- </outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
- </return>
- </outcome>
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='error-code' value='' />
- <parameter name='error-message' value='' />
- </return>
- </outcome>
- </get-resource>
- <for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >
- <block atomic='true'>
- <for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >
- <block atomic='true'>
- <set>
- <parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />
- <parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />
- <parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />
- <parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`" />
- <parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />
- <parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />
- <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
- <parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />
- <parameter name="tmp.domainG.restapiUrl" value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`" />
- <parameter name="tmp.domainG.restapiUser" value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`" />
- <parameter name="tmp.domainG.restapiPassword" value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`" />
- </set>
- </block>
- </for>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`" />
- <parameter name="restapiUrl" value="`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`" />
- <parameter name="restapiUser" value="`$tmp.domainG.restapiUser`" />
- <parameter name="restapiPassword" value="`tmp.domainG.restapiPassword`" />
- <parameter name="format" value="json"/>
- <parameter name="httpMethod" value="post"/>
- <parameter name="responsePrefix" value="otn-oof"/>
- <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 slice creation api for domain A" />
- </return>
- </outcome>
- <outcome value='success'>
- <block></block>
- </outcome>
- </execute>
- </block>
- </for>
</block>
</outcome>
</switch>
diff --git a/platform-logic/restapi-templates/src/main/json/p2p-call-ves.json b/platform-logic/restapi-templates/src/main/json/p2p-call-ves.json
new file mode 100644
index 00000000..ac502c65
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/p2p-call-ves.json
@@ -0,0 +1,34 @@
+{
+ "event": {
+ "commonEventHeader": {
+ "version": "4.0.1",
+ "vesEventListenerVersion": "7.0.1",
+ "domain": "notification",
+ "eventName": "ccvpnNotification_CloudLeaseLine_BandwidthChanged",
+ "eventId": ${eventIdUuid},
+ "lastEpochMicrosec": 8745745764578,
+ "priority": "Normal",
+ "reportingEntityName": "onap-sdnc",
+ "sequence": 0,
+ "sourceName": "onap-sdnc",
+ "startEpochMicrosec": 8745745764578,
+ "timeZoneOffset": "UTC-05.00"
+ },
+ "notificationFields": {
+ "changeIdentifier": "PM_BW_UPDATE",
+ "changeType": "BandwidthChanged",
+ "notificationFieldsVersion": "2.0",
+ "arrayOfNamedHashMap": [
+ {
+ "name": ${eventNameUuid},
+ "hashMap": {
+ "cllId": ${cclId},
+ "uniId": ${uniId},
+ "bandwidthValue": ${bandwidthValue},
+ "time": "2022-02-08T11:13:34.781-05:00"
+ }
+ }
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/p2p-create-pm-data.json b/platform-logic/restapi-templates/src/main/json/p2p-create-pm-data.json
index 101e9b9d..5d5f30f8 100644
--- a/platform-logic/restapi-templates/src/main/json/p2p-create-pm-data.json
+++ b/platform-logic/restapi-templates/src/main/json/p2p-create-pm-data.json
@@ -3,15 +3,27 @@
"service-pm": [
{
"service-name": ${eth-service-name},
- "task-pm-enable": true,
- "granularity": "ietf-service-pm:granularity-1min",
"performance-data-config": [
{
- "parameter-name": "ietf-service-pm:ingress-bandwidth",
- "measure-method": "ietf-service-pm:measure-at-ingress"
+ "parameter-name": "one-way-delay"
+ },
+ {
+ "parameter-name": "packet_loss_rate"
+ },
+ {
+ "parameter-name": "transmit-packets"
+ },
+ {
+ "parameter-name": "receive-packets"
+ },
+ {
+ "parameter-name": "delay_jitter"
+ },
+ {
+ "parameter-name": "two-way-delay"
}
]
}
]
}
-}
+} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/p2p-ethernet-service.json b/platform-logic/restapi-templates/src/main/json/p2p-ethernet-service.json
index 96052f88..6475b10e 100644
--- a/platform-logic/restapi-templates/src/main/json/p2p-ethernet-service.json
+++ b/platform-logic/restapi-templates/src/main/json/p2p-ethernet-service.json
@@ -1,18 +1,18 @@
{
"ietf-eth-tran-service:etht-svc-instances": [
{
- "etht-svc-name": "8f91fa46-e638-4ce7-8736-87abee900002",
+ "etht-svc-name": ${eth-service-name},
"etht-svc-title": "actn-eoo-00044",
"etht-svc-type": "ietf-eth-tran-types:p2p-svc",
"te-topology-identifier": {
- "provider-id": 5555,
- "client-id": 6666,
- "topology-id": "33"
+ "provider-id": ${provider-id},
+ "client-id": ${client-id},
+ "topology-id": ${topology-id}
},
"underlay": {
"otn-tunnels": [
{
- "name": "9f91fa46-e638-4ce7-8736-87abee900001",
+ "name": ${otn-tunnel-name},
"encoding": "ietf-te-types:lsp-encoding-oduk",
"switching-type": "ietf-te-types:switching-otn"
}
@@ -29,43 +29,23 @@
"admin-status": "ietf-te-types:tunnel-admin-state-up",
"etht-svc-end-points": [
{
- "etht-svc-end-point-name": "0",
+ "etht-svc-end-point-name": ${ethernet-end-point-name},
"etht-svc-access-points": [
{
- "access-point-id": "0",
- "access-node-id": "0.181.0.62",
- "access-ltp-id": 218038274
+ "access-point-id": ${index-number},
+ "access-node-id": ${eth-node-id},
+ "access-ltp-id": ${eth-node-tp-id}
}
],
"service-classification-type": "ietf-eth-tran-types:vlan-classification",
"outer-tag": {
"tag-type": "ietf-eth-tran-types:classify-c-vlan",
- "vlan-value": 1029
+ "vlan-value": ${cvlan}
},
"ingress-egress-bandwidth-profile": {
"bandwidth-profile-type": "ietf-eth-tran-types:mef-10-bwp",
- "CIR": 1000,
- "EIR": 0
- }
- },
- {
- "etht-svc-end-point-name": "1",
- "etht-svc-access-points": [
- {
- "access-point-id": "0",
- "access-node-id": "0.181.0.61",
- "access-ltp-id": 218038274
- }
- ],
- "service-classification-type": "ietf-eth-tran-types:vlan-classification",
- "outer-tag": {
- "tag-type": "ietf-eth-tran-types:classify-c-vlan",
- "vlan-value": 1029
- },
- "ingress-egress-bandwidth-profile": {
- "bandwidth-profile-type": "ietf-eth-tran-types:mef-10-bwp",
- "CIR": 1000,
- "EIR": 0
+ "CIR": ${CIR},
+ "EIR": ${EIR}
}
}
]
diff --git a/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-domainG.json b/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-domainG.json
index 3724158b..74e6d898 100644
--- a/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-domainG.json
+++ b/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-domainG.json
@@ -1,43 +1,43 @@
{
"ietf-te:tunnel": [
{
- "source": "0.181.0.62",
- "destination": "0.181.0.61",
- "encoding": "ietf-te-types:lsp-encoding-oduk",
- "name": "9f91fa46-e638-4ce7-8736-87abee900001",
- "restoration": {
- "enable": "false",
- "restoration-reversion-disable": "true",
- "restoration-type": "ietf-te-types:lsp-restoration-restore-any",
- "wait-to-revert": 0
- },
- "te-bandwidth": {
- "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODU0"
- },
- "switching-type": "ietf-te-types:switching-otn",
- "te-topology-identifier": {
- "client-id": 6666,
- "provider-id": 5555,
- "topology-id": "11"
- },
- "p2p-primary-paths": {
- "p2p-primary-path": [
- {
- "name": "primary-path",
- "optimizations": {
- "optimization-metric": [
- {
- "metric-type": "ietf-te-types:path-metric-te",
- "weight": "1"
- }
- ]
- }
+ "source": ${src-node-id},
+ "destination": ${dst-node-id},
+ "encoding": "ietf-te-types:lsp-encoding-oduk",
+ "name": ${otn-tunnel-name-src-domain},
+ "restoration": {
+ "enable": "false",
+ "restoration-reversion-disable": "true",
+ "restoration-type": "ietf-te-types:lsp-restoration-restore-any",
+ "wait-to-revert": 0
+ },
+ "te-bandwidth": {
+ "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODU0"
+ },
+ "switching-type": "ietf-te-types:switching-otn",
+ "te-topology-identifier": {
+ "client-id": ${client-id},
+ "provider-id": ${provider-id},
+ "topology-id": ${topology-id}
+ },
+ "p2p-primary-paths": {
+ "p2p-primary-path": [
+ {
+ "name": "primary-path",
+ "optimizations": {
+ "optimization-metric": [
+ {
+ "metric-type": "ietf-te-types:path-metric-te",
+ "weight": "1"
+ }
+ ]
}
- ]
- },
- "ietf-otn-tunnel:dst-tributary-slot-count": 0,
- "ietf-otn-tunnel:src-tributary-slot-count": 0,
- "provisioning-state": "ietf-te-types:tunnel-admin-state-down"
+ }
+ ]
+ },
+ "ietf-otn-tunnel:dst-tributary-slot-count": ${gfp-n},
+ "ietf-otn-tunnel:src-tributary-slot-count": ${gfp-n},
+ "provisioning-state": "ietf-te-types:tunnel-admin-state-down"
}
]
} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-dst-domain.json b/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-dst-domain.json
index 3724158b..74e6d898 100644
--- a/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-dst-domain.json
+++ b/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-dst-domain.json
@@ -1,43 +1,43 @@
{
"ietf-te:tunnel": [
{
- "source": "0.181.0.62",
- "destination": "0.181.0.61",
- "encoding": "ietf-te-types:lsp-encoding-oduk",
- "name": "9f91fa46-e638-4ce7-8736-87abee900001",
- "restoration": {
- "enable": "false",
- "restoration-reversion-disable": "true",
- "restoration-type": "ietf-te-types:lsp-restoration-restore-any",
- "wait-to-revert": 0
- },
- "te-bandwidth": {
- "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODU0"
- },
- "switching-type": "ietf-te-types:switching-otn",
- "te-topology-identifier": {
- "client-id": 6666,
- "provider-id": 5555,
- "topology-id": "11"
- },
- "p2p-primary-paths": {
- "p2p-primary-path": [
- {
- "name": "primary-path",
- "optimizations": {
- "optimization-metric": [
- {
- "metric-type": "ietf-te-types:path-metric-te",
- "weight": "1"
- }
- ]
- }
+ "source": ${src-node-id},
+ "destination": ${dst-node-id},
+ "encoding": "ietf-te-types:lsp-encoding-oduk",
+ "name": ${otn-tunnel-name-src-domain},
+ "restoration": {
+ "enable": "false",
+ "restoration-reversion-disable": "true",
+ "restoration-type": "ietf-te-types:lsp-restoration-restore-any",
+ "wait-to-revert": 0
+ },
+ "te-bandwidth": {
+ "ietf-otn-tunnel:odu-type": "ietf-otn-types:prot-ODU0"
+ },
+ "switching-type": "ietf-te-types:switching-otn",
+ "te-topology-identifier": {
+ "client-id": ${client-id},
+ "provider-id": ${provider-id},
+ "topology-id": ${topology-id}
+ },
+ "p2p-primary-paths": {
+ "p2p-primary-path": [
+ {
+ "name": "primary-path",
+ "optimizations": {
+ "optimization-metric": [
+ {
+ "metric-type": "ietf-te-types:path-metric-te",
+ "weight": "1"
+ }
+ ]
}
- ]
- },
- "ietf-otn-tunnel:dst-tributary-slot-count": 0,
- "ietf-otn-tunnel:src-tributary-slot-count": 0,
- "provisioning-state": "ietf-te-types:tunnel-admin-state-down"
+ }
+ ]
+ },
+ "ietf-otn-tunnel:dst-tributary-slot-count": ${gfp-n},
+ "ietf-otn-tunnel:src-tributary-slot-count": ${gfp-n},
+ "provisioning-state": "ietf-te-types:tunnel-admin-state-down"
}
]
} \ No newline at end of file
diff --git a/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-src-domain.json b/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-src-domain.json
index 3724158b..e9d7cba8 100644
--- a/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-src-domain.json
+++ b/platform-logic/restapi-templates/src/main/json/p2p-otn-tunnel-src-domain.json
@@ -1,10 +1,10 @@
{
"ietf-te:tunnel": [
{
- "source": "0.181.0.62",
- "destination": "0.181.0.61",
+ "source": ${src-node-id},
+ "destination": ${dst-node-id},
"encoding": "ietf-te-types:lsp-encoding-oduk",
- "name": "9f91fa46-e638-4ce7-8736-87abee900001",
+ "name": ${otn-tunnel-name-src-domain},
"restoration": {
"enable": "false",
"restoration-reversion-disable": "true",
@@ -16,9 +16,9 @@
},
"switching-type": "ietf-te-types:switching-otn",
"te-topology-identifier": {
- "client-id": 6666,
- "provider-id": 5555,
- "topology-id": "11"
+ "client-id": ${client-id},
+ "provider-id": ${provider-id},
+ "topology-id": ${topology-id}
},
"p2p-primary-paths": {
"p2p-primary-path": [
@@ -35,8 +35,8 @@
}
]
},
- "ietf-otn-tunnel:dst-tributary-slot-count": 0,
- "ietf-otn-tunnel:src-tributary-slot-count": 0,
+ "ietf-otn-tunnel:dst-tributary-slot-count": ${gfp-n},
+ "ietf-otn-tunnel:src-tributary-slot-count": ${gfp-n},
"provisioning-state": "ietf-te-types:tunnel-admin-state-down"
}
]
diff --git a/platform-logic/restapi-templates/src/main/json/p2p-subscribe-notification.json b/platform-logic/restapi-templates/src/main/json/p2p-subscribe-notification.json
index 02fd8a54..b6ea94bc 100644
--- a/platform-logic/restapi-templates/src/main/json/p2p-subscribe-notification.json
+++ b/platform-logic/restapi-templates/src/main/json/p2p-subscribe-notification.json
@@ -1 +1,22 @@
-{ "ietf-subscribed-notifications:input": { "encoding": "encode-json" } } \ No newline at end of file
+{
+ "ietf-eth-service-oam:input": {
+ "oam-config-list": [
+ {
+ "service-name": ${eth-service-name},
+ "source": {
+ "meg-id": "12345678",
+ "meg-level": 4,
+ "mep-id": 3,
+ "remote-mep-id": 4
+ },
+ "destination": {
+ "meg-id": "12345678",
+ "meg-level": 4,
+ "mep-id": 4,
+ "remote-mep-id": 3
+ },
+ "cc-interval": "interval-1s"
+ }
+ ]
+ }
+} \ No newline at end of file