X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fmessagebus-api%2Fsrc%2Fmain%2Fyang%2Fevent-source.yang;h=c56243b3fa9e7067ea934d6bcf37a6d4dd94b21f;hp=5dd416cde61e89cc3bb200e327d09f8cd19ba2db;hb=6c9c88f85589d635e3742cb2557044bf3a006d29;hpb=817fba4cbd618da7f587b3a5c33ac1dd2450e983 diff --git a/opendaylight/md-sal/messagebus-api/src/main/yang/event-source.yang b/opendaylight/md-sal/messagebus-api/src/main/yang/event-source.yang index 5dd416cde6..c56243b3fa 100644 --- a/opendaylight/md-sal/messagebus-api/src/main/yang/event-source.yang +++ b/opendaylight/md-sal/messagebus-api/src/main/yang/event-source.yang @@ -43,6 +43,18 @@ module event-source { } } + typedef event-source-status { + type enumeration { + enum active; + enum inactive; + enum deactive; + } + description "Status of event source + - active: event source is publishing notification, + - inactive: event source stopped publishing of notifications temporarily + - deactive: event source stopped publishing of notifications permanently" ; + } + grouping topology-event-source-type { container topology-event-source { presence "indicates an event source-aware topology"; @@ -72,6 +84,19 @@ module event-source { } } + notification event-source-status-notification { + + description + "Notification of change event source status."; + + leaf status { + type event-source-status; + mandatory true; + description "Current status of event source."; + } + + } + augment "/nt:network-topology/nt:topology/nt:topology-types" { uses topology-event-source-type; }