[\r
{\r
- "id": "27072996.28603e",\r
+ "id": "ed855935.68b9c",\r
"type": "dgstart",\r
"name": "DGSTART",\r
"outputs": 1,\r
- "x": 184,\r
- "y": 103,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 105.5,\r
+ "y": 109,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[\r
- "6ffe569c.fa109"\r
+ "3c249c15.d445ac"\r
]\r
]\r
},\r
{\r
- "id": "cc951b5b.220708",\r
+ "id": "aeb9ff8.19b168",\r
"type": "method",\r
"name": "method",\r
"xml": "<method rpc='optical-service-create-sync-success' mode='sync'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 378,\r
- "y": 75,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 299.5,\r
+ "y": 81,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[\r
- "532eb08a.251b5"\r
+ "2bc24e2c.b2707a"\r
]\r
]\r
},\r
{\r
- "id": "6ffe569c.fa109",\r
+ "id": "3c249c15.d445ac",\r
"type": "service-logic",\r
"name": "optical-service ${project.version}",\r
"module": "optical-service",\r
"comments": "",\r
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>",\r
"outputs": 1,\r
- "x": 219.5,\r
- "y": 226,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 141,\r
+ "y": 232,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[\r
- "cc951b5b.220708"\r
+ "aeb9ff8.19b168"\r
]\r
]\r
},\r
{\r
- "id": "532eb08a.251b5",\r
+ "id": "2bc24e2c.b2707a",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic='true'>",\r
"atomic": "true",\r
"comments": "",\r
"outputs": 1,\r
- "x": 481,\r
- "y": 139,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 402.5,\r
+ "y": 145,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[\r
- "59831fea.3da9b8",\r
- "de3d717d.5418b8",\r
- "32dae8f5.5da2a",\r
- "8a15eff0.fb43c8",\r
- "2407f854.80a4a",\r
- "4b9498a0.6b56d8",\r
- "38b45c59.81b3bc",\r
- "7c78c7d.3f8aeb8",\r
- "4b5d7c6c.dfedd4"\r
+ "45c29ba0.1a8f6c",\r
+ "8ae2e619.562c8",\r
+ "f8f48edd.64e44",\r
+ "4cef2908.13e6b8",\r
+ "b6ddb6e7.407d88",\r
+ "861e288.ff5a6d8",\r
+ "d66dfe6f.f22d28",\r
+ "3cba8d47.890d8a",\r
+ "9679e92f.973568",\r
+ "4a3b5ff.ccb33a"\r
]\r
]\r
},\r
{\r
- "id": "32dae8f5.5da2a",\r
+ "id": "f8f48edd.64e44",\r
"type": "save",\r
"name": "update rate in aend in DB",\r
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET rate = $available-bandwidth-aend WHERE \ninterface_name = $optical-service-create-input.payload.service-aend.port-id'\nforce='true' pfx='save-result'>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n\n\n\n\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 882,\r
- "y": 183,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 803.5,\r
+ "y": 189,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "2407f854.80a4a",\r
+ "id": "b6ddb6e7.407d88",\r
"type": "update",\r
"name": "update p-interface a-End in AAI",\r
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='p-interface'\nkey = 'pnf.pnf-name = $a-end-pnf-name\n AND p-interface.interface-name = $optical-service-create-input.payload.service-aend.port-id'\n local-only='false'>\n<parameter name='available-capacity' value='`$available-bandwidth-aend`' />\n\n\n\n\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 806,\r
- "y": 313,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 727.5,\r
+ "y": 319,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "8a15eff0.fb43c8",\r
+ "id": "4cef2908.13e6b8",\r
"type": "save",\r
"name": "update rate in azend DB",\r
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET rate = $available-bandwidth-zend WHERE \ninterface_name = $optical-service-create-input.payload.service-zend.port-id'\nforce='true' pfx='save-result'>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n\n\n\n\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 820,\r
- "y": 257,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 741.5,\r
+ "y": 263,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "4b9498a0.6b56d8",\r
+ "id": "861e288.ff5a6d8",\r
"type": "update",\r
"name": "update p-interface z-End in AAI",\r
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='p-interface'\nkey = 'pnf.pnf-name = $z-end-pnf-name\n AND p-interface.interface-name = $optical-service-create-input.payload.service-zend.port-id'\n local-only='false'>\n<parameter name='available-capacity' value='`$available-bandwidth-zend`' />\n\n\n\n\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 802,\r
- "y": 385,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 723.5,\r
+ "y": 391,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "59831fea.3da9b8",\r
+ "id": "45c29ba0.1a8f6c",\r
"type": "record",\r
"name": "record",\r
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/optical-service-create.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside sync success\"/>\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 641,\r
- "y": 86,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 562.5,\r
+ "y": 92,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "de3d717d.5418b8",\r
+ "id": "8ae2e619.562c8",\r
"type": "set",\r
"name": "set available rate as 0",\r
"xml": "<set>\n<parameter name='available-bandwidth-aend' value='0' />\n<parameter name='available-bandwidth-zend' value='0' />\n\n\n\n\n\n\n\n\n\n",\r
"comments": "",\r
- "x": 753,\r
- "y": 136,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 674.5,\r
+ "y": 142,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": []\r
},\r
{\r
- "id": "8efcdbce.63cc68",\r
+ "id": "9679e92f.973568",\r
"type": "save",\r
"name": "save Service Request Details in DB",\r
- "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\" key=\"INSERT INTO REQUEST_DETAILS (request_id, controller_id, status, service_rate, service_instance_id, service_type, global_customer_id, notification_url) VALUES ( $optical-service-create-input.request-id , $controller-id , 'CREATING' , $optical-service-create-input.payload.service-rate , $optical-service-create-input.service-id , $optical-service-create-input.service-type , $optical-service-create-input.global-customer-id , $optical-service-create-input.notification-url );\">\n",\r
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\" key=\"INSERT INTO REQUEST_DETAILS (request_id, controller_id, status, service_rate, service_instance_id, service_type, global_customer_id, notification_url) VALUES ( $optical-service-create-input.request-id , $controller-id , 'CREATED' , $optical-service-create-input.payload.service-rate , $optical-service-create-input.service-id , $optical-service-create-input.service-type , $optical-service-create-input.global-customer-id , $optical-service-create-input.notification-url );\">\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1245,\r
- "y": 339,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 667.5,\r
+ "y": 467,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "efcf557d.c3a5f8",\r
+ "id": "4a3b5ff.ccb33a",\r
"type": "save",\r
"name": "save service-instance details in AAI",\r
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n service-subscription.service-type = $optical-service-create-input.service-type AND\n service-instance.service-instance-id = $optical-service-create-input.service-id' >\n<parameter name='service-instance-id' value='`$optical-service-create-input.service-id`' />\n<parameter name='service-instance-name' value='`$optical-service-create-input.payload.service-name`' />\n<parameter name='service-type' value='Domain-Service' />\n<parameter name='orchestration-status' value='CREATING' />\n<parameter name='service-rate' value='`$optical-service-create-input.payload.service-rate`' />\n<parameter name='service-layer' value='`$optical-service-create-input.payload.service-layer`' />\n\n",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n service-subscription.service-type = $optical-service-create-input.service-type AND\n service-instance.service-instance-id = $optical-service-create-input.service-id' >\n<parameter name='service-instance-id' value='`$optical-service-create-input.service-id`' />\n<parameter name='service-instance-name' value='`$optical-service-create-input.payload.service-name`' />\n<parameter name='service-type' value='Domain-Service' />\n<parameter name='orchestration-status' value='CREATED' />\n<parameter name='service-rate' value='`$optical-service-create-input.payload.service-rate`' />\n<parameter name='service-layer' value='`$optical-service-create-input.payload.service-layer`' />\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1255,\r
- "y": 431,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 636.5,\r
+ "y": 535,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "38b45c59.81b3bc",\r
+ "id": "d66dfe6f.f22d28",\r
"type": "save",\r
"name": "save service-instance relation with p-interface",\r
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n service-subscription.service-type = $optical-service-create-input.service-type AND\n service-instance.service-instance-id = $optical-service-create-input.service-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $a-end-pnf-name + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-aend.port-id `\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$a-end-pnf-name`\" /> \n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $z-end-pnf-name + '/p-interfaces/p-interface/' + $optical-service-create-input.payload.service-zend.port-id `\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$z-end-pnf-name`\" />\n \n ",\r
"comments": "",\r
"outputs": 1,\r
- "x": 700,\r
- "y": 602,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 621.5,\r
+ "y": 608,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "7c78c7d.3f8aeb8",\r
- "type": "returnSuccess",\r
- "name": "return success",\r
- "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Service Creation in Progress' />\n<parameter name='ack-final-indicator' value='N' />\n",\r
+ "id": "3cba8d47.890d8a",\r
+ "type": "set",\r
+ "name": "set",\r
+ "xml": "<set>\n<parameter name='final-response-code' value='200' />\n",\r
"comments": "",\r
- "x": 526,\r
- "y": 670,\r
- "z": "7d0d9c37.54e5a4",\r
+ "x": 469.566650390625,\r
+ "y": 703.566650390625,\r
+ "z": "7dd93eb8.cfce58",\r
"wires": []\r
- },\r
- {\r
- "id": "4b5d7c6c.dfedd4",\r
- "type": "switchNode",\r
- "name": "switch domain-type",\r
- "xml": "<switch test='`$optical-service-create-input.payload.domain-type`'>\n \n",\r
- "comments": "",\r
- "outputs": 1,\r
- "x": 705,\r
- "y": 477,\r
- "z": "7d0d9c37.54e5a4",\r
- "wires": [\r
- [\r
- "d809de29.7d03f8",\r
- "c1db711f.fdedc"\r
- ]\r
- ]\r
- },\r
- {\r
- "id": "d809de29.7d03f8",\r
- "type": "outcome",\r
- "name": "MSA",\r
- "xml": "<outcome value='MSA'>\n",\r
- "comments": "",\r
- "outputs": 1,\r
- "x": 878,\r
- "y": 442,\r
- "z": "7d0d9c37.54e5a4",\r
- "wires": [\r
- [\r
- "4f2bcf28.f836e8"\r
- ]\r
- ]\r
- },\r
- {\r
- "id": "c1db711f.fdedc",\r
- "type": "outcome",\r
- "name": "TAPI",\r
- "xml": "<outcome value='TAPI'>\n",\r
- "comments": "",\r
- "outputs": 1,\r
- "x": 875,\r
- "y": 518,\r
- "z": "7d0d9c37.54e5a4",\r
- "wires": [\r
- [\r
- "1de8f6d7.6e55d9"\r
- ]\r
- ]\r
- },\r
- {\r
- "id": "4f2bcf28.f836e8",\r
- "type": "block",\r
- "name": "block",\r
- "xml": "<block>\n",\r
- "atomic": "false",\r
- "comments": "",\r
- "outputs": 1,\r
- "x": 1001,\r
- "y": 437,\r
- "z": "7d0d9c37.54e5a4",\r
- "wires": [\r
- [\r
- "8efcdbce.63cc68",\r
- "efcf557d.c3a5f8"\r
- ]\r
- ]\r
- },\r
- {\r
- "id": "1de8f6d7.6e55d9",\r
- "type": "block",\r
- "name": "block",\r
- "xml": "<block>\n",\r
- "atomic": "false",\r
- "comments": "",\r
- "outputs": 1,\r
- "x": 1008,\r
- "y": 548,\r
- "z": "7d0d9c37.54e5a4",\r
- "wires": [\r
- [\r
- "35944f6f.0c2038",\r
- "a30d1744.eb9978"\r
- ]\r
- ]\r
- },\r
- {\r
- "id": "35944f6f.0c2038",\r
- "type": "save",\r
- "name": "save Service Request Details in DB",\r
- "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\" key=\"INSERT INTO REQUEST_DETAILS (request_id, controller_id, status, service_rate, service_instance_id, service_type, global_customer_id, notification_url) VALUES ( $optical-service-create-input.request-id , $controller-id , 'CREATED' , $optical-service-create-input.payload.service-rate , $optical-service-create-input.service-id , $optical-service-create-input.service-type , $optical-service-create-input.global-customer-id , $optical-service-create-input.notification-url );\">\n",\r
- "comments": "",\r
- "outputs": 1,\r
- "x": 1243,\r
- "y": 514,\r
- "z": "7d0d9c37.54e5a4",\r
- "wires": [\r
- []\r
- ]\r
- },\r
- {\r
- "id": "a30d1744.eb9978",\r
- "type": "save",\r
- "name": "save service-instance details in AAI",\r
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n service-subscription.service-type = $optical-service-create-input.service-type AND\n service-instance.service-instance-id = $optical-service-create-input.service-id' >\n<parameter name='service-instance-id' value='`$optical-service-create-input.service-id`' />\n<parameter name='service-instance-name' value='`$optical-service-create-input.payload.service-name`' />\n<parameter name='service-type' value='Domain-Service' />\n<parameter name='orchestration-status' value='CREATED' />\n<parameter name='service-rate' value='`$optical-service-create-input.payload.service-rate`' />\n<parameter name='service-layer' value='`$optical-service-create-input.payload.service-layer`' />\n\n",\r
- "comments": "",\r
- "outputs": 1,\r
- "x": 1245,\r
- "y": 592,\r
- "z": "7d0d9c37.54e5a4",\r
- "wires": [\r
- []\r
- ]\r
}\r
]
\ No newline at end of file