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=c90b26696b543a8b1a2e85a6f55c2a5aa7fcb07c;hp=5dd416cde61e89cc3bb200e327d09f8cd19ba2db;hb=5f587c3e2bfabc09fec49463d04a6fbeba414e9c;hpb=bead4f9288b0c758ac736ee8945ca01313b177da 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..c90b26696b 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 @@ -24,7 +24,9 @@ module event-source { http://www.eclipse.org/legal/epl-v10.html"; revision "2014-12-02" { - description "first revision"; + description "first revision + + add rpc dis-join-topic + + add notification event-source-status-notification"; } // FIXME: expand this @@ -43,6 +45,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 +86,34 @@ module event-source { } } + rpc dis-join-topic { + input { + leaf node { + ext:context-reference "inv:node-context"; + type "instance-identifier"; + } + leaf topic-id { + type aggr:topic-id; + mandatory true; + description "identifier of topic to be disjoin"; + } + } + + } + + 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; }