4 namespace "urn:opendaylight:params:xml:ns:yang:devicemanager";
5 prefix "devicemanager";
7 import data-provider { prefix "data-provider"; }
10 "DeviceManager Api Module";
12 revision "2019-01-09" {
17 rpc set-maintenance-mode{
19 "Set maintenance mode for network element";
21 uses data-provider:maintenance-entity;
24 uses data-provider:maintenance-entity;
27 rpc get-maintenance-mode{
29 "Get maintenance mode Configuration";
35 "Mountpoint-name as key of node";
39 uses data-provider:maintenance-entity;
42 rpc test-maintenance-mode{
44 "Send test pattern similar to notification that are test from algorithm";
46 leaf mountpoint-name {
49 description "mountpoint for test";
54 description "object id for test";
59 description "problem for test";
64 description "point in time used for the test";
72 description "Describin if mountpoint was found and result of maintenance mode testing";
74 uses data-provider:maintenance-entity;
77 rpc show-required-network-element {
79 "Get information for required network element";
82 leaf mountpoint-name {
86 "Mountpoint-name as key of the node to be displayed.";
90 container required-network-element {
91 leaf mountpoint-name {
94 "The name of the mountpoint";
99 "Status: pre-provisoning, installed, end-of-life (Later enum)";
103 description "Device description";
109 rpc get-required-network-element-keys {
111 "Returns a list of netconf nodes for each data store space";
114 leaf-list mountpoint-names {
117 "List of required-network-element keys that are the mountpoint-names";
122 rpc clear-current-fault-by-nodename {
124 "try to clear alarms and sync the alarm with the devices currently connected";
126 leaf-list nodenames {
129 "list of network-elements to clear alarms for nodenames, if list empty then all";
133 leaf-list nodenames {
136 "list of network-elements alarms cleared";
140 rpc push-fault-notification {
142 "Forward fault problem notification of a network-element";
144 uses data-provider:object-change-reference;
145 uses data-provider:fault;
148 rpc push-attribute-change-notification {
150 "Forward attribute change notification of a network-element";
152 uses data-provider:object-change-reference;
153 uses data-provider:attribute-change;