aboutsummaryrefslogtreecommitdiffstats
path: root/optical-service/model
diff options
context:
space:
mode:
authorMehreen Kaleem <mehreen.kaleem@us.fujitsu.com>2020-02-19 07:22:45 +0000
committerMehreen Kaleem <mehreen.kaleem@us.fujitsu.com>2020-02-19 07:22:50 +0000
commitd5ae32097a639dae335426bf6b74b60582159936 (patch)
tree1116ee2a979b7c28a8f8ab054935baa0d2f9dc58 /optical-service/model
parent4bcb40673285fbcfff73986f6489cd6c72fa777e (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')
-rw-r--r--optical-service/model/pom.xml33
-rw-r--r--optical-service/model/src/main/yang/optical-service.yang150
2 files changed, 183 insertions, 0 deletions
diff --git a/optical-service/model/pom.xml b/optical-service/model/pom.xml
new file mode 100644
index 00000000..2b4fdf88
--- /dev/null
+++ b/optical-service/model/pom.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.onap.ccsdk.parent</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>1.5.1</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>org.onap.sdnc.northbound</groupId>
+ <artifactId>optical-service-model</artifactId>
+ <version>1.8.0-SNAPSHOT</version>
+ <packaging>bundle</packaging>
+
+ <name>sdnc-northbound :: optical-service :: ${project.artifactId}</name>
+
+ <properties>
+ <sdnc.northbound.version>${project.version}</sdnc.northbound.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
+ <artifactId>rfc6991</artifactId>
+ </dependency>
+
+
+ </dependencies>
+
+
+</project>
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;
+ }
+ }
+}