aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/devicemanager/model
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/devicemanager/model')
-rw-r--r--sdnr/wt/devicemanager/model/pom.xml71
-rw-r--r--sdnr/wt/devicemanager/model/src/main/yang/devicemanager.yang189
2 files changed, 260 insertions, 0 deletions
diff --git a/sdnr/wt/devicemanager/model/pom.xml b/sdnr/wt/devicemanager/model/pom.xml
new file mode 100644
index 000000000..eccdc562f
--- /dev/null
+++ b/sdnr/wt/devicemanager/model/pom.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ * ============LICENSE_START=======================================================
+ * ONAP : CCSDK.sdnr.wt.devicemanager.model
+ * ================================================================================
+ * Copyright (C) 2018 highstreet technologies GmbH Intellectual Property.
+ * All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+
+-->
+<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>
+ <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
+ <artifactId>sdnr-wt-devicemanager-model</artifactId>
+ <version>0.4.1-SNAPSHOT</version>
+ <name>ccsdk-features-sdnr-wt :: ${project.artifactId}</name>
+ <packaging>bundle</packaging>
+
+ <parent>
+ <groupId>org.onap.ccsdk.parent</groupId>
+ <artifactId>binding-parent</artifactId>
+ <version>1.2.1-SNAPSHOT</version>
+ <relativePath />
+ </parent>
+
+ <properties>
+ <maven.javadoc.skip>true</maven.javadoc.skip>
+ </properties>
+
+ <licenses>
+ <license>
+ <name>Apache License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ </license>
+ </licenses>
+
+ <dependencies>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/gen/**</exclude>
+ <exclude>**/generated-sources/**</exclude>
+ <exclude>**/yang-gen-sal/**</exclude>
+ <exclude>**/pax/**</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
+
diff --git a/sdnr/wt/devicemanager/model/src/main/yang/devicemanager.yang b/sdnr/wt/devicemanager/model/src/main/yang/devicemanager.yang
new file mode 100644
index 000000000..97eb099aa
--- /dev/null
+++ b/sdnr/wt/devicemanager/model/src/main/yang/devicemanager.yang
@@ -0,0 +1,189 @@
+module devicemanager {
+
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:devicemanager";
+ prefix "devicemanager";
+
+ description
+ "DeviceManager Api Module";
+
+ revision "2019-01-09" {
+ description
+ "Initial revision";
+ }
+
+ grouping maintenance-mode-g {
+ leaf mountpoint-name{
+ mandatory true;
+ type string;
+ description
+ "Mountpoint-name as key of node";
+ }
+ leaf node-name {
+ mandatory true;
+ type string;
+ description
+ "Node-name as node";
+ }
+ list filter {
+ container definition {
+ leaf object-id-ref {
+ mandatory true;
+ type string;
+ description
+ "object id to filter on";
+ }
+ leaf problem {
+ mandatory true;
+ type string;
+ description
+ "name of the problem to filter";
+ }
+ }
+ leaf description {
+ mandatory true;
+ type string;
+ description
+ "Node-name as node";
+ }
+ leaf start-date {
+ mandatory true;
+ type string;
+ description
+ "begin of maintenance-mode";
+ }
+ leaf end-date {
+ mandatory true;
+ type string;
+ description
+ "end of maintenance-mode";
+ }
+ }
+ }
+
+ rpc set-maintenance-mode{
+ description
+ "Set maintenance mode for network element";
+ input{
+ uses maintenance-mode-g;
+ }
+ output {
+ uses maintenance-mode-g;
+ }
+ }
+ rpc get-maintenance-mode{
+ description
+ "Get maintenance mode Configuration";
+ input{
+ leaf mountpoint-name{
+ mandatory true;
+ type string;
+ description
+ "Mountpoint-name as key of node";
+ }
+ }
+ output {
+ uses maintenance-mode-g;
+ }
+ }
+ rpc test-maintenance-mode{
+ description
+ "Send test pattern similar to notification that are test from algorithm";
+ input{
+ leaf mountpoint-name {
+ mandatory true;
+ type string;
+ description "mountpoint for test";
+ }
+ leaf object-id-ref {
+ mandatory true;
+ type string;
+ description "object id for test";
+ }
+ leaf problem-name {
+ mandatory true;
+ type string;
+ description "problem for test";
+ }
+ leaf test-date {
+ mandatory true;
+ type string;
+ description "point in time used for the test";
+ }
+
+ }
+ output {
+ leaf result-string {
+ mandatory true;
+ type string;
+ description "Describin if mountpoint was found and result of maintenance mode testing";
+ }
+ uses maintenance-mode-g;
+ }
+ }
+ rpc show-required-network-element {
+ description
+ "Get information for required network element";
+
+ input {
+ leaf mountpoint-name {
+ mandatory true;
+ type string;
+ description
+ "Mountpoint-name as key of the node to be displayed.";
+ }
+ }
+ output {
+ container required-network-element {
+ leaf mountpoint-name {
+ type string;
+ description
+ "The name of the mountpoint";
+ }
+ leaf status {
+ type string;
+ description
+ "Status: pre-provisoning, installed, end-of-life (Later enum)";
+ }
+ leaf description {
+ type string;
+ description "Device description";
+ }
+ }
+ }
+ }
+
+ rpc get-required-network-element-keys {
+ description
+ "Returns a list of netconf nodes for each data store space";
+
+ output {
+ leaf-list mountpoint-names {
+ type string;
+ description
+ "List of required-network-element keys that are the mountpoint-names";
+ }
+ }
+ }
+
+ rpc clear-current-fault-by-nodename {
+ description
+ "try to clear alarms and sync the alarm with the devices currently connected";
+ input {
+ leaf-list nodenames {
+ type string;
+ description
+ "list of network-elements to clear alarms for nodenames, if list empty then all";
+ }
+ }
+ output {
+ leaf-list nodenames {
+ type string;
+ description
+ "list of network-elements alarms cleared";
+ }
+ }
+ }
+
+}
+