Topology Discovery and optical-service DGs
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / optical-service-create-msa.json
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 (file)
index 0000000..cd26b7e
--- /dev/null
@@ -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"
+}
+