1 module nbi-notifications {
3 namespace "nbi-notifications";
4 prefix nbinotifications;
6 import org-openroadm-service {
9 import org-openroadm-common-service-types {
10 prefix org-openroadm-common-service-types;
12 import org-openroadm-common-state-types {
13 prefix org-openroadm-common-state-types;
14 revision-date 2018-11-30;
20 "transportPCE committers - ODL";
22 "YANG definitions for using REST API in NBI notifications module. Copyright
23 (c) 2020 ORANGE and others. All rights reserved.";
27 "Rename the groupings, containers and RPCs";
32 "Implement new models, RPC for service alarms";
37 "Initial revision of NBI notifications";
40 grouping notification-process-service {
45 "Message for the specified service";
51 "Identifier for the service to be created in the ROADM network, e.g., CLFI, CLCI, etc.
52 This is reported against the service, but may not get reflected in the service in the network.";
57 "To be used by the ROADM controller to identify the routing constraints
58 received from planning application (PED).";
60 leaf connection-type {
61 type org-openroadm-common-service-types:connection-type;
64 container service-a-end {
65 uses org-openroadm-common-service-types:service-endpoint;
67 container service-z-end {
68 uses org-openroadm-common-service-types:service-endpoint;
70 leaf response-failed {
73 "Response of the error if the service request encountered an anomaly";
75 leaf operational-state {
76 type org-openroadm-common-state-types:state;
79 "Operational State: Actual state of service";
83 grouping notification-alarm-service {
88 "Message for the specified service";
94 "Identifier for the service to be created in the ROADM network, e.g., CLFI, CLCI, etc.
95 This is reported against the service, but may not get reflected in the service in the network.";
97 leaf connection-type {
98 type org-openroadm-common-service-types:connection-type;
101 leaf operational-state {
102 type org-openroadm-common-state-types:state;
105 "Operational State: Actual state of service";
109 container notification-process-service {
111 "Model used to send a notification from a service request";
112 uses notification-process-service;
115 container notification-alarm-service {
117 "Model used to send a notification from the service listener";
118 uses notification-alarm-service;
121 rpc get-notifications-process-service {
122 description "Get the notifications service sent by ServiceHandler through filtering connection type";
124 leaf connection-type {
125 type org-openroadm-common-service-types:connection-type;
128 "Type connection of the service ";
134 "Unique ID for the consumer";
140 "ID Group for the consumer";
144 list notifications-process-service {
145 uses notification-process-service;
150 rpc get-notifications-alarm-service {
151 description "Get the notifications alarm service sent by ServiceListener through filtering connection type";
153 leaf connection-type {
154 type org-openroadm-common-service-types:connection-type;
157 "Type connection of the service";
163 "Unique ID for the consumer";
169 "ID Group for the consumer";
173 list notifications-alarm-service {
174 uses notification-alarm-service;
179 notification publish-notification-process-service {
180 description "Publish the notifications service through a publisher";
181 leaf publisher-name {
185 "Name of the publisher";
187 uses notification-process-service;
190 notification publish-notification-alarm-service {
191 description "Publish the notifications service alarm through a publisher";
192 leaf publisher-name {
196 "Name of the publisher";
198 uses notification-alarm-service;