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 "Initial revision of NBI notifications";
32 grouping notification-service {
37 "Message for the specified service";
43 "Identifier for the service to be created in the ROADM network, e.g., CLFI, CLCI, etc.
44 This is reported against the service, but may not get reflected in the service in the network.";
49 "To be used by the ROADM controller to identify the routing constraints
50 received from planning application (PED).";
52 leaf connection-type {
53 type org-openroadm-common-service-types:connection-type;
56 container service-a-end {
57 uses org-openroadm-common-service-types:service-endpoint;
59 container service-z-end {
60 uses org-openroadm-common-service-types:service-endpoint;
62 leaf response-failed {
65 "Response of the error if the service request encountered an anomaly";
67 leaf operational-state {
68 type org-openroadm-common-state-types:state;
71 "Operational State: Actual state of service";
75 container notification-service {
77 "Model used to send a notification from a service request";
78 uses notification-service;
81 rpc get-notifications-service {
82 description "Get the notifications service send by ServiceHandler by filtering through connection type";
84 leaf connection-type {
85 type org-openroadm-common-service-types:connection-type;
88 "Type connection of the service ";
94 "Unique ID for the consumer";
100 "ID Group for the consumer";
104 list notification-service {
105 uses notification-service;
110 notification publish-notification-service {
111 description "Publish the notifications service for topic";
116 "Topic where to send the notification service";
118 uses notification-service;