summaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates/src
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/restapi-templates/src')
-rw-r--r--platform-logic/restapi-templates/src/main/json/optical-service-create-msa.json56
-rw-r--r--platform-logic/restapi-templates/src/main/json/optical-service-delete-msa.json13
2 files changed, 69 insertions, 0 deletions
diff --git a/platform-logic/restapi-templates/src/main/json/optical-service-create-msa.json b/platform-logic/restapi-templates/src/main/json/optical-service-create-msa.json
new file mode 100644
index 00000000..cd26b7e6
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/optical-service-create-msa.json
@@ -0,0 +1,56 @@
+{
+ "service-name": ${optical-service-create-input.payload.service-name},
+ "common-id": ${optical-service-create-input.service-id},
+ "connection-type":"service",
+ "sdnc-request-header":{
+ "request-id": ${optical-service-create-input.request-id},
+ "rpc-action":"service-create",
+ "notification-url": ${notification-url},
+ "request-system-id":"SDN-ONAP"
+ },
+ "service-a-end":{
+ "service-rate": ${optical-service-create-input.payload.service-rate},
+ "service-format": ${optical-service-create-input.payload.service-protocol},
+ "node-id": ${service-aend-nodeid},
+ "clli": ${aend-clli},
+ "optic-type":"gray",
+ "ethernet-encoding": ${optical-service-create-input.payload.coding-func},
+ ${mapping-mode-aend}: ${mapping-mode.value},
+ "tx-direction":{
+ "port":{
+ "port-device-name": "router-1",
+ "port-name": "R1"
+ }
+ },
+ "rx-direction":{
+ "port":{
+ "port-device-name": "router-1",
+ "port-name": "R1"
+
+ }
+ }
+ },
+ "service-z-end":{
+ "service-rate": ${optical-service-create-input.payload.service-rate},
+ "service-format": ${optical-service-create-input.payload.service-protocol},
+ "node-id": ${service-zend-nodeid},
+ "clli": ${zend-clli},
+ "optic-type":"gray",
+ "ethernet-encoding": ${optical-service-create-input.payload.coding-func},
+ ${mapping-mode-zend}: ${mapping-mode.value},
+ "tx-direction":{
+ "port":{
+ "port-device-name": "router-2",
+ "port-name": "R2"
+ }
+ },
+ "rx-direction":{
+ "port":{
+ "port-device-name": "router-2",
+ "port-name": "R2"
+ }
+ }
+ },
+ "service-layer": "otn"
+}
+
diff --git a/platform-logic/restapi-templates/src/main/json/optical-service-delete-msa.json b/platform-logic/restapi-templates/src/main/json/optical-service-delete-msa.json
new file mode 100644
index 00000000..e777f99a
--- /dev/null
+++ b/platform-logic/restapi-templates/src/main/json/optical-service-delete-msa.json
@@ -0,0 +1,13 @@
+{
+ "sdnc-request-header":{
+ "request-id": ${optical-service-delete-input.request-id},
+ "rpc-action": "service-delete",
+ "notification-url": ${notification-url},
+ "request-system-id": "SDN-ONAP"
+ },
+ "service-delete-req-info":{
+ "tail-retention": "no",
+ "service-name": ${optical-service-delete-input.payload.service-name}
+ }
+}
+