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;
19 "transportPCE committers - ODL";
21 "YANG definitions for using REST API in NBI notifications module. Copyright
22 (c) 2020 ORANGE and others. All rights reserved.";
26 "Rename the groupings, containers and RPCs";
31 "Implement new models, RPC for service alarms";
36 "Initial revision of NBI notifications";
39 grouping notification-process-service {
44 "Message for the specified service";
50 "Identifier for the service to be created in the ROADM network, e.g., CLFI, CLCI, etc.
51 This is reported against the service, but may not get reflected in the service in the network.";
56 "To be used by the ROADM controller to identify the routing constraints
57 received from planning application (PED).";
59 leaf connection-type {
60 type org-openroadm-common-service-types:connection-type;
63 container service-a-end {
64 uses org-openroadm-common-service-types:service-endpoint;
66 container service-z-end {
67 uses org-openroadm-common-service-types:service-endpoint;
69 leaf response-failed {
72 "Response of the error if the service request encountered an anomaly";
74 leaf operational-state {
75 type org-openroadm-common-state-types:state;
78 "Operational State: Actual state of service";
82 grouping notification-alarm-service {
87 "Message for the specified service";
93 "Identifier for the service to be created in the ROADM network, e.g., CLFI, CLCI, etc.
94 This is reported against the service, but may not get reflected in the service in the network.";
96 leaf connection-type {
97 type org-openroadm-common-service-types:connection-type;
100 leaf operational-state {
101 type org-openroadm-common-state-types:state;
104 "Operational State: Actual state of service";
108 container notification-process-service {
110 "Model used to send a notification from a service request";
111 uses notification-process-service;
114 container notification-alarm-service {
116 "Model used to send a notification from the service listener";
117 uses notification-alarm-service;
120 rpc get-notifications-process-service {
121 description "Get the notifications service sent by ServiceHandler through filtering connection type";
123 leaf connection-type {
124 type org-openroadm-common-service-types:connection-type;
127 "Type connection of the service ";
133 "Unique ID for the consumer";
139 "ID Group for the consumer";
143 list notifications-process-service {
144 uses notification-process-service;
149 rpc get-notifications-alarm-service {
150 description "Get the notifications alarm service sent by ServiceListener through filtering connection type";
152 leaf connection-type {
153 type org-openroadm-common-service-types:connection-type;
156 "Type connection of the service";
162 "Unique ID for the consumer";
168 "ID Group for the consumer";
172 list notifications-alarm-service {
173 uses notification-alarm-service;
178 notification publish-notification-process-service {
179 description "Publish the notifications service through a publisher";
180 leaf publisher-name {
184 "Name of the publisher";
186 uses notification-process-service;
189 notification publish-notification-alarm-service {
190 description "Publish the notifications service alarm through a publisher";
191 leaf publisher-name {
195 "Name of the publisher";
197 uses notification-alarm-service;