X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=api%2Fsrc%2Fmain%2Fyang%2Fnbi-notifications%402021-08-13.yang;fp=api%2Fsrc%2Fmain%2Fyang%2Fnbi-notifications%402021-06-28.yang;h=4bed2f803ff2ce422943ae979fd7f080d4978902;hb=274148a8d813140f86e1f9770ba992b072c1a5cd;hp=d61c3993a56aeb56c61338279279d182699be33c;hpb=c3a98ef9475e9ce8ec866978df75394c3df639bf;p=transportpce.git diff --git a/api/src/main/yang/nbi-notifications@2021-06-28.yang b/api/src/main/yang/nbi-notifications@2021-08-13.yang similarity index 86% rename from api/src/main/yang/nbi-notifications@2021-06-28.yang rename to api/src/main/yang/nbi-notifications@2021-08-13.yang index d61c3993a..4bed2f803 100644 --- a/api/src/main/yang/nbi-notifications@2021-06-28.yang +++ b/api/src/main/yang/nbi-notifications@2021-08-13.yang @@ -24,6 +24,11 @@ module nbi-notifications { "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"; @@ -34,7 +39,7 @@ module nbi-notifications { "Initial revision of NBI notifications"; } - grouping notification-service { + grouping notification-process-service { leaf message { type string; mandatory true; @@ -103,10 +108,10 @@ module nbi-notifications { } } - 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 { @@ -115,7 +120,7 @@ module nbi-notifications { 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 { @@ -138,8 +143,8 @@ module nbi-notifications { } } output { - list notification-service { - uses notification-service; + list notifications-process-service { + uses notification-process-service; } } } @@ -167,30 +172,30 @@ module nbi-notifications { } } 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; }