"YANG definitions for using REST API in NBI notifications module. Copyright
(c) 2020 ORANGE and others. All rights reserved.";
+ revision 2021-08-13 {
+ description
+ "Rename the groupings, containers and RPCs";
+ }
+
revision 2021-06-28 {
description
"Implement new models, RPC for service alarms";
"Initial revision of NBI notifications";
}
- grouping notification-service {
+ grouping notification-process-service {
leaf message {
type string;
mandatory true;
}
}
- container notification-service {
+ container notification-process-service {
description
"Model used to send a notification from a service request";
- uses notification-service;
+ uses notification-process-service;
}
container notification-alarm-service {
uses notification-alarm-service;
}
- rpc get-notifications-service {
+ rpc get-notifications-process-service {
description "Get the notifications service sent by ServiceHandler through filtering connection type";
input {
leaf connection-type {
}
}
output {
- list notification-service {
- uses notification-service;
+ list notifications-process-service {
+ uses notification-process-service;
}
}
}
}
}
output {
- list notification-alarm-service {
+ list notifications-alarm-service {
uses notification-alarm-service;
}
}
}
- notification publish-notification-service {
- description "Publish the notifications service for topic";
- leaf topic {
+ notification publish-notification-process-service {
+ description "Publish the notifications service through a publisher";
+ leaf publisher-name {
type string;
mandatory true;
description
- "Topic where to send the notification service";
+ "Name of the publisher";
}
- uses notification-service;
+ uses notification-process-service;
}
notification publish-notification-alarm-service {
- description "Publish the notifications service alarm for topic";
- leaf topic {
+ description "Publish the notifications service alarm through a publisher";
+ leaf publisher-name {
type string;
mandatory true;
description
- "Topic where to send the notification service alarm";
+ "Name of the publisher";
}
uses notification-alarm-service;
}