diff options
author | Franklin Dsilva <franklin.dsilva@us.fujitsu.com> | 2020-02-20 05:14:28 +0000 |
---|---|---|
committer | Franklin Dsilva <franklin.dsilva@us.fujitsu.com> | 2020-02-20 05:14:40 +0000 |
commit | 1b4700191e39fcd7b40e8bd20270451d39d0c225 (patch) | |
tree | 4a7940b38902342e71cb3e8d8d392841aef00f50 /platform-logic/restapi-templates/src/main | |
parent | 8bbe748d631353b8c48c7d71eb733cf85712884c (diff) |
Topology Discovery and optical-service DGs
to support MDONS usecase
Change-Id: I1c28e799cc83325e8913d17ee8b718b0a4160cb2
Issue-ID: SDNC-928
Signed-off-by: Franklin Dsilva <franklin.dsilva@us.fujitsu.com>
Former-commit-id: 6a42d5eee5d71870527c8a302308f3e49829a496
Diffstat (limited to 'platform-logic/restapi-templates/src/main')
-rw-r--r-- | platform-logic/restapi-templates/src/main/json/optical-service-create-msa.json | 56 | ||||
-rw-r--r-- | platform-logic/restapi-templates/src/main/json/optical-service-delete-msa.json | 13 |
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} + } +} + |