diff options
author | Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com> | 2020-02-19 07:22:45 +0000 |
---|---|---|
committer | Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com> | 2020-02-19 07:22:50 +0000 |
commit | d5ae32097a639dae335426bf6b74b60582159936 (patch) | |
tree | 1116ee2a979b7c28a8f8ab054935baa0d2f9dc58 /optical-service/model/src/main/yang | |
parent | 4bcb40673285fbcfff73986f6489cd6c72fa777e (diff) |
optical-service package added for service create
and service delete and to handle async notifications
from controller.
Change-Id: I117c331e73520a023b9a67a07ede9cc4171cd414
Issue-ID: SDNC-928
Signed-off-by: Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Diffstat (limited to 'optical-service/model/src/main/yang')
-rw-r--r-- | optical-service/model/src/main/yang/optical-service.yang | 150 |
1 files changed, 150 insertions, 0 deletions
diff --git a/optical-service/model/src/main/yang/optical-service.yang b/optical-service/model/src/main/yang/optical-service.yang new file mode 100644 index 00000000..911bd488 --- /dev/null +++ b/optical-service/model/src/main/yang/optical-service.yang @@ -0,0 +1,150 @@ +module opticalservice { + + yang-version "1"; + + namespace "org:onap:sdnc:northbound:optical-service"; + + prefix opticalser; + + organization "Fujitsu"; + + contact + "Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>,Franklin Dsilva + <franklin.dsilva@us.fujitsu.com>"; + + description + "Defines API interface for optical service create and service + delete"; + + revision "2019-12-06" { + description + "Initial draft"; + } + + grouping optical-service-create-request { + + uses request-source-g; + + leaf global-customer-id { + type string; + } + + leaf service-type { + type string; + } + + leaf service-id { + type string; + } + + leaf notification-url { + type string; + } + + container payload { + + leaf domain-type { + type string; + } + + leaf service-name { + type string; + } + + leaf service-rate { + type string; + } + leaf service-protocol { + type string; + } + + leaf coding-func { + type string; + } + + container service-a-end { + uses service-end-g; + } + + container service-z-end { + uses service-end-g; + } + + leaf service-layer { + type string; + } + } + } + + grouping service-end-g { + + leaf port-id { + type string; + } + + leaf port-name { + type string; + } + } + + grouping request-source-g { + + leaf request-id { + type string; + } + + leaf source { + type string; + } + } + + grouping optical-service-response { + + leaf response-code { + type string; + } + + leaf response-message { + type string; + } + + leaf ack-final-indicator { + type string; + } + + } + + grouping optical-service-delete-request { + + uses request-source-g; + + container payload { + + leaf service-name { + type string; + } + } + } + + rpc optical-service-create { + + input { + uses optical-service-create-request; + } + + output { + uses optical-service-response; + } + } + + rpc optical-service-delete { + + input { + uses optical-service-delete-request; + } + + output { + uses optical-service-response; + } + } +} |