1 module nbi-notifications {
3 namespace "nbi-notifications";
4 prefix nbinotifications;
6 import org-openroadm-service {
8 revision-date 2019-05-31;
10 import org-openroadm-common-service-types {
11 prefix org-openroadm-common-service-types;
12 revision-date 2019-05-31;
14 import org-openroadm-common-state-types {
15 prefix org-openroadm-common-state-types;
16 revision-date 2018-11-30;
22 "transportPCE committers - ODL";
24 "YANG definitions for using REST API in NBI notifications module. Copyright
25 (c) 2020 ORANGE and others. All rights reserved.";
29 "Implement new models, RPC for service alarms";
34 "Initial revision of NBI notifications";
37 grouping notification-service {
42 "Message for the specified service";
48 "Identifier for the service to be created in the ROADM network, e.g., CLFI, CLCI, etc.
49 This is reported against the service, but may not get reflected in the service in the network.";
54 "To be used by the ROADM controller to identify the routing constraints
55 received from planning application (PED).";
57 leaf connection-type {
58 type org-openroadm-common-service-types:connection-type;
61 container service-a-end {
62 uses org-openroadm-common-service-types:service-endpoint;
64 container service-z-end {
65 uses org-openroadm-common-service-types:service-endpoint;
67 leaf response-failed {
70 "Response of the error if the service request encountered an anomaly";
72 leaf operational-state {
73 type org-openroadm-common-state-types:state;
76 "Operational State: Actual state of service";
80 grouping notification-alarm-service {
85 "Message for the specified service";
91 "Identifier for the service to be created in the ROADM network, e.g., CLFI, CLCI, etc.
92 This is reported against the service, but may not get reflected in the service in the network.";
94 leaf connection-type {
95 type org-openroadm-common-service-types:connection-type;
98 leaf operational-state {
99 type org-openroadm-common-state-types:state;
102 "Operational State: Actual state of service";
106 container notification-service {
108 "Model used to send a notification from a service request";
109 uses notification-service;
112 container notification-alarm-service {
114 "Model used to send a notification from the service listener";
115 uses notification-alarm-service;
118 rpc get-notifications-service {
119 description "Get the notifications service sent by ServiceHandler through filtering connection type";
121 leaf connection-type {
122 type org-openroadm-common-service-types:connection-type;
125 "Type connection of the service ";
131 "Unique ID for the consumer";
137 "ID Group for the consumer";
141 list notification-service {
142 uses notification-service;
147 rpc get-notifications-alarm-service {
148 description "Get the notifications alarm service sent by ServiceListener through filtering connection type";
150 leaf connection-type {
151 type org-openroadm-common-service-types:connection-type;
154 "Type connection of the service";
160 "Unique ID for the consumer";
166 "ID Group for the consumer";
170 list notification-alarm-service {
171 uses notification-alarm-service;
176 notification publish-notification-service {
177 description "Publish the notifications service for topic";
182 "Topic where to send the notification service";
184 uses notification-service;
187 notification publish-notification-alarm-service {
188 description "Publish the notifications service alarm for topic";
193 "Topic where to send the notification service alarm";
195 uses notification-alarm-service;