MSA delete services issues fixed for
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / optical-service-create-msa.json
1 {
2    "service-name": ${optical-service-create-input.payload.service-name},
3    "common-id": ${optical-service-create-input.service-id},
4    "connection-type":"service",
5    "sdnc-request-header":{
6       "request-id": ${optical-service-create-input.request-id},
7       "rpc-action":"service-create",
8       "notification-url": "http://sdnc.onap:8090/receiver/services",
9       "request-system-id":"DCAE"
10    },
11    "service-a-end":{
12       "service-rate": ${optical-service-create-input.payload.service-rate},
13       "service-format": ${optical-service-create-input.payload.service-protocol},
14       "node-id": ${service-aend-nodeid},
15       "clli": ${aend-clli},
16       "optic-type":"gray",
17       "ethernet-encoding": ${optical-service-create-input.payload.coding-func},
18       ${mapping-mode-aend}: ${mapping-mode.value},
19       "tx-direction":{
20          "port":{
21             "port-device-name": "router-1",
22             "port-name": "R1"
23          }
24       },
25       "rx-direction":{
26          "port":{
27             "port-device-name": "router-1",
28             "port-name": "R1"
29
30          }
31       }
32    },
33    "service-z-end":{
34       "service-rate": ${optical-service-create-input.payload.service-rate},
35       "service-format": ${optical-service-create-input.payload.service-protocol},
36       "node-id": ${service-zend-nodeid},
37       "clli": ${zend-clli},
38       "optic-type":"gray",
39       "ethernet-encoding": ${optical-service-create-input.payload.coding-func},
40       ${mapping-mode-zend}: ${mapping-mode.value},
41       "tx-direction":{
42          "port":{
43             "port-device-name": "router-2",
44             "port-name": "R2"
45          }
46       },
47       "rx-direction":{
48          "port":{
49             "port-device-name": "router-2",
50             "port-name": "R2"
51          }
52       }
53    },
54    "service-layer": "otn"
55 }
56